-
-
Save c4ri0c4/06ea71dccd2da76742d6f7c2d98ec861 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