Skip to content

Commit d3bfe59

Browse files
committed
Fixes #5308
1 parent 9eb970e commit d3bfe59

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

lib/controller/controller.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,24 @@ def start():
568568
infoMsg = "%sparameter '%s' appears to be dynamic" % ("%s " % paramType if paramType != parameter else "", parameter)
569569
logger.info(infoMsg)
570570

571+
if kb.processUserMarks:
572+
if testSqlInj and place not in (PLACE.CUSTOM_POST, PLACE.CUSTOM_HEADER):
573+
if kb.processNonCustom is None:
574+
message = "other non-custom parameters found. "
575+
message += "Do you want to process them too? [Y/n/q] "
576+
choice = readInput(message, default='Y').upper()
577+
578+
if choice == 'Q':
579+
raise SqlmapUserQuitException
580+
else:
581+
kb.processNonCustom = choice == 'Y'
582+
583+
if not kb.processNonCustom:
584+
infoMsg = "skipping %sparameter '%s'" % ("%s " % paramType if paramType != parameter else "", parameter)
585+
logger.info(infoMsg)
586+
587+
testSqlInj = False
588+
571589
kb.testedParams.add(paramKey)
572590

573591
if testSqlInj:

lib/core/option.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,6 +2145,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
21452145
kb.prependFlag = False
21462146
kb.processResponseCounter = 0
21472147
kb.previousMethod = None
2148+
kb.processNonCustom = None
21482149
kb.processUserMarks = None
21492150
kb.proxyAuthHeader = None
21502151
kb.queryCounter = 0

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.2.5"
23+
VERSION = "1.7.2.6"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)