added response time kb attribute

This commit is contained in:
Miroslav Stampar
2010-12-03 13:19:34 +00:00
parent 73dfb69308
commit 612ee08a0b
4 changed files with 6 additions and 3 deletions

View File

@@ -734,7 +734,9 @@ def checkConnection(suppressOutput=False):
logger.info(infoMsg)
try:
start = time.time()
page, _ = Request.queryPage(content=True)
kb.responseTime = time.time() - start
conf.seqMatcher.set_seq1(page)
except sqlmapConnectionException, errMsg:
errMsg = getUnicode(errMsg)

View File

@@ -265,7 +265,7 @@ def start():
setupTargetEnv()
if not checkConnection(conf.forms) or not checkString() or not checkRegexp():
if not checkConnection(suppressOutput=conf.forms) or not checkString() or not checkRegexp():
continue
if conf.nullConnection: