Skip to content

Instantly share code, notes, and snippets.

@highgain86j
Last active March 11, 2018 16:48
Show Gist options
  • Save highgain86j/018fa4f0342cdf794414eaa0928240dd to your computer and use it in GitHub Desktop.
Save highgain86j/018fa4f0342cdf794414eaa0928240dd to your computer and use it in GitHub Desktop.
#!/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