Last active
March 11, 2018 16:48
-
-
Save highgain86j/018fa4f0342cdf794414eaa0928240dd 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 | |
set host "route-info.flets-east.jp" | |
set port "49881" | |
spawn "/bin/bash" | |
send "telnet $host $port\r" | |
expect "'^]'." | |
send "GET /v6/route-info HTTP/1.1\r" | |
send "Host: $host:$port\r" | |
send "Accept: */*\r" | |
send "Accept-Charset: UTF-8\r" | |
send "Connection: close\r" | |
send "\r" | |
expect eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment