常规密码硬解

一种朴素的密码爆破方法

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import time
import itertools
from pynput.keyboard import Controller, Key

def doit(string):
print(string)
keyboard = Controller()
input_string = string
for char in input_string:
keyboard.press(char)
keyboard.release(char)
keyboard.press(Key.enter)
keyboard.release(Key.enter)
time.sleep(0.1)
keyboard.press(Key.enter)
keyboard.release(Key.enter)
time.sleep(0.5)


def dois(i):
combinations = itertools.product(split_list, repeat=2)
for combo in combinations:
doit(''.join(combo))

a = ' 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 '
b = ' 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 '
c = ' ! @ # $ % ^ & * ( ) _ + { } | : < > ? ; , . - / '
d = ' 0 1 2 3 4 5 6 7 8 9 '

concatenated_string = a + b + c + d
split_list = concatenated_string.split()

print("wait")
for i in range(10):
print(10-i)
time.sleep(1)

for i in range(len(split_list)):
key = split_list[i]
doit(key)
# time.sleep(1)

for i in range(1,11):
dois(i)
Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2023-2025 John Doe
  • Visitors: | Views:

请我喝杯茶吧~

支付宝
微信