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

Skip to content

Commit 1e07269

Browse files
committed
Patch for an Issue #1860
1 parent 3b74e99 commit 1e07269

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

lib/controller/controller.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -521,26 +521,30 @@ def start():
521521

522522
injection = checkSqlInjection(place, parameter, value)
523523
proceed = not kb.endDetection
524+
injectable = False
524525

525526
if getattr(injection, "place", None) is not None:
526527
if NOTE.FALSE_POSITIVE_OR_UNEXPLOITABLE in injection.notes:
527528
kb.falsePositives.append(injection)
528529
else:
530+
injectable = True
531+
529532
kb.injections.append(injection)
530533

531-
# In case when user wants to end detection phase (Ctrl+C)
532-
if not proceed:
533-
break
534+
# In case when user wants to end detection phase (Ctrl+C)
535+
if not proceed:
536+
break
537+
538+
msg = "%s parameter '%s' " % (injection.place, injection.parameter)
539+
msg += "is vulnerable. Do you want to keep testing the others (if any)? [y/N] "
540+
test = readInput(msg, default="N")
534541

535-
msg = "%s parameter '%s' " % (injection.place, injection.parameter)
536-
msg += "is vulnerable. Do you want to keep testing the others (if any)? [y/N] "
537-
test = readInput(msg, default="N")
542+
if test[0] not in ("y", "Y"):
543+
proceed = False
544+
paramKey = (conf.hostname, conf.path, None, None)
545+
kb.testedParams.add(paramKey)
538546

539-
if test[0] not in ("y", "Y"):
540-
proceed = False
541-
paramKey = (conf.hostname, conf.path, None, None)
542-
kb.testedParams.add(paramKey)
543-
else:
547+
if not injectable:
544548
warnMsg = "%s parameter '%s' is not " % (paramType, parameter)
545549
warnMsg += "injectable"
546550
logger.warn(warnMsg)

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.20"
22+
VERSION = "1.0.5.21"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

0 commit comments

Comments
 (0)