Created
October 4, 2016 20:30
-
-
Save Jahroots/2d96a1d3b2901b73fe077b494d9c0c85 to your computer and use it in GitHub Desktop.
Get Vpnbook username and password
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/bash | |
wget -q -O ~/vpnbook.tmp www.vpnbook.com/freevpn | |
username=$(cat ~/vpnbook.tmp | grep -m 1 Username | sed -e 's/<li>Username: <st | |
rong>/ /g' | sed -e 's/<\/strong><\/li>/ /g' | xargs) | |
password=$(cat ~/vpnbook.tmp | grep -m 1 Password | sed -e 's/<li>Password: <st | |
rong>/ /g' | sed -e 's/<\/strong><\/li>/ /g' | xargs) | |
echo $username | |
echo $password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment