Last active
February 22, 2019 23:56
-
-
Save nottux/c7f959d76245d68da8b5482d6e0e584d to your computer and use it in GitHub Desktop.
Updates vpnbook password to a file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
VPNBOOK: | |
echo vpnbook>/home/utku/vpn/vpnbook/password; wget -qO - https://www.vpnbook.com |grep Password: |tr -d " " |sed 2d |cut -b 22- |rev |cut -b 16- |rev>>/home/utku/vpn/vpnbook/password | |
echo vpnbook>(desired file here without "(" and ")"); wget -qO - https://www.vpnbook.com |grep Password: |tr -d " " |sed 2d |cut -b 22- |rev |cut -b 16- |rev>>(desired file here without "(" and ")") | |
FREEVPN: | |
rm (desired file here without "(" and ")");echo freevpnme>(desired file here without "(" and ")");wget -qO - http://freevpn.me/accounts|tr \< A|tr \> C|tr / B|awk '{gsub(/ABliCAliCAbC/,"\n")}1'|awk '{gsub(/Aspan /,"\n")}1'|grep Password:ABbC|head -1|awk '{gsub(/AliCAbC/,"")}1'|awk '{gsub(/Password:ABbC /,"")}1'|awk '{gsub(/Password:ABbC/,"")}1'|tr -d " ">>(desired file here without "(" and ")") | |
you can copy and paste to your terminal and run | |
NOTE: VPNBOOK doesn't work anymore since it uses images now |
added |awk '{gsub(/Password:ABbC/,"")}1'|tr -d " "
for weird space character
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just copy and paste to your terminal and replace "(desired file here without "(" and ")")" text with your desired file