standalone_index.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:idsearch 作者: xorpd 项目源码 文件源码
def run():

    # Get the path of the idb:
    idb_path = idaapi.cvar.database_idb

    # Set up logging:
    log_file_path = gen_logfile_path(idb_path)
    fh = logging.FileHandler(log_file_path)
    loglevel = logging.INFO
    fh.setLevel(loglevel)
    logger.setLevel(loglevel)
    formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - '
        ' %(message)s')
    fh.setFormatter(formatter)
    logger.addHandler(fh)

    logger.info('Run was called')

    try:
        logger.info('Calling index_idb')
        gen_sdb(sdb_path=None,overwrite=True)
        logger.info('Indexing completed successfully!')
    except:
        logger.exception('Unhandled exception inside run().')
    finally:
        idc.Exit(0)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号