Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/expect -f
- spawn telnet 192.168.1.1
- expect "Login:"
- send "username\r"
- expect "Password:"
- send "password\r"
- sleep 1
- send "?\r"
- interact
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement