Created
August 8, 2016 22:15
-
-
Save kawaxi/83f881bb1734f35c1d364a6a703b5e1c to your computer and use it in GitHub Desktop.
Small script to Initiate session on a VPN
This file contains hidden or 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
#!/usr/bin/expect -f | |
cd "lab-connection" | |
spawn openvpn OS-213**-OSCP.ovpn | |
expect "Enter Auth Username:" { | |
send "OS-213**\n" | |
} | |
expect "Enter Auth Password:" { | |
send "mypass\n" | |
} | |
interact | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment