mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
Switch --no-cast is incompatible with switch --hex (integer values are not being casted in case of --no-cast --hex which is causing unwanted decodings of returned values)
This commit is contained in:
parent
10e6c70c22
commit
6969874c02
|
@ -1998,6 +1998,10 @@ def _basicOptionValidation():
|
|||
errMsg = "option '--not-string' is incompatible with switch '--null-connection'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
if conf.noCast and conf.hexConvert:
|
||||
errMsg = "switch '--no-cast' is incompatible with switch '--hex'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
if conf.string and conf.notString:
|
||||
errMsg = "option '--string' is incompatible with switch '--not-string'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
|
|
@ -411,7 +411,7 @@ def getValue(expression, blind=True, union=True, error=True, time=True, fromUser
|
|||
|
||||
if not kb.testMode and value is None and Backend.getDbms() and conf.dbmsHandler:
|
||||
warnMsg = "in case of continuous data retrieval problems you are advised to try "
|
||||
warnMsg += "a switch '--no-cast' and/or switch '--hex'"
|
||||
warnMsg += "a switch '--no-cast' or switch '--hex'"
|
||||
singleTimeWarnMessage(warnMsg)
|
||||
|
||||
return extractExpectedValue(value, expected)
|
||||
|
|
Loading…
Reference in New Issue
Block a user