#1
|
|||
|
|||
finding more code space in an exe
I have an exe that I am working with and I need more code space (not much, just a little bit), anyone got any tips for finding more code space?
|
#2
|
|||
|
|||
See if the attached tool is useful. Got it from BiWRE site.
Regards, |
#3
|
|||
|
|||
A little bit of searching would have found you a thread on the Woodmann Forum titled: "Tool to find caves into an app to add extra code???"
Here's a big hint. It's at: http://66.98.132.48/forum/showthread.php?t=5264 It not only has the file ferrari posted, but a couple of others which will help you find where to put your code. Regards,
__________________
JMI |
#4
|
|||
|
|||
what i am about to say could be completely wrong or make no sense, because i dont really have any clue about most of what you guys talk about lol.
but is it possible to open the file up as binary, then append to the file the code you want. would that work so that you could put the extra code you need into the program. oh yeah i havent even got a clue how to do what i just said even though apparently it is quite simple, i just read it somewhere, dont remember where. |
#5
|
|||
|
|||
if code length< 12 then you can find sub program space
code length no more ,you can look sub program between, sometimes have 5-14 bytes, if you want to have more ,now can use many space between sub program,
OR, Ctrl pageDown, go to code end ,perhaps you can find a lot of space |
#6
|
|||
|
|||
Just add one more section...
|
#7
|
|||
|
|||
look at the end of sections, usually they are padded quite alot for alignment reasons. Or get a PE-editor and make an existing section bigger or add your own, or you could just make it load a dll u made and you have all the space you will ever need ...
cheers koyaan |
#8
|
|||
|
|||
this is so extremely easy to do. the only way that you are restricted in adding more bytes to a section is if the raw data is greater than what is allocated in the VA. other than that, simply use winhex and go to the end of a section (get the offsets from lordpe or other pe browser) and do CTRL+0 (that's zero, not O) and put in however many bytes you need. when you're done be SURE to fix the raw section sizes and addresses thereafter. you're app will not run otherwise. if you want to add another section to the end of the PE, then umm, I'm sure you know how to do that, right?
good luck |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Of mice and men and ftp space | SheepShagger | General Discussion | 2 | 06-10-2004 04:41 |