Minor code cleanup

This commit is contained in:
Bernardo Damele
2011-02-08 00:02:54 +00:00
parent 2c4f6d2e99
commit 0a81415f2f
6 changed files with 57 additions and 57 deletions

View File

@@ -297,7 +297,7 @@ def checkSqlInjection(place, parameter, value):
boundPayload = agent.prefixQuery(sndPayload, prefix, where, clause)
boundPayload = agent.suffixQuery(boundPayload, comment, suffix, where)
cmpPayload = agent.payload(place, parameter, newValue=boundPayload, where=where)
return cmpPayload
# Useful to set kb.matchRatio at first based on

View File

@@ -678,7 +678,7 @@ class Agent:
limitedQuery += "NOT IN (%s" % (limitStr % num)
limitedQuery += "%s %s%s)" % (field if not uniqueField else uniqueField, fromFrom, (" ORDER BY %s" % uniqueField) if uniqueField else "")
if orderBy:
limitedQuery += orderBy

View File

@@ -37,7 +37,7 @@ def tableExists(tableFile, regex=None):
infoMsg = "checking table existence using items from '%s'" % tableFile
logger.info(infoMsg)
infoMsg = "adding words used on web page to the check list"
logger.info(infoMsg)
pageWords = getPageTextWordsSet(kb.originalPage)

View File

@@ -133,7 +133,7 @@ class Google:
raise sqlmapConnectionException, errMsg
self.__matches = self.__parsePage(page)
if not self.__matches and "detected unusual traffic" in page:
warnMsg = "Google has detected 'unusual' traffic from "
warnMsg += "this computer disabling further searches"