mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-05-14 01:16:59 +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:
parent
493e436e16
commit
2ed3efba12
6 changed files with 49 additions and 20 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue