Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2005, 21:08
Hero Hero is offline
VIP
 
Join Date: Jan 2005
Posts: 226
Rept. Given: 2
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 5
Thanks Rcvd at 2 Times in 2 Posts
Hero Reputation: 1
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
Reply With Quote
  #2  
Old 01-15-2005, 04:07
omidgl omidgl is offline
Friend
 
Join Date: Jul 2004
Posts: 86
Rept. Given: 10
Rept. Rcvd 4 Times in 3 Posts
Thanks Given: 0
Thanks Rcvd at 5 Times in 5 Posts
omidgl Reputation: 4
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.
Reply With Quote
  #3  
Old 01-15-2005, 05:57
Eggi
 
Posts: n/a
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.
Reply With Quote
  #4  
Old 01-15-2005, 06:53
elooo
 
Posts: n/a
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
Reply With Quote
  #5  
Old 01-16-2005, 05:49
taos's Avatar
taos taos is offline
The Art Of Silence
 
Join Date: Aug 2004
Location: In front of my screen
Posts: 580
Rept. Given: 65
Rept. Rcvd 54 Times in 19 Posts
Thanks Given: 69
Thanks Rcvd at 137 Times in 36 Posts
taos Reputation: 54
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.
Reply With Quote
  #6  
Old 01-17-2005, 05:56
hinte
 
Posts: n/a
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..
Reply With Quote
  #7  
Old 01-17-2005, 11:52
netxman
 
Posts: n/a
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.

Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decoding "Windows Programs" under Linux with bokken harry potter Source Code 2 08-23-2014 00:50
adding a pe section problem taos General Discussion 7 10-24-2004 17:30


All times are GMT +8. The time now is 03:41.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )