mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
fix for resume from session
This commit is contained in:
parent
ea1b0d31be
commit
4f346eab33
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user