From 4f346eab333abc7abccc15e1ccee3312ff00e8f1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 7 Nov 2010 23:25:53 +0000 Subject: [PATCH] fix for resume from session --- lib/controller/checks.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 75d84221c..214e20a14 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -221,12 +221,10 @@ def checkStability(): infoMsg = "testing if the url is stable, wait a few seconds" logger.info(infoMsg) - firstPage, _ = Request.queryPage(content=True) + firstPage = conf.seqMatcher.a # set inside checkConnection() time.sleep(1) secondPage, _ = Request.queryPage(content=True) - conf.seqMatcher.set_seq1(firstPage) - kb.pageStable = (firstPage == secondPage) if kb.pageStable: @@ -401,7 +399,8 @@ def checkConnection(): logger.info(infoMsg) try: - Request.getPage() + page, _ = Request.queryPage(content=True) + conf.seqMatcher.set_seq1(page) except sqlmapConnectionException, errMsg: errMsg = getUnicode(errMsg)