Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ####################################
- #
- # START
- # g0ne_@p0stal <v1ral_ITS>
- # ImPerialTeKSolutions@outlook.com
- #
- ####################################
- echo " # # "
- echo " ################ ####"
- echo " ################ ####"
- echo " ################ ##"
- echo " #"
- echo " #################"
- echo " ####################"
- echo " ####################"
- echo " ## #"
- echo " ##"
- echo " #"
- echo " #### ## "
- echo " #### ###### "
- echo " ## ######## "
- echo " # #### #"
- echo " # #### #"
- echo " # #### ##"
- echo " # #### ## "
- echo " ######## ####"
- echo " #####"
- echo " v1ral_ITS"
- echo " https://pastebin.com/u/v1ral_ITS"
- echo " ImPerialTeKSolutions@outlook.com"
- sleep 2
- VPNdir="/home/`whoami`/vpnbook"
- # MAKE SURE CONFIG. FILES AND .ovpn CONFIG FILES ARE NOT NEEDED TO DOWNLOAD AND CREATE
- read answer_1 < <( zenity --title "www.openvpn.com/freevpn Config Files" --width=560 --text "Do we need to download config files, and create script directory \nWorking Directory /home/"$(echo $USER)"/vpnbook \nAnswer 'yes' To auto create directory and download config files. \nAnswer no to continue" --forms --add-entry "Answer:" )
- if [[ $answer_1 == yes ]]; then
- mkdir $HOME/vpnbook
- cd $HOME/vpnbook
- curl -LO https://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-US1.zip
- curl -LO https://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-Euro1.zip
- curl -LO https://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-CA1.zip
- curl -LO https://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-FR1.zip
- unzip $HOME/vpnbook/VPNBook.com-OpenVPN-US1.zip
- unzip $HOME/vpnbook/VPNBook.com-OpenVPN-Euro1.zip
- unzip $HOME/vpnbook/VPNBook.com-OpenVPN-CA1.zip
- unzip $HOME/vpnbook/VPNBook.com-OpenVPN-FR1.zip
- fi
- notify-send "Get password from this site" && firefox https://vpnbook.com/freevpn
- read CONFIG < <( \ls $HOME/vpnbook | zenity --title "Configuration Files: $VPNdir" --list --column "ImPerial TeK. Solutions {v1ral_ITS}" --width=1000 --height=200 )
- function menu {
- # Input Dialog
- input=$( zenity --title "Easy ITS_ openvpn GUI" --width=560 --text "Enter vpnbook As Username And Password From Site" --forms --add-entry "Username" --add-entry "Password" )
- ret=$?
- # Is clicked exit, then exit.
- [[ $ret -eq 1 ]] && exit 0
- # Error handling source. If nothing was entered return to menu.
- if [ -z "$(echo $input | awk 'BEGIN {FS="|" } { print $1 }')" ]; then
- zenity --width=560 --warning="No Username Was Specified" --text="<b> No USERNAME input specified.</b>\n\n Please specify Username \n\n Back to menu ..." --ok-label="Back to menu"
- menu
- fi
- # Error handling target. If nothing was entered return to menu
- if [ -z "$(echo $input | awk 'BEGIN {FS="|" } { print $2 }')" ]; then
- zenity --width=560 --warning="No Password Was Specified" --text="<b> No PASSWORD input specified.</b>\n\n Please specify PASSWORD \n\n Back to menu ..." --ok-label="Back to menu"
- menu
- fi
- }
- menu
- Username=$(echo $input | awk 'BEGIN {FS="|" } { print $1 }')
- Password=$(echo $input | awk 'BEGIN {FS="|" } { print $2 }')
- export Username
- export Password
- # Pre warning dialog.
- zenity --info --width=560 --height=40 --title="Starting File System Check.. " --timeout 2 --text="<b> Operation is starting ... Please wait ..... </b>"
- # Start and show a pulsating progressbar.
- echo -e "$Username\n$Password" > /home/$(echo `whoami`)/vpnbook/vpnbook.auth
- sudo xterm -title "ITS_ VPN" -e sudo openvpn --config /home/$(echo `whoami`)/vpnbook/$CONFIG --auth-user-pass /home/$(echo `whoami`)/vpnbook/vpnbook.auth
- # Success dialog.
- zenity --info --width=560 --title="End .. " --timeout 20 --text="<b>Success:</b><span color=\"blue\"> Operation has been successfully finalized.</span> \n\n<b>ITS_ VPN DISCONNECTED</b>"
- exit 0
- # End here.
- echo ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement