mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +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():
|
||||
warnMsg = "using unescaped version of the test "
|
||||
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)
|
||||
|
||||
# Test for UNION query SQL injection
|
||||
|
|
|
@ -2649,6 +2649,7 @@ def expandMnemonics(mnemonics, parser, args):
|
|||
pointer = pointer.next[char]
|
||||
else:
|
||||
pointer = None
|
||||
break
|
||||
|
||||
if pointer in (None, head):
|
||||
errMsg = "mnemonic '%s' can't be resolved to any parameter name" % name
|
||||
|
|
|
@ -25,4 +25,4 @@ _defaults = {
|
|||
"tech": "BEUST"
|
||||
}
|
||||
|
||||
defaults = advancedDict(_defaults)
|
||||
defaults = advancedDict(_defaults)
|
||||
|
|
|
@ -37,11 +37,17 @@ def smokeTest():
|
|||
retVal = True
|
||||
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:
|
||||
length += 1
|
||||
|
||||
for root, _, files in os.walk(paths.SQLMAP_ROOT_PATH):
|
||||
if 'extra' in root:
|
||||
continue
|
||||
|
||||
for ifile in files:
|
||||
if os.path.splitext(ifile)[1].lower() == '.py' and ifile != '__init__.py':
|
||||
path = os.path.join(root, os.path.splitext(ifile)[0])
|
||||
|
|
Loading…
Reference in New Issue
Block a user