#1
|
|||
|
|||
Reliable PE Library or DLL for Adding Functions to Import Table
I'm looking for a Code Snippet or PE Library that is able to add new Libraries and functions to Portable Executable files.
I've used PE Library by Pumqara but it failed to do that (some access violations) |
#2
|
||||
|
||||
I think there some way to do it manuallyone of them :
prepare a dll file which u want to add to the exe file then ....u must know the Function which u want to call it ....then u want to find some cave in the exe file then Patch some place to jmp to ur cave code ....Then in Patch code u want to load ur dll file first by kernel32.LoadLibraryA.... then get the Function address by KERNEL32.GetProcAddress ....then u can call that Function
__________________
Ur Best Friend Ahmadmansoor Always My Best Friend: Aaron & JMI & ZeNiX |
#3
|
||||
|
||||
Hi
check out this PEFile C++ class by in4matics / AT4RE Code:
http://www.at4re.com/f/showthread.php?t=2353 Code:
PEFile pe("1.exe"); pe.addSection(".at4re", 0x1000, false); char* functions[] = { "MessageBoxA", "ShowWindow" }; pe.addImport("user32.dll", functions, 2); pe.saveToFile("1+.exe"); Code:
www.at4re.com/tools/Releases/in4matics/m-PEFile.zip |
#4
|
|||
|
|||
Nice Code
PE Library by EXEC may also worth a look Thank you dj-siba |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add imports to DLL import table | jonwil | General Discussion | 5 | 09-07-2020 16:47 |
Adding a function to Export-Table of a PE file | omidgl | General Discussion | 3 | 04-17-2005 09:27 |
Import Rebuilding Without Import Table | Kerlingen | General Discussion | 11 | 01-13-2005 10:24 |
Can`t restore import table | thechatter | General Discussion | 9 | 11-14-2003 21:01 |
Changing Import Table?? | magic | General Discussion | 3 | 09-14-2003 01:59 |