Created
October 2, 2012 23:52
-
-
Save crackcomm/3824079 to your computer and use it in GitHub Desktop.
tor new identity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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