Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to increase an exe size without altering the behavior of it. Is it possible to fill it with blank data?

share|improve this question
    
If it was signed with Authenticode, it likely will render the signature invalid, I do think? – Uwe Keim Jul 14 '11 at 7:46
    
Ah, but Uwe, he said "unsigned". And an unsigned app definitely can be altered -- viruses do this all the time. – Daniel R Hicks Jul 14 '11 at 10:44
up vote 9 down vote accepted

Yes. This was a common trick to avoid the "no games in the office" rules in the 90s. Just append data to the end. IIRC they (never me ;-) used the append >> command line to do this.

Example:

copy %windir%\notepad.exe test.exe
echo "appended data" >> test.exe
test.exe
share|improve this answer
    
Thanks for the example @Jader. I was feeling too lazy to verify the syntax. ;-) – Chris Nava Jul 13 '11 at 3:43

Sure, you could use a resource editor to add an empty resource section.

Why do you want to do this?

share|improve this answer
    
LULz, same question. – surfasb Jul 12 '11 at 20:11
    
I want to delay a download for debugging purposes – Jader Dias Jul 12 '11 at 20:12
1  
Throttling the network connection (globally or locally) makes more sense to me than padding an .exe file. Of course, it does depend on what you need to debug. – afrazier Jul 12 '11 at 20:20

It can be an issue for some anti virus software but windows loader doesn't care about any extra data.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .