minor update

This commit is contained in:
Miroslav Stampar 2010-10-06 13:38:03 +00:00
parent 56dbf0038f
commit adf2231edb
4 changed files with 6 additions and 3 deletions

View File

@ -1003,7 +1003,7 @@ def __setKnowledgeBaseAttributes():
kb.dep = None
kb.docRoot = None
kb.dynamicContent = []
kb.errorPages = set()
kb.lastErrorPage = None
kb.headersCount = 0
kb.headersFp = {}
kb.htmlFp = []
@ -1021,6 +1021,7 @@ def __setKnowledgeBaseAttributes():
kb.parenthesis = None
kb.partRun = None
kb.requestUID = 0
kb.queryCounter = 0
kb.resumedQueries = {}
kb.stackedTest = None

View File

@ -266,7 +266,7 @@ def initTargetEnv():
kb.dbms = None
kb.dbmsDetected = False
kb.dbmsVersion = [ "Unknown" ]
kb.errorPages = set()
kb.lastErrorPage = None
kb.injParameter = None
kb.injPlace = None
kb.injType = None

View File

@ -57,7 +57,7 @@ class htmlHandler(ContentHandler):
if self.__match:
self.dbms = self.__dbms
self.__match = None
kb.errorPages.add(self.__page)
kb.lastErrorPage = (kb.requestUID, self.__page)
def htmlParser(page):
"""

View File

@ -89,6 +89,8 @@ class Connect:
requestHeaders = ""
responseHeaders = ""
kb.requestUID += 1
try:
if silent:
socket.setdefaulttimeout(3)