mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-13 10:00:36 +03:00
minor fixes and minor updates
This commit is contained in:
parent
3995891ab4
commit
25b923bbc3
|
@ -398,7 +398,9 @@ def checkSqlInjection(place, parameter, value):
|
||||||
if not Backend.getIdentifiedDbms():
|
if not Backend.getIdentifiedDbms():
|
||||||
warnMsg = "using unescaped version of the test "
|
warnMsg = "using unescaped version of the test "
|
||||||
warnMsg += "because of zero knowledge of the "
|
warnMsg += "because of zero knowledge of the "
|
||||||
warnMsg += "back-end DBMS"
|
warnMsg += "back-end DBMS. you can try to "
|
||||||
|
warnMsg += "explicitly set it using the --dbms "
|
||||||
|
warnMsg += "option"
|
||||||
singleTimeWarnMessage(warnMsg)
|
singleTimeWarnMessage(warnMsg)
|
||||||
|
|
||||||
# Test for UNION query SQL injection
|
# Test for UNION query SQL injection
|
||||||
|
|
|
@ -2649,6 +2649,7 @@ def expandMnemonics(mnemonics, parser, args):
|
||||||
pointer = pointer.next[char]
|
pointer = pointer.next[char]
|
||||||
else:
|
else:
|
||||||
pointer = None
|
pointer = None
|
||||||
|
break
|
||||||
|
|
||||||
if pointer in (None, head):
|
if pointer in (None, head):
|
||||||
errMsg = "mnemonic '%s' can't be resolved to any parameter name" % name
|
errMsg = "mnemonic '%s' can't be resolved to any parameter name" % name
|
||||||
|
|
|
@ -37,11 +37,17 @@ def smokeTest():
|
||||||
retVal = True
|
retVal = True
|
||||||
count, length = 0, 0
|
count, length = 0, 0
|
||||||
|
|
||||||
for _, _, files in os.walk(paths.SQLMAP_ROOT_PATH):
|
for root, _, files in os.walk(paths.SQLMAP_ROOT_PATH):
|
||||||
|
if 'extra' in root:
|
||||||
|
continue
|
||||||
|
|
||||||
for ifile in files:
|
for ifile in files:
|
||||||
length += 1
|
length += 1
|
||||||
|
|
||||||
for root, _, files in os.walk(paths.SQLMAP_ROOT_PATH):
|
for root, _, files in os.walk(paths.SQLMAP_ROOT_PATH):
|
||||||
|
if 'extra' in root:
|
||||||
|
continue
|
||||||
|
|
||||||
for ifile in files:
|
for ifile in files:
|
||||||
if os.path.splitext(ifile)[1].lower() == '.py' and ifile != '__init__.py':
|
if os.path.splitext(ifile)[1].lower() == '.py' and ifile != '__init__.py':
|
||||||
path = os.path.join(root, os.path.splitext(ifile)[0])
|
path = os.path.join(root, os.path.splitext(ifile)[0])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user