minor fixes and minor updates

This commit is contained in:
Miroslav Stampar 2011-06-16 12:12:30 +00:00
parent 3995891ab4
commit 25b923bbc3
4 changed files with 12 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -25,4 +25,4 @@ _defaults = {
"tech": "BEUST"
}
defaults = advancedDict(_defaults)
defaults = advancedDict(_defaults)

View File

@ -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])