Adding warning for -p being ignored in case of custom injection markers

This commit is contained in:
Miroslav Štampar 2026-11-12 19:10:00 +01:00
parent 32edb6a45e
commit 6f06df414b
2 changed files with 5 additions and 1 deletions

View file

@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.11.77"
VERSION = "1.10.11.78"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View file

@ -329,6 +329,10 @@ def _setRequestParams():
if kb.processUserMarks:
kb.testOnlyCustom = True
if conf.testParameter:
warnMsg = "option '-p' is ignored as only the custom injection marker(s) ('%s') will be tested" % kb.customInjectionMark
logger.warning(warnMsg)
if "=%s" % kb.customInjectionMark in _:
warnMsg = "it seems that you've provided empty parameter value(s) "
warnMsg += "for testing. Please, always use only valid parameter values "