sxiii

TorIdentitySwitcher

Aug 11th, 2011
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. #!/usr/bin/expect -f
  2. # telnet into tor and get clean path using expect
  3. # This script also requires 'expect' program (/usr/bin/expect) to work.
  4.  
  5. spawn telnet 127.0.0.1 9051
  6. expect "Escape character is '^]'."
  7. send "AUTHENTICATE\r"
  8. expect "250 OK"
  9. send "signal NEWNYM\r"
  10. expect "250 OK"
  11. send "quit\r"
  12.  
  13. # eos
Advertisement
Add Comment
Please, Sign In to add comment