Skip to content

Commit 8489097

Browse files
committed
优化crlf插件
1 parent 5900c56 commit 8489097

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

W13SCAN/plugins/PerFile/crlf.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# @Author : w8ay
55
# @File : crlf.py
66
import copy
7+
import re
78

89
import requests
910

@@ -61,6 +62,6 @@ def audit(self):
6162
data[k] = payload
6263
r = requests.get(url, headers=headers, params=data)
6364
resp_h = self.dict2str(r.headers)
64-
if "TestInject" in resp_h or "w13scan" in resp_h:
65-
out.success(r.url, self.name, data="{}:{}".format(k, payload), raw=r.raw)
65+
if re.search("TestInject\s*:\s*w13scan", resp_h, re.I | re.S | re.M):
66+
out.success(r.url, self.name, payload="{}:{}".format(k, payload), raw=r.raw)
6667
break

0 commit comments

Comments
 (0)