Usr6 Posted July 27, 2013 Report Posted July 27, 2013 (edited) Scriptul de mai jos automatizeaza putty-ul a.i. sa schimbe ip-ul la un interval de timp stabilit de utilizator. Creaza un tunel ssh cu unu din conturile gasite in fisierul nologine.txt, contul la care se conecteaza este ales in mod aleator, cand expira timpul stabilit se creaza un nou tunel folosind alt cont ales aleator si tot asa. In cazul in care intampina probleme la utilizarea unui cont se trece automat la alegerea altuia. Scriptul ruleaza pana este inchis din task manager.Pentru a putea fi utilizat, in acelasi director cu scriptul de mai jos trebuie sa existe:putty.exe PuTTY Download Pagenologine.txtnologine.txt contine conturile ssh(nologin), cate unul pe linie:ip1:user1:parola1ip2:user2:parola2script:#Python 2.7.*#Copyright Rstforums.comimport randomimport timeimport subprocessimport datetime#################config#################port = "1080"exchangetime = "120" # in secundesshlist = "nologine.txt"########################################dict = {}i = 1for line in open(sshlist,"r"): line = line.rstrip() sshlist = line.split(":") dict[i] = sshlist i = i+1while True: now = datetime.datetime.now() aleator = random.randint(1, len(dict.keys())) date = dict[aleator] ip = date[0] username = date[1] password = date[2] command = "putty.exe -D " + str(port) +" -l " + str(username) + " -pw " + str(password) + " -ssh " + str(ip) print str(now.year) +"."+ str(now.month) +"."+ str(now.day) +" "+ str(now.hour) +":"+ str(now.minute) + " -->" + str(ip) try: puttyproc = subprocess.Popen(command) time.sleep(int(exchangetime)) puttyproc.terminate() except: pass######End.##### Edited July 27, 2013 by Usr6 1 Quote
fjtr Posted July 27, 2013 Report Posted July 27, 2013 (edited) Esti prea tare!Later edit: http://www.bitvise.com/files/tunnelier-params.txt , daca schimb executabilul si command line options ar trebuie sa mearga si cu tunnelier Edited July 27, 2013 by fjtr LE Quote
mZque Posted October 24, 2013 Report Posted October 24, 2013 detaliaza pentru incepatorice pula mea cauti pe forum-ul asta? Quote
WerBF Posted January 23, 2014 Report Posted January 23, 2014 off : Usr6 Posts : 666 Satana este aici .. Quote