Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f1bf74

Browse files
committed
Fixes #3379
1 parent abb911d commit 3f1bf74

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.11.12"
22+
VERSION = "1.2.11.14"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -174,6 +174,9 @@
174174
# Minimum time response set needed for time-comparison based on standard deviation
175175
MIN_TIME_RESPONSES = 30
176176

177+
# Maximum time response set used during time-comparison based on standard deviation
178+
MAX_TIME_RESPONSES = 200
179+
177180
# Minimum comparison ratio set needed for searching valid union column number based on standard deviation
178181
MIN_UNION_RESPONSES = 5
179182

lib/request/connect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class WebSocketException(Exception):
9999
from lib.core.settings import MAX_MURPHY_SLEEP_TIME
100100
from lib.core.settings import META_REFRESH_REGEX
101101
from lib.core.settings import MIN_TIME_RESPONSES
102+
from lib.core.settings import MAX_TIME_RESPONSES
102103
from lib.core.settings import IDS_WAF_CHECK_PAYLOAD
103104
from lib.core.settings import IS_WIN
104105
from lib.core.settings import LARGE_CHUNK_TRIM_MARKER
@@ -1293,6 +1294,8 @@ def _(value):
12931294
elif noteResponseTime:
12941295
kb.responseTimes.setdefault(kb.responseTimeMode, [])
12951296
kb.responseTimes[kb.responseTimeMode].append(threadData.lastQueryDuration)
1297+
if len(kb.responseTimes) > MAX_TIME_RESPONSES:
1298+
kb.responseTimes = kb.responseTimes[-MAX_TIME_RESPONSES:]
12961299

12971300
if not response and removeReflection:
12981301
page = removeReflectiveValues(page, payload)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4949
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52-
a30083ca6c21379bc31b931dca5b3464 lib/core/settings.py
52+
668bbf57ac4603b3adf6308646c719dc lib/core/settings.py
5353
a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555
721198b5be72c8015a02acb116532a1f lib/core/target.py
@@ -71,7 +71,7 @@ f6b5957bf2103c3999891e4f45180bce lib/parse/payloads.py
7171
30eed3a92a04ed2c29770e1b10d39dc0 lib/request/basicauthhandler.py
7272
2b81435f5a7519298c15c724e3194a0d lib/request/basic.py
7373
859b6ad583e0ffba154f17ee179b5b89 lib/request/comparison.py
74-
9bfc067165e82afc0b271f777850ad30 lib/request/connect.py
74+
d21e3452240ae3e59dfeb05fabc9ea14 lib/request/connect.py
7575
dd4598675027fae99f2e2475b05986da lib/request/direct.py
7676
2044fce3f4ffa268fcfaaf63241b1e64 lib/request/dns.py
7777
98535d0efca5551e712fcc4b34a3f772 lib/request/httpshandler.py

0 commit comments

Comments
 (0)