Implements --disable-hashing (#5827)

This commit is contained in:
Miroslav Stampar
2024-12-09 10:43:26 +01:00
parent 7584a67422
commit 1a9fc81fe5
6 changed files with 23 additions and 12 deletions

View File

@@ -459,12 +459,15 @@ class Entries(object):
kb.data.dumpedTable["__infos__"] = {"count": entriesCount,
"table": safeSQLIdentificatorNaming(tbl, True),
"db": safeSQLIdentificatorNaming(conf.db)}
try:
attackDumpedTable()
except (IOError, OSError) as ex:
errMsg = "an error occurred while attacking "
errMsg += "table dump ('%s')" % getSafeExString(ex)
logger.critical(errMsg)
if not conf.disableHashing:
try:
attackDumpedTable()
except (IOError, OSError) as ex:
errMsg = "an error occurred while attacking "
errMsg += "table dump ('%s')" % getSafeExString(ex)
logger.critical(errMsg)
conf.dumper.dbTableValues(kb.data.dumpedTable)
except SqlmapConnectionException as ex: