Minor patch

This commit is contained in:
Miroslav Stampar
2026-02-03 10:03:34 +01:00
parent 97851871f5
commit be07aea5fb
3 changed files with 11 additions and 3 deletions

View File

@@ -453,6 +453,14 @@ def _setHashDB():
errMsg = "unable to flush the session file ('%s')" % getSafeExString(ex)
raise SqlmapFilePathException(errMsg)
for suffix in ("-shm", "-wal"):
leftover = conf.hashDBFile + suffix
if os.path.exists(leftover):
try:
os.remove(leftover)
except OSError:
pass
conf.hashDB = HashDB(conf.hashDBFile)
def _resumeHashDBValues():