yara_fn.py 文件源码

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

项目:idawilli 作者: williballenthin 项目源码 文件源码
def get_segment_buffer(segstart):
    '''
    fetch the bytes of the section that starts at the given address.
    if the entire section cannot be accessed, try smaller regions until it works.
    '''
    segend = idaapi.getseg(segstart).endEA
    buf = None
    segsize = segend - segstart
    while buf is None:
        buf = idc.GetManyBytes(segstart, segsize)
        if buf is None:
            segsize -= 0x1000
    return buf
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号