Kinginyourcastle.py 文件源码

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

项目:data-processing 作者: MISP 项目源码 文件源码
def check_pe_header(filepath):
    try:
        pe = pefile.PE(filepath)
        if (pe.DOS_HEADER.e_magic == int(0x5a4d) and pe.NT_HEADERS.Signature == int(0x4550)):
            return True
    except (pefile.PEFormatError):
        return False
    except(Exception) as e:
        print("LOG - Something weird %s - %s" % (str(e), filepath))
        return False
    return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号