sxiii

Tor IP Change Script (using expect)

Sep 11th, 2011
591
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/usr/bin/expect -f
  2. # TOR IP CHANGE SCRIPT - torci
  3. # Note: add/uncomment row "ControlPort 9051" to /etc/tor/torrc file for this tor ip change script 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