Created
November 22, 2020 15:12
-
-
Save leipzig/5037ef68a140d7b7cf2ae1bf8d2d9ba2 to your computer and use it in GitHub Desktop.
expect script for connecting to drexel cisco anyconnect 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 | |
set PASSWD "<<yourpass>>" | |
set timeout 3 | |
spawn /opt/cisco/anyconnect/bin/vpn connect vpn.drexel.edu | |
expect "Group:" | |
send -- "0\r" | |
expect "*Username:*" | |
send -- "<<yourusername>>\r" | |
expect "*Password:*" | |
send -- "$PASSWD\r" | |
interact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment