Skip to content

Instantly share code, notes, and snippets.

@nottux
Last active February 22, 2019 23:56
Show Gist options
  • Save nottux/c7f959d76245d68da8b5482d6e0e584d to your computer and use it in GitHub Desktop.
Save nottux/c7f959d76245d68da8b5482d6e0e584d to your computer and use it in GitHub Desktop.
Updates vpnbook password to a file
#/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
@nottux
Copy link
Author

nottux commented May 1, 2018

Just copy and paste to your terminal and replace "(desired file here without "(" and ")")" text with your desired file

@nottux
Copy link
Author

nottux commented May 31, 2018

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