-
-
Save jcouyang/edd59391826d8c9e6045 to your computer and use it in GitHub Desktop.
connect cisco anyconnect in terminal
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/sh | |
/opt/cisco/anyconnect/bin/vpn -s $1 blur.blur.com <<"EOF" | |
0 | |
your.name | |
your.password | |
y | |
exit | |
EOF |
!/usr/bin/expect
set addr "mel-vpn.realestate.com.au"
set user "name"
set pass "password"
set timeout -1
spawn /opt/cisco/anyconnect/bin/vpn connect $addr
expect "Group: "
send "1\r"
expect "Username: "
send "$user\r"
expect "Password: "
send "$pass\r"
expect ">> state: Connected"
你们这是干嘛,暴露客户VPN地址…………别这样好么
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
just fill in your user name and password
then