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

Skip to content

Commit c1a1425

Browse files
committed
Removing --disable... switches and making changes in default choice(s) for respectable sections
1 parent 07a8587 commit c1a1425

6 files changed

Lines changed: 6 additions & 26 deletions

File tree

lib/core/optiondict.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,6 @@
190190
"checkPayload": "boolean",
191191
"cleanup": "boolean",
192192
"dependencies": "boolean",
193-
"disableHash": "boolean",
194-
"disableLike": "boolean",
195193
"googlePage": "integer",
196194
"mobile": "boolean",
197195
"pageRank": "boolean",

lib/parse/cmdline.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -610,14 +610,6 @@ def cmdLineParser():
610610
action="store_true",
611611
help="Check for missing sqlmap dependencies")
612612

613-
miscellaneous.add_option("--disable-hash", dest="disableHash",
614-
action="store_true",
615-
help="Disable password hash cracking mechanism")
616-
617-
miscellaneous.add_option("--disable-like", dest="disableLike",
618-
action="store_true",
619-
help="Disable LIKE search of identificator names")
620-
621613
miscellaneous.add_option("--gpage", dest="googlePage", type="int",
622614
help="Use Google dork results from specified page number")
623615

lib/utils/hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def attackDumpedTable():
362362
if attack_dict:
363363
message = "recognized possible password hashes in column%s " % ("s" if len(col_passwords) > 1 else "")
364364
message += "'%s'. Do you want to " % ", ".join(col for col in col_passwords)
365-
message += "crack them via a dictionary-based attack? [Y/n/q]"
365+
message += "crack them via a dictionary-based attack? [y/N/q]"
366366
test = readInput(message, default="Y")
367367

368368
if test[0] in ("n", "N"):

plugins/generic/enumeration.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None):
10731073
logger.error(errMsg)
10741074
bruteForce = True
10751075

1076-
if bruteForce or colList and conf.disableLike:
1076+
if bruteForce or colList:
10771077
resumeAvailable = False
10781078

10791079
for tbl in tblList:
@@ -1785,9 +1785,7 @@ def dumpTable(self, foundData=None):
17851785
kb.data.dumpedTable["__infos__"] = {"count": entriesCount,
17861786
"table": safeSQLIdentificatorNaming(tbl, True),
17871787
"db": safeSQLIdentificatorNaming(conf.db)}
1788-
if not conf.disableHash:
1789-
attackDumpedTable()
1790-
1788+
attackDumpedTable()
17911789
conf.dumper.dbTableValues(kb.data.dumpedTable)
17921790

17931791
except sqlmapConnectionException, e:

plugins/generic/misc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ def cleanup(self, onlyFileTbl=False, udfDict=None, web=False):
176176

177177
def likeOrExact(self, what):
178178
message = "do you want sqlmap to consider provided %s(s):\n" % what
179-
message += "[1] as LIKE %s names (default)\n" % what
180-
message += "[2] as exact %s names" % what
179+
message += "[1] as LIKE %s names\n" % what
180+
message += "[2] as exact %s names (default)" % what
181181

182-
choice = readInput(message, default='1') if not conf.disableLike else '2'
182+
choice = readInput(message, default='2')
183183

184184
if not choice or choice == '1':
185185
choice = '1'

sqlmap.conf

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -651,14 +651,6 @@ cleanup = False
651651
# Valid: True or False
652652
dependencies = False
653653

654-
# Disable password hash cracking mechanism.
655-
# Valid: True or False
656-
disableHash = False
657-
658-
# Disable LIKE search of identificator names.
659-
# Valid: True or False
660-
disableLike = False
661-
662654
# Use Google dork results from specified page number.
663655
# Valid: integer
664656
# Default: 1

0 commit comments

Comments
 (0)