Skip to content

Instantly share code, notes, and snippets.

Created Feb 21, 2013
Embed
What would you like to do?
#!/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