Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Reliable PE Library or DLL for Adding Functions to Import Table (https://forum.exetools.com/showthread.php?t=11665)

omidgl 06-11-2008 14:47

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)

ahmadmansoor 06-18-2008 14:49

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

dj-siba 06-28-2008 08:05

Hi

check out this PEFile C++ class by in4matics / AT4RE
Code:

http://www.at4re.com/f/showthread.php?t=2353
example
Code:

PEFile pe("1.exe");
pe.addSection(".at4re", 0x1000, false);
char* functions[] = { "MessageBoxA", "ShowWindow" };
pe.addImport("user32.dll", functions, 2);
pe.saveToFile("1+.exe");

download
Code:

www.at4re.com/tools/Releases/in4matics/m-PEFile.zip

omidgl 06-28-2008 09:53

Nice Code

PE Library by EXEC may also worth a look

Thank you dj-siba


All times are GMT +8. The time now is 10:36.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX