MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _setHashDB

Function _setHashDB

lib/core/target.py:436–456  ·  view source on GitHub ↗

Check and set the HashDB SQLite file for query resume functionality.

()

Source from the content-addressed store, hash-verified

434 break
435
436def _setHashDB():
437 """
438 Check and set the HashDB SQLite file for query resume functionality.
439 """
440
441 if not conf.hashDBFile:
442 conf.hashDBFile = conf.sessionFile or os.path.join(conf.outputPath, SESSION_SQLITE_FILE)
443
444 if conf.flushSession:
445 if os.path.exists(conf.hashDBFile):
446 if conf.hashDB:
447 conf.hashDB.closeAll()
448
449 try:
450 os.remove(conf.hashDBFile)
451 logger.info("flushing session file")
452 except OSError as ex:
453 errMsg = "unable to flush the session file ('%s')" % getSafeExString(ex)
454 raise SqlmapFilePathException(errMsg)
455
456 conf.hashDB = HashDB(conf.hashDBFile)
457
458def _resumeHashDBValues():
459 """

Callers 1

setupTargetEnvFunction · 0.85

Calls 6

getSafeExStringFunction · 0.90
HashDBClass · 0.90
closeAllMethod · 0.80
removeMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…