prepare.py 文件源码

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

项目:choronzon 作者: CENSUS 项目源码 文件源码
def find_functions():
    '''
        yields all functions in the form a 2-tuple:

            (function_address, function_name)

        function_address is a RELATIVE offset from the
        image base.
    '''
    # get image base from IDA
    image_base = idaapi.get_imagebase()

    # iterate through all functions in the executable.
    for func_ea in Functions(MinEA(), MaxEA()):
        # craft the routine record
        func_name = GetFunctionName(func_ea)
        funcaddr = func_ea - image_base
        yield funcaddr, func_name
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号