Request new identity from Windows command line


SUBMITTED BY: cooller

DATE: Nov. 26, 2015, 3:57 p.m.

FORMAT: Text only

SIZE: 623 Bytes

HITS: 952

  1. @echo off
  2. REM Read control auth cookie into variable
  3. set /p auth_cookie=<Browser\TorBrowser\Data\Tor\control_auth_cookie
  4. REM Create file with control commands
  5. echo AUTHENTICATE "%auth_cookie%"> commands.txt
  6. echo SIGNAL NEWNYM>> commands.txt
  7. echo QUIT>> commands.txt
  8. REM Connect to control port and issue commands
  9. nc localhost 9151 < commands.txt
  10. REM Delete commands file
  11. del /Q commands.txt
  12. When you run it, you should see the following output:
  13. C:\Users\user\Desktop\Tor Browser>control.bat
  14. 250 OK <-- in response to AUTHENTICATE
  15. 250 OK <-- in response to SIGNAL NEWNYM
  16. 250 closing connection

comments powered by Disqus