XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu Jul 27, 2017 5:46 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Insert same bytes to multiple addresses
PostPosted: Wed Feb 08, 2017 11:44 pm 
Offline
beginner

Joined: Sun Feb 17, 2008 1:52 pm
Posts: 21
Has thanked: 4 times
Have thanks: 0 time

Hi

I need to insert same bytes automatically to 240 different addresses from a file but I have not found any hex editor able to do that.

Tried with Hex Editor Neo and Save/Load Selection and Copy/Paste commands but that didn't work properly (bytes get shifted).

How can I do that?

Thanks for your help!

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Insert same bytes to multiple addresses
PostPosted: Thu Feb 09, 2017 10:32 am 
Offline
beginner
User avatar

Joined: Sat Sep 27, 2014 9:19 am
Posts: 36
Location: 127.0.0.1
Has thanked: 0 time
Have thanks: 14 times
010 Editor has 'Find and Replace' which you can use to locate a pattern and replace it with another pattern easily.

Image

It also has a full scripting system which can be used to edit the file or read it etc.


Top
 Profile  
 
 Post subject: Re: Insert same bytes to multiple addresses
PostPosted: Thu Feb 09, 2017 1:40 pm 
Offline
beginner

Joined: Sun Feb 17, 2008 1:52 pm
Posts: 21
Has thanked: 4 times
Have thanks: 0 time
Thanks but I don't want to replace bytes I just want to insert (not overwrite) the same bytes to many different addresses from the file. How can I do that? :(


Top
 Profile  
 
 Post subject: Re: Insert same bytes to multiple addresses
PostPosted: Sat Feb 11, 2017 4:27 am 
Offline
beginner
User avatar

Joined: Sat Sep 27, 2014 9:19 am
Posts: 36
Location: 127.0.0.1
Has thanked: 0 time
Have thanks: 14 times
robotnick wrote:
Thanks but I don't want to replace bytes I just want to insert (not overwrite) the same bytes to many different addresses from the file. How can I do that? :(


I'm not quite sure I understand. In your first post you said that it wasn't working correctly with Hex Editor Neo cause the bytes get shifted. Inserting bytes is going to shift everything after it no matter what editor you use. Are you sure you are not looking to overwrite things?


Top
 Profile  
 
 Post subject: Re: Insert same bytes to multiple addresses
PostPosted: Sat Feb 11, 2017 9:02 am 
Offline
beginner

Joined: Sun Feb 17, 2008 1:52 pm
Posts: 21
Has thanked: 4 times
Have thanks: 0 time
Sorry for my horrible English. You are right, inserting bytes shifts other data (there is no problem with that) but I want the bytes to insert remain in their right addresses (relative addresses instead of absolute addresses?)

If I paste all of them at once with Hex Editor Neo only first one remains in the right address but the other bytes to insert end up in wrong addresses because one shifts the other.

I guess I need something to insert them automatically but one by one (not at once).


Top
 Profile  
 
 Post subject: Re: Insert same bytes to multiple addresses
PostPosted: Wed Apr 26, 2017 12:18 am 
Offline
ultra-veteran
ultra-veteran

Joined: Fri Nov 06, 2009 12:13 am
Posts: 579
Has thanked: 65 times
Have thanks: 124 times
the only way to do this woud be to override the bytes when you copy your replacements.

have you tried the INSERT key before pasting? 8)

_________________
Useful tool links:


Top
 Profile  
 
 Post subject: Re: Insert same bytes to multiple addresses
PostPosted: Sat Apr 29, 2017 10:53 am 
Offline
ultra-n00b

Joined: Fri Aug 07, 2015 4:38 pm
Posts: 3
Has thanked: 1 time
Have thanks: 0 time
In my view, you can do it in two ways:
1. Split the file according to your offset list, and while merging them add those bytes.
2. Maintain track of how many times you've added those bytes and add it into your offset while you go to next offset.



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group