Created
February 21, 2013 16:03
-
-
Save anonymous/5005728 to your computer and use it in GitHub Desktop.
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
#!/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