From e51d3a02f1620e8c0aea569e62834eba8ab6100c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 28 Jun 2012 18:53:47 +0200 Subject: [PATCH] Update for Issue #43 (renamed --disable-cracking to --disable-hash) --- lib/core/optiondict.py | 2 +- lib/parse/cmdline.py | 2 +- plugins/generic/enumeration.py | 3 ++- sqlmap.conf | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/core/optiondict.py b/lib/core/optiondict.py index f46629e52..1b7fb0908 100644 --- a/lib/core/optiondict.py +++ b/lib/core/optiondict.py @@ -185,7 +185,7 @@ optDict = { "checkPayload": "boolean", "cleanup": "boolean", "dependencies": "boolean", - "disableCracking": "boolean", + "disableHash": "boolean", "disableLike": "boolean", "googlePage": "integer", "mobile": "boolean", diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 6b3c6c657..889db5094 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -590,7 +590,7 @@ def cmdLineParser(): action="store_true", help="Check for missing sqlmap dependencies") - miscellaneous.add_option("--disable-cracking", dest="disableCracking", + miscellaneous.add_option("--disable-hash", dest="disableHash", action="store_true", help="Disable password hash cracking mechanism") diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index d3b38d231..75ac02730 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -1741,8 +1741,9 @@ class Enumeration: kb.data.dumpedTable["__infos__"] = {"count": entriesCount, "table": safeSQLIdentificatorNaming(tbl, True), "db": safeSQLIdentificatorNaming(conf.db)} + if not conf.disableHash: + attackDumpedTable() - attackDumpedTable() conf.dumper.dbTableValues(kb.data.dumpedTable) except sqlmapConnectionException, e: diff --git a/sqlmap.conf b/sqlmap.conf index 30a639185..4a02b25cb 100644 --- a/sqlmap.conf +++ b/sqlmap.conf @@ -634,7 +634,7 @@ dependencies = False # Disable password hash cracking mechanism. # Valid: True or False -disableCracking = False +disableHash = False # Disable LIKE search of identificator names. # Valid: True or False