daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys, socket
  2. from TorCtl import *
  3. from TorCtl.TorUtil import plog
  4.  
  5. control_ip = "127.0.0.1"
  6. control_port = 12051
  7.  
  8. plog("INFO", "Stelle Verbindung zu Tor " + control_ip + ":" + str(control_port) + " her")
  9. s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  10. try:
  11.     s.connect((control_ip, control_port))
  12. except Exception, e:
  13.     plog("WARN", "Konnte keine Verbindung herstellen, Fehler: " + str(e))
  14.     sys.exit(1)
  15.    
  16. conn = PathSupport.Connection(s)
  17. conn.authenticate("")
RAW Paste Data
Top