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

Skip to content

Commit 359bfb2

Browse files
committed
Minor adjustment
1 parent 644ea2e commit 359bfb2

5 files changed

Lines changed: 9 additions & 6 deletions

File tree

lib/controller/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def checkSqlInjection(place, parameter, value):
128128
# then attempt to identify with a simple DBMS specific boolean-based
129129
# test what the DBMS may be
130130
if not injection.dbms and PAYLOAD.TECHNIQUE.BOOLEAN in injection.data:
131-
if not Backend.getIdentifiedDbms() and kb.heuristicDbms is None:
131+
if not Backend.getIdentifiedDbms() and kb.heuristicDbms is None and not kb.droppingRequests:
132132
kb.heuristicDbms = heuristicCheckDbms(injection)
133133

134134
# If the DBMS has already been fingerprinted (via DBMS-specific

lib/core/option.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,6 +1902,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
19021902
kb.dnsMode = False
19031903
kb.dnsTest = None
19041904
kb.docRoot = None
1905+
kb.droppingRequests = False
19051906
kb.dumpColumns = None
19061907
kb.dumpTable = None
19071908
kb.dumpKeyboardInterrupt = False

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.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.1.5.11"
22+
VERSION = "1.1.5.12"
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)

lib/request/connect.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ class _(dict):
642642

643643
if kb.testMode and kb.testType not in (None, PAYLOAD.TECHNIQUE.TIME, PAYLOAD.TECHNIQUE.STACKED):
644644
singleTimeWarnMessage("there is a possibility that the target (or WAF/IPS/IDS) is dropping 'suspicious' requests")
645+
kb.droppingRequests = True
645646
warnMsg = "connection timed out to the target URL"
646647
elif "Connection reset" in tbMsg:
647648
if not conf.disablePrecon:
@@ -650,6 +651,7 @@ class _(dict):
650651

651652
if kb.testMode:
652653
singleTimeWarnMessage("there is a possibility that the target (or WAF/IPS/IDS) is resetting 'suspicious' requests")
654+
kb.droppingRequests = True
653655
warnMsg = "connection reset to the target URL"
654656
elif "URLError" in tbMsg or "error" in tbMsg:
655657
warnMsg = "unable to connect to the target URL"

txt/checksum.md5

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ c55b400b72acc43e0e59c87dd8bb8d75 extra/shellcodeexec/windows/shellcodeexec.x32.
2121
310efc965c862cfbd7b0da5150a5ad36 extra/sqlharvest/__init__.py
2222
7713aa366c983cdf1f3dbaa7383ea9e1 extra/sqlharvest/sqlharvest.py
2323
7afe836fd97271ccba67b4c0da2482ff lib/controller/action.py
24-
3446d524306f5f9648624a60e209ee6d lib/controller/checks.py
24+
fec857280fd553ee7e9b49fdfe104402 lib/controller/checks.py
2525
130d1c16708668b8d89605b6b5b38bf5 lib/controller/controller.py
2626
52a3969f57170e935e3fc0156335bf2c lib/controller/handler.py
2727
310efc965c862cfbd7b0da5150a5ad36 lib/controller/__init__.py
@@ -40,13 +40,13 @@ b9ff4e622c416116bee6024c0f050349 lib/core/enums.py
4040
310efc965c862cfbd7b0da5150a5ad36 lib/core/__init__.py
4141
9ba39bf66e9ecd469446bdbbeda906c3 lib/core/log.py
4242
edcfce0850771e6454acef244d5c5760 lib/core/optiondict.py
43-
636485a22f158bec137d63c73aeace5c lib/core/option.py
43+
80060cb3b090d6de0503c02848d60171 lib/core/option.py
4444
5f2f56e6c5f274408df61943f1e080c0 lib/core/profiling.py
4545
40be71cd774662a7b420caeb7051e7d5 lib/core/readlineng.py
4646
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
4848
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49-
00b923cc4daaefe16525a88fa949d189 lib/core/settings.py
49+
c1a41006c25d16699e988ec2adb0895d lib/core/settings.py
5050
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
5151
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5252
8136241fdbdb99a5dc0e51ba72918f6e lib/core/target.py
@@ -68,7 +68,7 @@ ad74fc58fc7214802fd27067bce18dd2 lib/core/unescaper.py
6868
403d873f1d2fd0c7f73d83f104e41850 lib/request/basicauthhandler.py
6969
a79f7c4259418fbc66229a1cb2e945bd lib/request/basic.py
7070
ef48de622b0a6b4a71df64b0d2785ef8 lib/request/comparison.py
71-
f58d13b6d6ff0078742d6fce09219849 lib/request/connect.py
71+
aa43e66ab7e6afb6d276327287a5f168 lib/request/connect.py
7272
fb6b788d0016ab4ec5e5f661f0f702ad lib/request/direct.py
7373
cc1163d38e9b7ee5db2adac6784c02bb lib/request/dns.py
7474
5dcdb37823a0b5eff65cd1018bcf09e4 lib/request/httpshandler.py

0 commit comments

Comments
 (0)