Skip to content

Instantly share code, notes, and snippets.

Created February 21, 2013 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5005728 to your computer and use it in GitHub Desktop.
Save anonymous/5005728 to your computer and use it in GitHub Desktop.
#!/usr/bin/expect
spawn telnet 192.168.1.1
set timeout -1
expect "DD-WRT login:"
send "root
"
expect "Password"
send "admin
"
expect "#"
send "erase linux
"
expect "#"
send "erase nvram
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment