Fill in DLL import table manually: IMAGE_IMPORT_DESCRIPTOR's Name field stores 0x0000FFFF

后端 未结 1 2045
青春惊慌失措
青春惊慌失措 2020-12-22 08:47

My goal is to fill in Dll\'s import table manually in order to hook internal LoadLibrary calls (when you load library it may load another library inside its DllMain).

<
相关标签:
1条回答
  • 2020-12-22 09:34

    from your screenshot clear view that importTable point to imageBase (i.e. IMAGE_DOS_HEADER). this happens when header->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT].VirtualAddress == 0 - you not check for this condition, as result and error

    api-ms-win-crt-locale-l1-1-0.dll simply have no import - DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT] is zero. need check - are import exist before process it

    0 讨论(0)
提交回复
热议问题