-
-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building & patching imports leads to a crash in x64 PE #777
Comments
Yes, actually the modification of the import/export table for PE binary is very (very) limited. I'll have to refactor this part around November. |
Are there any other solutions to inject frida into an exe? |
it looks like the refactoring never happened, the crashes are still going on |
+1 |
1 similar comment
+1 |
this code generate exe file but after run it crash kernel32_lhs = peFile.add_library("user32.dll") builder = lief.PE.Builder(peFile) builder.build_imports(True).patch_imports(True) builder.write(outFile) |
Import rebuild is broken for X64. |
Two years have passed and the crash continues :( |
We also needed to add the dll to the import table of the exe. https://github.com/Snshadow/debug |
any updates? i really need this feature. at least any suggestion what is the actual problem and how can i fix it myself? |
Describe the bug
I'm trying to add a single DLL to the import table of a x64 EXE
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The executable should execute regularly without any new crashes
Environment (please complete the following information):
python -c "import lief;print(lief.__version__)"
or the one fromLIEF/config.h
: 0.12.1-Additional context
Code used:
error.txt
Unfortunately I can't freely redistribute the executable so contact me if you need it to send it privately
The text was updated successfully, but these errors were encountered: