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

Skip to content

Commit 6928dae

Browse files
committed
Minor patch
1 parent 6db3bcb commit 6928dae

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.1"
22+
VERSION = "1.0.5.2"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/request/connect.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,12 @@ class _(dict):
613613
elif "forcibly closed" in tbMsg or "Connection is already closed" in tbMsg:
614614
warnMsg = "connection was forcibly closed by the target URL"
615615
elif "timed out" in tbMsg:
616-
singleTimeWarnMessage("turning off pre-connect mechanism because of connection time out(s)")
617-
conf.disablePrecon = True
616+
if not conf.disablePrecon:
617+
singleTimeWarnMessage("turning off pre-connect mechanism because of connection time out(s)")
618+
conf.disablePrecon = True
619+
620+
if kb.testMode and kb.testType not in (PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED):
621+
kb.responseTimes.clear()
618622

619623
if kb.testMode and kb.testType not in (None, PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED):
620624
singleTimeWarnMessage("there is a possibility that the target (or WAF) is dropping 'suspicious' requests")

0 commit comments

Comments
 (0)