0%

漏洞银行1000种姿势绕过软WAF

漏洞银行1000种姿势绕过软WAF

漏洞银行丨“1000种姿势”绕过软WAF –Python Fuzz脚本编写— V@1n3R丨咖面33期

QQ群:397745473

1
2
3
4
5
6
youtube 视频地址: https://www.youtube.com/watch?v=q6vWDLQ_1Hg
标题:漏洞银行丨“1000种姿势”绕过软WAF --Python Fuzz脚本编写— V@1n3R丨咖面33期

软件下载:
http://public.xp.cn/upgrades/phpStudy20161103.zip
https://www.lz1y.cn/

fuzz 脚本:

在本地搭建安全狗测试fuzz他的正则

Imgur

更多特殊字符测试

Imgur

使用sqlmap进行测试

Imgur

Imgur

Sqlmap扩展—外部IP代理池实现

用sqlmap加代理进行并用brup查看payload

Imgur

1
2
原文:https://blog.csdn.net/nzjdsds/article/details/77389212
搜关键词:sqlmap代理池扩展脚本
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
# -*-coding:utf-8-*-

"""

ayou

"""

importsocket

fromsocketimporterror

importthreading

importrandom

importtime



localtime=time.asctime(time.localtime(time.time()))



classProxyServerTest():

def__init__(self,proxyip):

#本地socket服务

self.ser=socket.socket(socket.AF_INET,socket.SOCK_STREAM)

self.proxyip=proxyip



defrun(self):

try:

#本地服务IP和端口

self.ser.bind(('127.0.0.1',9999))

#最大连接数

self.ser.listen(5)

excepterrorase:

print("[-]The local service : "+str(e))

return"[-]The local service : "+str(e)

whileTrue:

try:

#接收客户端数据

client,addr=self.ser.accept()

print('[*]accept %s connect'%(addr,))

data=client.recv(1024)

ifnotdata:

break

print('[*'+localtime+']: Accept data...')

excepterrorase:

print("[-]Local receiving client : "+str(e))

return"[-]Local receiving client : "+str(e)

whileTrue:

#目标代理服务器,将客户端接收数据转发给代理服务器

mbsocket=socket.socket(socket.AF_INET,socket.SOCK_STREAM)

iplen=len(self.proxyip)

proxyip=self.proxyip[random.randint(0,iplen-1)]

print("[!]Now proxy ip:"+str(proxyip))

prip=proxyip[0]

prpo=proxyip[1]

try:

mbsocket.settimeout(3)

mbsocket.connect((prip,prpo))

except:

print("[-]RE_Connect...")

continue

break

# except :

# print("[-]Connect failed,change proxy ip now...")

# pass

try:

mbsocket.send(data)

excepterrorase:

print("[-]Sent to the proxy server : "+str(e))

return"[-]Sent to the proxy server : "+str(e)



whileTrue:

try:

#从代理服务器接收数据,然后转发回客户端

data_1=mbsocket.recv(1024)

ifnotdata_1:

break

print('[*'+localtime+']: Send data...')

client.send(data_1)

exceptsocket.timeoutase:

print(proxyip)

print("[-]Back to the client : "+str(e))

continue

#关闭连接

client.close()

mbsocket.close()



defLoadips():

print("[*]Loading proxy ips..")

ip_list=[]

ip=['ip','port']

withopen("ips.txt")asips:

lines=ips.readlines()

forlineinlines:

ip[0],ip[1]=line.strip().split(":")

ip[1]=eval(ip[1])

nip=tuple(ip)

ip_list.append(nip)

returnip_list



defmain():

print('''*Atuhor : V@1n3R.

*Blog :http://www.Lz1y.cn

*date: 2017.7.17

*http://www.Lz1y.cn/wordpress/?p=643













__ __ _ _____ ____

\ \ / /_ _/ |_ __ |___ /| _ \

\ \ / / _` | | '_ \ |_ \| |_) |

\ V / (_| | | | | |___) | _ < _

\_/ \__,_|_|_| |_|____/|_| \_(_)















''')

ip_list=Loadips()

# ip_list = [('118.89.148.92',8088)]

# ip_list = tuple(ip_list)

try:

pst=ProxyServerTest(ip_list)

#多线程

t=threading.Thread(target=pst.run,name='LoopThread')

print('[*]Waiting for connection...')

#关闭多线程

t.start()

t.join()

exceptExceptionase:

print("[-]main : "+str(e))

return"[-]main : "+str(e)



if__name__=='__main__':

main()

QQ群:397745473

欢迎关注我的其它发布渠道