Open ba0f3 opened 6 years ago
Hi @ba0f3
You should add patch_imports as well:
builder.build_imports(True).patch_imports(True)
Im sorry for late response! Yes I had both of them, but it's still error
As LIEF doesn't use disassembler, the rebuilding of the import table only works if there only call
like on the IAT.
Your DLL maybe do some lea
on IAT entries so that building/patching doesn't work
same problem for me.
I followed PE Hooking tutorial, but my dll becomes corrupted after I rebuild it w/
builder.build_imports(True)
. IDA told me that the imports segment seems to be destroyed.