Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2013, 00:11
Shub-Nigurrath's Avatar
Shub-Nigurrath Shub-Nigurrath is offline
VIP
 
Join Date: Mar 2004
Location: Obscure Kadath
Posts: 919
Rept. Given: 60
Rept. Rcvd 419 Times in 94 Posts
Thanks Given: 68
Thanks Rcvd at 330 Times in 100 Posts
Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499
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?
__________________
Ŝħůb-Ňìĝùŕřaŧħ ₪)
There are only 10 types of people in the world: Those who understand binary, and those who don't
http://www.accessroot.com
Reply With Quote
The Following 2 Users Gave Reputation+1 to Shub-Nigurrath For This Useful Post:
mr.exodia (12-25-2013), niculaita (12-21-2013)
  #2  
Old 12-21-2013, 04:28
The Old Pirate The Old Pirate is offline
Family
 
Join Date: Sep 2005
Posts: 120
Rept. Given: 51
Rept. Rcvd 73 Times in 22 Posts
Thanks Given: 9
Thanks Rcvd at 18 Times in 10 Posts
The Old Pirate Reputation: 73
Maybe this one?
Attached Files
File Type: rar codecaver.rar (172.4 KB, 67 views)
__________________

http://youtu.be/H0QfVDebLFg
Reply With Quote
The Following 4 Users Gave Reputation+1 to The Old Pirate For This Useful Post:
alekine322 (12-22-2013), niculaita (12-21-2013), quygia128 (12-23-2013), Shub-Nigurrath (12-21-2013)
  #3  
Old 12-21-2013, 14:40
Dreamer's Avatar
Dreamer Dreamer is offline
Family
 
Join Date: May 2012
Posts: 604
Rept. Given: 613
Rept. Rcvd 659 Times in 257 Posts
Thanks Given: 117
Thanks Rcvd at 170 Times in 128 Posts
Dreamer Reputation: 38
topo is the tool you are looking for i think

topo12_fixed.rar
Reply With Quote
The Following 5 Users Gave Reputation+1 to Dreamer For This Useful Post:
alekine322 (12-22-2013), niculaita (12-21-2013), Shub-Nigurrath (12-21-2013), uel888 (12-22-2013), wilson bibe (12-21-2013)
  #4  
Old 12-21-2013, 17:56
Shub-Nigurrath's Avatar
Shub-Nigurrath Shub-Nigurrath is offline
VIP
 
Join Date: Mar 2004
Location: Obscure Kadath
Posts: 919
Rept. Given: 60
Rept. Rcvd 419 Times in 94 Posts
Thanks Given: 68
Thanks Rcvd at 330 Times in 100 Posts
Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499 Shub-Nigurrath Reputation: 400-499
Topo, right. But also codecaver is nice I didn't know it.
__________________
Ŝħůb-Ňìĝùŕřaŧħ ₪)
There are only 10 types of people in the world: Those who understand binary, and those who don't
http://www.accessroot.com
Reply With Quote
The Following User Gave Reputation+1 to Shub-Nigurrath For This Useful Post:
Dreamer (12-21-2013)
  #5  
Old 12-22-2013, 00:07
giv's Avatar
giv giv is offline
VIP
 
Join Date: Jan 2011
Location: Romania
Posts: 1,657
Rept. Given: 801
Rept. Rcvd 1,283 Times in 561 Posts
Thanks Given: 226
Thanks Rcvd at 562 Times in 240 Posts
giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299 giv Reputation: 1100-1299
You can add a section with LordPe.
Reply With Quote
  #6  
Old 12-22-2013, 00:20
Notmex Notmex is offline
Friend
 
Join Date: Nov 2013
Posts: 27
Rept. Given: 16
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 4
Thanks Rcvd at 1 Time in 1 Post
Notmex Reputation: 0
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.
Reply With Quote
  #7  
Old 12-22-2013, 01:03
ragdog ragdog is offline
Friend
 
Join Date: Feb 2011
Posts: 56
Rept. Given: 2
Rept. Rcvd 25 Times in 7 Posts
Thanks Given: 9
Thanks Rcvd at 8 Times in 5 Posts
ragdog Reputation: 25
@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:
You can add a section with LordPe.
Or with a good code ;-)

Greets,
Reply With Quote
  #8  
Old 12-22-2013, 17:25
quygia128's Avatar
quygia128 quygia128 is offline
Family
 
Join Date: Apr 2011
Location: SomeWhere
Posts: 109
Rept. Given: 242
Rept. Rcvd 182 Times in 47 Posts
Thanks Given: 121
Thanks Rcvd at 30 Times in 19 Posts
quygia128 Reputation: 100-199 quygia128 Reputation: 100-199
@Shub-Nigurrath: try load file into PEiD -> click(>) Section viewer then right-click chose "Cave finder"

BR,
quygia128
Reply With Quote
  #9  
Old 12-25-2013, 02:51
MaRKuS-DJM's Avatar
MaRKuS-DJM MaRKuS-DJM is offline
Cracker + Unpacker
 
Join Date: Aug 2003
Location: Virtual World / Network
Posts: 553
Rept. Given: 7
Rept. Rcvd 6 Times in 4 Posts
Thanks Given: 3
Thanks Rcvd at 16 Times in 10 Posts
MaRKuS-DJM Reputation: 6
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...
Reply With Quote
  #10  
Old 12-25-2013, 06:29
arlequim's Avatar
arlequim arlequim is offline
IBMSecuritySystemsXForce
 
Join Date: Feb 2009
Location: Punta Entinas-Sabinar, ALMERIMAR
Posts: 292
Rept. Given: 51
Rept. Rcvd 317 Times in 104 Posts
Thanks Given: 44
Thanks Rcvd at 186 Times in 61 Posts
arlequim Reputation: 300-399 arlequim Reputation: 300-399 arlequim Reputation: 300-399 arlequim Reputation: 300-399
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.
__________________
<<< The L10n won't give up >>>
Reply With Quote
  #11  
Old 12-25-2013, 07:10
arlequim's Avatar
arlequim arlequim is offline
IBMSecuritySystemsXForce
 
Join Date: Feb 2009
Location: Punta Entinas-Sabinar, ALMERIMAR
Posts: 292
Rept. Given: 51
Rept. Rcvd 317 Times in 104 Posts
Thanks Given: 44
Thanks Rcvd at 186 Times in 61 Posts
arlequim Reputation: 300-399 arlequim Reputation: 300-399 arlequim Reputation: 300-399 arlequim Reputation: 300-399
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
Attached Files
File Type: zip Section_Adder v0.1.zip (21.6 KB, 14 views)
File Type: zip sectionAdd.zip (7.1 KB, 16 views)
__________________
<<< The L10n won't give up >>>
Reply With Quote
The Following 2 Users Gave Reputation+1 to arlequim For This Useful Post:
alekine322 (12-26-2013), niculaita (12-25-2013)
  #12  
Old 12-25-2013, 18:43
niculaita's Avatar
niculaita niculaita is offline
Family
 
Join Date: Jun 2011
Location: here
Posts: 1,344
Rept. Given: 949
Rept. Rcvd 89 Times in 61 Posts
Thanks Given: 4,338
Thanks Rcvd at 479 Times in 338 Posts
niculaita Reputation: 89
sectionAdd.zip‎ is virused ?
Reply With Quote
  #13  
Old 12-25-2013, 20:31
mr.exodia mr.exodia is offline
Retired Moderator
 
Join Date: Nov 2011
Posts: 784
Rept. Given: 492
Rept. Rcvd 1,122 Times in 305 Posts
Thanks Given: 90
Thanks Rcvd at 711 Times in 333 Posts
mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299 mr.exodia Reputation: 1100-1299
lols, sorry for the groan.. probably something went wrong...

Merry Christmas all!
Reply With Quote
  #14  
Old 12-25-2013, 21:07
arlequim's Avatar
arlequim arlequim is offline
IBMSecuritySystemsXForce
 
Join Date: Feb 2009
Location: Punta Entinas-Sabinar, ALMERIMAR
Posts: 292
Rept. Given: 51
Rept. Rcvd 317 Times in 104 Posts
Thanks Given: 44
Thanks Rcvd at 186 Times in 61 Posts
arlequim Reputation: 300-399 arlequim Reputation: 300-399 arlequim Reputation: 300-399 arlequim Reputation: 300-399
Quote:
Originally Posted by niculaita View Post
sectionAdd.zip‎ is virused ?
No virus at all, simply some functions look like some virus behavior.
My Eset says "sectionAdd.exe - Win32/RedBlood.21 trojan" -> False Alarm, due to heuristic algo, nothing more.
__________________
<<< The L10n won't give up >>>
Reply With Quote
  #15  
Old 12-30-2013, 15:55
LaDidi LaDidi is offline
VIP
 
Join Date: Aug 2004
Posts: 211
Rept. Given: 2
Rept. Rcvd 11 Times in 10 Posts
Thanks Given: 47
Thanks Rcvd at 41 Times in 24 Posts
LaDidi Reputation: 11
@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.
Reply With Quote
The Following User Gave Reputation+1 to LaDidi For This Useful Post:
Shub-Nigurrath (12-31-2013)
Reply


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
I can't remember which program!? markbng General Discussion 2 03-04-2004 07:43


All times are GMT +8. The time now is 08:38.


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