The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on January 23, 2008, 07:18:20 PM

Title: playing with UpdateResource
Post by: ragdog on January 23, 2008, 07:18:20 PM
hi

i have a questions to UpdateResource!
i playing with UpdateResource for add files to resource in a another exe
this works succesfully
   
But if I had added to the file are in hex-editor of the exe file these strange strings what is this


PADD
INGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING
PADDINGXXPADDINGPADDINGXXPADDING



thanks
ragdog
Title: Re: playing with UpdateResource
Post by: Tedd on January 24, 2008, 12:54:36 PM
It's just to take up space to keep the alignment and/or to avoid needing to resize the exe every modification.
Title: Re: playing with UpdateResource
Post by: ragdog on January 24, 2008, 01:59:50 PM
thanks for your reply

   
I can delete this stuff works since the executable file without error?
Title: Re: playing with UpdateResource
Post by: Tedd on January 25, 2008, 12:37:33 PM
You can overwrite it, since it will be ignored. If you want to remove it then you need to be careful as PE sections must be specific sizes - so you may need to rebuild the exe, not simply remove those bytes.
Title: Re: playing with UpdateResource
Post by: ragdog on January 25, 2008, 01:32:14 PM
thanks

i have written a routine to search for paddingxx... and fill this with 0 bytes!

greets
ragdog