|
|
@@ -0,0 +1,41 @@
|
|
|
+import os,threading
|
|
|
+
|
|
|
+numb = ['0','1','2','3','4','5','6','7','8','9',
|
|
|
+'a','b','c','d','e','f','g','h',
|
|
|
+'i','j','k','l','m','n','o','p',
|
|
|
+'q','r','s','t','u','v','w','x','y','z']
|
|
|
+
|
|
|
+def calc_pass(first=0,laster=0):
|
|
|
+
|
|
|
+ # print('thread start :'+first)
|
|
|
+ for s in numb:
|
|
|
+ #passwd.append(fi+s)
|
|
|
+ for t in numb:
|
|
|
+ #passwd.append(fi+s+t)
|
|
|
+ for four in numb:
|
|
|
+ if os.popen('./server -u 11 -g 10 -p '+s+t+four).readline()!='WRONG PASSWORD!\n':
|
|
|
+ print(+s+t+four)
|
|
|
+ break
|
|
|
+
|
|
|
+if __name__ == '__main__':
|
|
|
+ map(lambda first:threading.Thread(target=calc_pass, args=(0,"0")).start(),numb)
|
|
|
+
|
|
|
+
|
|
|
+# 最终版本
|
|
|
+import os
|
|
|
+import threading
|
|
|
+numb = ['0','1','2','3','4','5','6','7','8','9',
|
|
|
+'a','b','c','d','e','f','g','h',
|
|
|
+'i','j','k','l','m','n','o','p',
|
|
|
+'q','r','s','t','u','v','w','x','y','z']
|
|
|
+def calc_pass(first='0',laster=0):
|
|
|
+ # print('thread start :'+first)
|
|
|
+ for s in numb:
|
|
|
+ #passwd.append(fi+s)
|
|
|
+ for t in numb:
|
|
|
+ if os.popen('./server -u 114 -g 18 -p '+first+s+t).readline()!='WRONG PASSWORD!\n':
|
|
|
+ print(first+s+t)
|
|
|
+ break
|
|
|
+
|
|
|
+if __name__ == '__main__':
|
|
|
+ map(lambda first:threading.Thread(target=calc_pass, args=(first,"0")).start(),numb)
|