Skip to content

Commit 02470ea

Browse files
committed
Further decreasing number of testing payloads
1 parent 48b627f commit 02470ea

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/controller/checks.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,17 @@ def genCmpPayload():
525525
infoMsg += "there is at least one other (potential) "
526526
infoMsg += "technique found"
527527
singleTimeLogMessage(infoMsg)
528+
elif not injection.data:
529+
_ = test.request.columns.split('-')[-1]
530+
if _.isdigit() and int(_) > 10:
531+
if kb.futileUnion is None:
532+
msg = "it is not recommended to perform "
533+
msg += "extended UNION tests if there is not "
534+
msg += "at least one other (potential) "
535+
msg += "technique found. Do you want to skip? [Y/n] "
536+
kb.futileUnion = readInput(msg, default="Y").strip().upper() == 'N'
537+
if kb.futileUnion is False:
538+
continue
528539

529540
# Test for UNION query SQL injection
530541
reqPayload, vector = unionTest(comment, place, parameter, value, prefix, suffix)

lib/core/option.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,6 +1788,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
17881788
kb.followSitemapRecursion = None
17891789
kb.forcedDbms = None
17901790
kb.forcePartialUnion = False
1791+
kb.futileUnion = None
17911792
kb.headersFp = {}
17921793
kb.heuristicDbms = None
17931794
kb.heuristicMode = False

0 commit comments

Comments
 (0)