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

Skip to content

Commit 25b923b

Browse files
committed
minor fixes and minor updates
1 parent 3995891 commit 25b923b

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

lib/controller/checks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,9 @@ def genCmpPayload():
398398
if not Backend.getIdentifiedDbms():
399399
warnMsg = "using unescaped version of the test "
400400
warnMsg += "because of zero knowledge of the "
401-
warnMsg += "back-end DBMS"
401+
warnMsg += "back-end DBMS. you can try to "
402+
warnMsg += "explicitly set it using the --dbms "
403+
warnMsg += "option"
402404
singleTimeWarnMessage(warnMsg)
403405

404406
# Test for UNION query SQL injection

lib/core/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2649,6 +2649,7 @@ def __init__(self):
26492649
pointer = pointer.next[char]
26502650
else:
26512651
pointer = None
2652+
break
26522653

26532654
if pointer in (None, head):
26542655
errMsg = "mnemonic '%s' can't be resolved to any parameter name" % name

lib/core/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
"tech": "BEUST"
2626
}
2727

28-
defaults = advancedDict(_defaults)
28+
defaults = advancedDict(_defaults)

lib/core/testing.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,17 @@ def smokeTest():
3737
retVal = True
3838
count, length = 0, 0
3939

40-
for _, _, files in os.walk(paths.SQLMAP_ROOT_PATH):
40+
for root, _, files in os.walk(paths.SQLMAP_ROOT_PATH):
41+
if 'extra' in root:
42+
continue
43+
4144
for ifile in files:
4245
length += 1
4346

4447
for root, _, files in os.walk(paths.SQLMAP_ROOT_PATH):
48+
if 'extra' in root:
49+
continue
50+
4551
for ifile in files:
4652
if os.path.splitext(ifile)[1].lower() == '.py' and ifile != '__init__.py':
4753
path = os.path.join(root, os.path.splitext(ifile)[0])

0 commit comments

Comments
 (0)