Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/expect -f
- # telnet into tor and get clean path using expect
- # This script also requires 'expect' program (/usr/bin/expect) to work.
- spawn telnet 127.0.0.1 9051
- expect "Escape character is '^]'."
- send "AUTHENTICATE\r"
- expect "250 OK"
- send "signal NEWNYM\r"
- expect "250 OK"
- send "quit\r"
- # eos
Advertisement
Add Comment
Please, Sign In to add comment