Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 25a5073

Browse files
committed
Bug fix for --hex/--technique=B (especially MsSQL)
1 parent 8617fe0 commit 25a5073

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,9 @@ def getCharset(charsetType=None):
12601260
asciiTbl.extend([0, 1])
12611261
asciiTbl.extend(xrange(47, 58))
12621262
asciiTbl.extend(xrange(64, 71))
1263+
asciiTbl.extend([87, 88]) # X
12631264
asciiTbl.extend(xrange(96, 103))
1265+
asciiTbl.extend([119, 120]) # x
12641266

12651267
# Characters
12661268
elif charsetType == CHARSET_TYPE.ALPHA:

lib/request/inject.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,9 @@ def getValue(expression, blind=True, union=True, error=True, time=True, fromUser
366366
affected parameter.
367367
"""
368368

369+
if conf.hexConvert:
370+
charsetType = CHARSET_TYPE.HEXADECIMAL
371+
369372
kb.safeCharEncode = safeCharEncode
370373
kb.resumeValues = resumeValue
371374

lib/techniques/blind/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def getChar(idx, charTbl=None, continuousOrder=True, expand=charsetType is None,
308308
dbgMsg = "turning back on time auto-adjustment mechanism"
309309
logger.debug(dbgMsg)
310310
kb.adjustTimeDelay = ADJUST_TIME_DELAY.YES
311-
311+
312312
return decodeIntToUnicode(retVal)
313313
else:
314314
return None

0 commit comments

Comments
 (0)