-
Notifications
You must be signed in to change notification settings - Fork 7
/
setting.py
46 lines (32 loc) · 1.07 KB
/
setting.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
# encoding=utf8
from collections import defaultdict, OrderedDict
from SqlChecker import SqlChecker
# 判断延迟的时间
TIMEOUT = 5
# 上限
UPPER_RATIO = -1
# 下限
LOWER_RATIO = 2
# 检测注入的ratio标准,这里比SQLMAP的0.05少是因为这里是检测可疑的注入,而非百分百判断
CHECK_RATIO = 0.03
# 注入标记 使用#号可能有问题
SQLMARK = "@@"
# 是否有注入标记
MARKFLAG = False
# 网站是否是https
SSLFLAG = False
# Regular expression used for detecting multipart POST data
MULTIPART_REGEX = "(?i)Content-Disposition:[^;]+;\s*name="
# Regular expression used for detecting JSON POST data
JSON_REGEX = r'(?s)\A(\s*\[)*\s*\{.*"[^"]+"\s*:\s*("[^"]*"|\d+|true|false|null).*\}\s*(\]\s*)*\Z'
# Regular expression for XML POST data
XML_REGEX = r"(?s)\A\s*<[^>]+>(.+>)?\s*\Z"
# DBMS ERROR XML
ERROR_DBMS_XML = "xml/errors.xml"
# PAYLOADS XML
PAYLOADS_XML = "xml/payloads.xml"
# 代理
g_proxy = {'http':'http://127.0.0.1:4321','https':'https://127.0.0.1:4321'}
#g_proxy = {}
# sql注入的信息都在g_sql_info里面
g_sql_info = SqlChecker()