mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Minor DREI patches
This commit is contained in:
parent
85365d73ff
commit
86ce1c5a5a
3 changed files with 5 additions and 4 deletions
|
|
@ -725,8 +725,8 @@ def paramToDict(place, parameters=None):
|
|||
if value and not value.isdigit():
|
||||
for encoding in ("hex", "base64"):
|
||||
try:
|
||||
decoded = value.decode(encoding)
|
||||
if len(decoded) > MIN_ENCODED_LEN_CHECK and all(_ in string.printable for _ in decoded):
|
||||
decoded = codecs.decode(value, encoding)
|
||||
if len(decoded) > MIN_ENCODED_LEN_CHECK and all(_ in getBytes(string.printable) for _ in decoded):
|
||||
warnMsg = "provided parameter '%s' " % parameter
|
||||
warnMsg += "appears to be '%s' encoded" % encoding
|
||||
logger.warn(warnMsg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue