Created
December 1, 2013 02:01
-
-
Save Cameron-D/7727681 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| set timeout 20 | |
| set user "admin" | |
| set password "" | |
| spawn telnet 192.168.1.254 | |
| expect "Login: " | |
| send "$user\n" | |
| expect "Password: " | |
| send "$password\n" | |
| sleep 1 | |
| send "echo 65535 > /proc/sys/net/netfilter/nf_conntrack_max\n" | |
| sleep 10 | |
| send "echo 512 > /proc/sys/net/netfilter/nf_conntrack_expect_max\n" | |
| sleep 10 | |
| send "exit\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment