mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Bug fix for --hex/--technique=B (especially MsSQL)
This commit is contained in:
parent
8617fe0d65
commit
25a5073281
|
@ -1260,7 +1260,9 @@ def getCharset(charsetType=None):
|
|||
asciiTbl.extend([0, 1])
|
||||
asciiTbl.extend(xrange(47, 58))
|
||||
asciiTbl.extend(xrange(64, 71))
|
||||
asciiTbl.extend([87, 88]) # X
|
||||
asciiTbl.extend(xrange(96, 103))
|
||||
asciiTbl.extend([119, 120]) # x
|
||||
|
||||
# Characters
|
||||
elif charsetType == CHARSET_TYPE.ALPHA:
|
||||
|
|
|
@ -366,6 +366,9 @@ def getValue(expression, blind=True, union=True, error=True, time=True, fromUser
|
|||
affected parameter.
|
||||
"""
|
||||
|
||||
if conf.hexConvert:
|
||||
charsetType = CHARSET_TYPE.HEXADECIMAL
|
||||
|
||||
kb.safeCharEncode = safeCharEncode
|
||||
kb.resumeValues = resumeValue
|
||||
|
||||
|
|
|
@ -308,7 +308,7 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
|
|||
dbgMsg = "turning back on time auto-adjustment mechanism"
|
||||
logger.debug(dbgMsg)
|
||||
kb.adjustTimeDelay = ADJUST_TIME_DELAY.YES
|
||||
|
||||
|
||||
return decodeIntToUnicode(retVal)
|
||||
else:
|
||||
return None
|
||||
|
|
Loading…
Reference in New Issue
Block a user