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

Skip to content

Commit e501b2a

Browse files
committed
Minor patch
1 parent 03c8e7b commit e501b2a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/core/common.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,11 @@ def paramToDict(place, parameters=None):
576576
test = readInput(message, default="N")
577577
if test[0] not in ("y", "Y"):
578578
raise SqlmapSilentQuitException
579+
elif not _:
580+
warnMsg = "provided value for parameter '%s' is empty. " % parameter
581+
warnMsg += "Please, always use only valid parameter values "
582+
warnMsg += "so sqlmap could be able to run properly"
583+
logger.warn(warnMsg)
579584

580585
if conf.testParameter and not testableParameters:
581586
paramStr = ", ".join(test for test in conf.testParameter)

0 commit comments

Comments
 (0)