document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/usr/bin/expect -f
  2.  
  3. spawn /opt/cisco/anyconnect/bin/vpn
  4. expect VPN>
  5. send "connect thevpn.yourcompany.com\\n"
  6. expect Group
  7. send "0\\n" # Put the group here
  8. expect Username
  9. send "Your_Username_Goes_Here\\n"
  10. expect Password
  11. send "Your_Password_Goes_Here\\n"
  12. expect Connected
  13. expect VPN>
  14. send "q\\n"
');