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

Skip to content

Commit c8bac65

Browse files
committed
Fix for Issue #43
1 parent f495cfa commit c8bac65

6 files changed

Lines changed: 17 additions & 8 deletions

File tree

lib/core/optiondict.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@
185185
"checkPayload": "boolean",
186186
"cleanup": "boolean",
187187
"dependencies": "boolean",
188-
"exact": "boolean",
188+
"disableCracking": "boolean",
189+
"disableLike": "boolean",
189190
"googlePage": "integer",
190191
"mobile": "boolean",
191192
"pageRank": "boolean",

lib/parse/cmdline.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,13 @@ def cmdLineParser():
590590
action="store_true",
591591
help="Check for missing sqlmap dependencies")
592592

593-
miscellaneous.add_option("--exact", dest="exact",
593+
miscellaneous.add_option("--disable-cracking", dest="disableCracking",
594594
action="store_true",
595-
help="Prefer usage of exactly provided identificator names")
595+
help="Disable password hash cracking mechanism")
596+
597+
miscellaneous.add_option("--disable-like", dest="disableLike",
598+
action="store_true",
599+
help="Disable LIKE search of identificator names")
596600

597601
miscellaneous.add_option("--gpage", dest="googlePage", type="int",
598602
help="Use Google dork results from specified page number")

lib/techniques/union/use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __oneShotUnionUse(expression, unpack=True, limited=False):
5555

5656
if retVal is None:
5757
check = "(?P<result>%s.*%s)" % (kb.chars.start, kb.chars.stop)
58-
trimcheck = "%s(?P<result>.*?)</" % (kb.chars.start)
58+
trimcheck = "%s(?P<result>.*?)<" % (kb.chars.start)
5959

6060
# Prepare expression with delimiters
6161
injExpression = unescaper.unescape(agent.concatQuery(expression, unpack))

plugins/generic/enumeration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None):
10331033
logger.error(errMsg)
10341034
bruteForce = True
10351035

1036-
if bruteForce or colList and conf.exact:
1036+
if bruteForce or colList and conf.disableLike:
10371037
resumeAvailable = False
10381038

10391039
for tbl in tblList:

plugins/generic/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def likeOrExact(self, what):
169169
message += "[1] as LIKE %s names (default)\n" % what
170170
message += "[2] as exact %s names" % what
171171

172-
choice = readInput(message, default='1') if not conf.exact else '2'
172+
choice = readInput(message, default='1') if not conf.disableLike else '2'
173173

174174
if not choice or choice == '1':
175175
choice = '1'

sqlmap.conf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,13 @@ cleanup = False
632632
# Valid: True or False
633633
dependencies = False
634634

635-
# Prefer usage of exactly provided identificator names.
635+
# Disable password hash cracking mechanism.
636636
# Valid: True or False
637-
exact = False
637+
disableCracking = False
638+
639+
# Disable LIKE search of identificator names.
640+
# Valid: True or False
641+
disableLike = False
638642

639643
# Use Google dork results from specified page number.
640644
# Valid: integer

0 commit comments

Comments
 (0)