How to extract all dependencies from a Windows fil

2019-08-18 04:33发布

问题:

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.

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

回答1:

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