()
Check and set the HashDB SQLite file for query resume functionality.
Check and set the HashDB SQLite file for query resume functionality.
Check and set the HashDB SQLite file for query resume functionality .
def _setHashDB():
    """
    Check and set the HashDB SQLite file for query resume functionality.
    """

    if not conf.hashDBFile:
        conf.hashDBFile = conf.sessionFile or os.path.join(conf.outputPath, "session.sqlite")

    if os.path.exists(conf.hashDBFile):
        if conf.flushSession:
            try:
                os.remove(conf.hashDBFile)
                logger.info("flushing session file")
            except OSError, msg:
                errMsg = "unable to flush the session file (%s)" % msg
                raise SqlmapFilePathException(errMsg)

    conf.hashDB = HashDB(conf.hashDBFile)
def _setHashDB ( ) : if not conf . hashDBFile : conf . hashDBFile = conf . sessionFile or os . path . join ( conf . outputPath , "session.sqlite" ) if os . path . exists ( conf . hashDBFile ) : if conf . flushSession : try : os . remove ( conf . hashDBFile ) logger . info ( "flushing session file" ) except OSError , msg : errMsg = "unable to flush the session file (%s)" % msg raise SqlmapFilePathException ( errMsg ) conf . hashDB = HashDB ( conf . hashDBFile )