![]() |
help me to remember..
Hi all,
I remember of a tool useful to find the right space where to insert a patch stub into a binary file. I mean enough 00s space to insert what I need for a patch.. could you help me to remember? |
1 Attachment(s)
Maybe this one?
|
1 Attachment(s)
|
Topo, right. But also codecaver is nice I didn't know it.
|
You can add a section with LordPe.
|
I guess giv´s suggestion is the proper way at all.. Add a section or look for gap between sections (and modify the section properties for read/write/execute if needed). Pasting something into 0 byte arrays that appear somewhere in the file aint a proper way at all.
|
@Shub-Nigurrath
It is very simply You can search for enough null bytes for a cave Example Stubsize = 1000 Section end to start and count the Nullbytes backwarts ( why end to start? the most nullbytes is on end of section) If nullbytes not 1000 add a section for your Stub with 1000 bytes I hope you understand it if not Pm me. Quote:
Greets, |
@Shub-Nigurrath: try load file into PEiD -> click(>) Section viewer then right-click chose "Cave finder"
BR, quygia128 |
Notmex is right; it is sometimes really a problem when you insert code where are zero-bytes... you cannot say for sure if this area is not used just because there are zeroe's...
|
There are a lot of tools able to insert "free zero'ed space" inside PE, anyway my personal reference document where you could gather, and sometimes remember and also learn, useful infos is h__p://www.ntcore.com/files/inject2exe.htm (in according to Giv, obviously). Greetings fly out to NtOsKrnl, the author of the magnificient CFF Explorer.
|
2 Attachment(s)
As previously said the best way is to add a new section, so i have just found 2 nice tools from my archive when i was "younger", the 1st has been released by CiM team and works on win32 targets only, the 2nd one comes with source code. Have fun ;)
ps) @Moderator, could you join my 2 latest messages, please? Thanks in advance |
sectionAdd.zip is virused ?
|
lols, sorry for the groan.. probably something went wrong...
Merry Christmas all! |
Quote:
My Eset says "sectionAdd.exe - Win32/RedBlood.21 trojan" :) -> False Alarm, due to heuristic algo, nothing more. |
@Shub-Nigurrath:
+1 / MaRKuS-DJM : you can't be sure that zero-bytes area is a good choice for adding code. ________________________________________________________________________________ @niculaita: sectionAdd.zip is sane. In case of, you have the source asm file inside. Regards for both. |
| All times are GMT +8. The time now is 05:26. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX