Skip to content

Instantly share code, notes, and snippets.

@crackcomm
Created October 2, 2012 23:52
Show Gist options
  • Save crackcomm/3824079 to your computer and use it in GitHub Desktop.
Save crackcomm/3824079 to your computer and use it in GitHub Desktop.
tor new identity
from TorCtl import TorCtl
def newId(host, port, pass):
conn = TorCtl.connect(controlAddr=host, controlPort=port, passphrase=pass)
if conn:
TorCtl.Connection.send_signal(conn, "NEWNYM")
newId('localhost', '9051', 'pass')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment