How to determine a windows executables DLL dependencies programmatically?

后端 未结 6 2127
隐瞒了意图╮
隐瞒了意图╮ 2020-12-09 05:08

How to determine what DLL\'s a binary depends on using programmatic methods?

To be clear, I am not trying to determine the DLL dependencies of the running exec, bu

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 05:57

    In a nutshell, you need to scan the PE file's imports section for each DLL used by the executable. Then recursively locate and scan each dll until you've found all the dependencies.

    Of course, apps can use the LoadLibrary family of functions for required or optional functionality. That won't be detected with this method.

提交回复
热议问题