如何从Python或grep中的Windows文件中提取所有依赖项 [英] How to extract all dependencies from a Windows file in Python or grep

查看:159
本文介绍了如何从Python或grep中的Windows文件中提取所有依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Python中的Windows文件中提取所有依赖项?所以我基本上想提取所有使用的exe,dll,osx,sys等文件。

How do I extract all the dependencies from a Windows file in Python? So I basically want to extract all the used exe,dll,osx,sys etc. files.

我想在Python中直接使用,或直接用grep。 p>

I would like to to this in Python or directly with grep.

推荐答案

Pefile 可以帮助您解析PE可执行文件。您可以在项目的页面中找到一些使用示例。

Pefile can help you parse PE executables. You can find some usage examples on the project's page.

这篇关于如何从Python或grep中的Windows文件中提取所有依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆