mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-21 13:49:04 +00:00
speed optimization and bug fix (kb.absFilePaths were not stored previously; also, they are now extracted only in heuristic phase)
This commit is contained in:
@@ -31,7 +31,9 @@ from lib.core.common import paramToDict
|
||||
from lib.core.common import parseTargetUrl
|
||||
from lib.core.common import randomStr
|
||||
from lib.core.common import readInput
|
||||
from lib.core.common import serializeObject
|
||||
from lib.core.common import showHttpErrorCodes
|
||||
from lib.core.common import unserializeObject
|
||||
from lib.core.convert import urlencode
|
||||
from lib.core.convert import urldecode
|
||||
from lib.core.data import conf
|
||||
@@ -172,6 +174,12 @@ def __saveToSessionFile():
|
||||
|
||||
setInjection(inj)
|
||||
|
||||
def __saveAbsFilePaths():
|
||||
key = "kb.absFilePaths"
|
||||
value = unserializeObject(conf.hashDB.retrieve(key)) or set()
|
||||
value.update(kb.absFilePaths)
|
||||
conf.hashDB.write(key, serializeObject(value))
|
||||
|
||||
def __saveToResultsFile():
|
||||
if not conf.resultsFP:
|
||||
return
|
||||
@@ -553,6 +561,7 @@ def start():
|
||||
|
||||
__saveToSessionFile()
|
||||
__saveToResultsFile()
|
||||
__saveAbsFilePaths()
|
||||
__showInjections()
|
||||
__selectInjection()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user