mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +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([0, 1])
|
||||||
asciiTbl.extend(xrange(47, 58))
|
asciiTbl.extend(xrange(47, 58))
|
||||||
asciiTbl.extend(xrange(64, 71))
|
asciiTbl.extend(xrange(64, 71))
|
||||||
|
asciiTbl.extend([87, 88]) # X
|
||||||
asciiTbl.extend(xrange(96, 103))
|
asciiTbl.extend(xrange(96, 103))
|
||||||
|
asciiTbl.extend([119, 120]) # x
|
||||||
|
|
||||||
# Characters
|
# Characters
|
||||||
elif charsetType == CHARSET_TYPE.ALPHA:
|
elif charsetType == CHARSET_TYPE.ALPHA:
|
||||||
|
|
|
@ -366,6 +366,9 @@ def getValue(expression, blind=True, union=True, error=True, time=True, fromUser
|
||||||
affected parameter.
|
affected parameter.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if conf.hexConvert:
|
||||||
|
charsetType = CHARSET_TYPE.HEXADECIMAL
|
||||||
|
|
||||||
kb.safeCharEncode = safeCharEncode
|
kb.safeCharEncode = safeCharEncode
|
||||||
kb.resumeValues = resumeValue
|
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"
|
dbgMsg = "turning back on time auto-adjustment mechanism"
|
||||||
logger.debug(dbgMsg)
|
logger.debug(dbgMsg)
|
||||||
kb.adjustTimeDelay = ADJUST_TIME_DELAY.YES
|
kb.adjustTimeDelay = ADJUST_TIME_DELAY.YES
|
||||||
|
|
||||||
return decodeIntToUnicode(retVal)
|
return decodeIntToUnicode(retVal)
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user