Implementing switch --repair (Issue #2888)

This commit is contained in:
Miroslav Stampar
2019-02-19 00:21:37 +01:00
parent 8fe37f3564
commit af890d639d
6 changed files with 17 additions and 6 deletions

View File

@@ -82,7 +82,9 @@ def bisection(payload, expression, length=None, charsetType=None, firstChar=None
retVal = hashDBRetrieve(expression, checkConf=True)
if retVal:
if PARTIAL_HEX_VALUE_MARKER in retVal:
if conf.repair and INFERENCE_UNKNOWN_CHAR in retVal:
pass
elif PARTIAL_HEX_VALUE_MARKER in retVal:
retVal = retVal.replace(PARTIAL_HEX_VALUE_MARKER, "")
if retVal and conf.hexConvert: