Bug fix for --hex/--technique=B (especially MsSQL)

This commit is contained in:
Miroslav Stampar 2012-10-28 12:22:33 +01:00
parent 8617fe0d65
commit 25a5073281
3 changed files with 6 additions and 1 deletions

View File

@ -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:

View File

@ -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

View File

@ -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