mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Fix for Issue #72
This commit is contained in:
parent
54e0a2d8ee
commit
a525dd4336
|
@ -204,15 +204,15 @@ def __setHashDB():
|
|||
"""
|
||||
|
||||
if not conf.hashDBFile:
|
||||
conf.hashDBFile = "%s%shashdb" % (conf.outputPath, os.sep)
|
||||
conf.hashDBFile = "%s%ssession.sqlite" % (conf.outputPath, os.sep)
|
||||
|
||||
if os.path.exists(conf.hashDBFile):
|
||||
if conf.flushSession:
|
||||
try:
|
||||
os.remove(conf.hashDBFile)
|
||||
logger.info("flushing query storage file")
|
||||
logger.info("flushing session file")
|
||||
except OSError, msg:
|
||||
errMsg = "unable to flush the hashdb file (%s)" % msg
|
||||
errMsg = "unable to flush the session file (%s)" % msg
|
||||
raise sqlmapFilePathException, errMsg
|
||||
|
||||
conf.hashDB = HashDB(conf.hashDBFile)
|
||||
|
|
Loading…
Reference in New Issue
Block a user