Fix for Issue #72

This commit is contained in:
Miroslav Stampar 2012-07-07 19:02:46 +02:00
parent 54e0a2d8ee
commit a525dd4336

View File

@ -204,15 +204,15 @@ def __setHashDB():
""" """
if not conf.hashDBFile: 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 os.path.exists(conf.hashDBFile):
if conf.flushSession: if conf.flushSession:
try: try:
os.remove(conf.hashDBFile) os.remove(conf.hashDBFile)
logger.info("flushing query storage file") logger.info("flushing session file")
except OSError, msg: except OSError, msg:
errMsg = "unable to flush the hashdb file (%s)" % msg errMsg = "unable to flush the session file (%s)" % msg
raise sqlmapFilePathException, errMsg raise sqlmapFilePathException, errMsg
conf.hashDB = HashDB(conf.hashDBFile) conf.hashDB = HashDB(conf.hashDBFile)