Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Adding section to windows programs (https://forum.exetools.com/showthread.php?t=6408)

Hero 01-14-2005 21:08

Adding section to windows programs
 
Hi all
I write an small program that adds a section to a exe file.But when I tested
on notepad.exe or mspaint.exe,new program crashes.
I first think that my program is buggy,But when I see that the Yoda yC that
protects every normal program correctly(it adds section too) is crashing too,
I think perhaps there is a modification detection on windows programs.
Is my idea is correct?Is there any change detection in this windows programs?

sincerely yours

omidgl 01-15-2005 04:07

You can use an external dll. and use executable file caves to load your dll and call your dll functions. It's better not to change the image size for several reasons.

Eggi 01-15-2005 05:57

I dont think that there is a protection on notepad because its one of the programs which is very often used for trying new protectors.

elooo 01-15-2005 06:53

Maybe your new program crashes because you write on the bound import directory when you add a new section.
Try to set to 0 the VirtualAddress and the Size of the IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT in the PE Header of your new program and I think it will work perfectly ;)

taos 01-16-2005 05:49

to HERO:

Please read more stuff about PE HEADER, you need read more, :-) and test your final EXE with OLLYDebug.
If you think that in Notepad can have "a modification detection", definitely you must study more.

hinte 01-17-2005 05:56

Quote:

Originally Posted by Eggi
I dont think that there is a protection on notepad because its one of the programs which is very often used for trying new protectors.

i must full agree witch that :)
Hero: if you written a program that add section to exe, you should remember
to move file sections (if needed - if no place to add next section, only 28h bytes) and important - change sizeof image - the place in memory where will be file code.. (sections), and you should remember to make a valid attributters to section like: valid VS, VA, RAW Size .. etc.. everything should be correct - specialy on XP systems..

netxman 01-17-2005 11:52

Hero:

Somebody said that Notepad.exe has different PE format,I am not sure about it , but you'd better choose other programs to test.

:cool:


All times are GMT +8. The time now is 16:50.

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