auto_mal.py 文件源码

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

项目:auto_mal 作者: 0xhughes 项目源码 文件源码
def _get_file_type(full_targ_path):
    # This function takes the full path of a target sample and determines/returns the file type via python-magic.
    try:
        magicObj = magic.open(magic.MAGIC_NONE)
        magicObj.load()
        magic_out = str(magicObj.file(full_targ_path))
    except AttributeError:
        magic_out = str(magic.from_file(full_targ_path))

    return(magic_out)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号