Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Insert same bytes to multiple addresses

Coders and would-be coders alike, this is the place to talk about programming.
Post Reply
robotnick
beginner
Posts: 23
Joined: Sun Feb 17, 2008 1:52 pm
Has thanked: 4 times

Insert same bytes to multiple addresses

Post by robotnick »

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!
atom0s
beginner
Posts: 35
Joined: Sat Sep 27, 2014 9:19 am
Location: http://atom0s.com or http://zenhax.com
Been thanked: 14 times
Contact:

Re: Insert same bytes to multiple addresses

Post by atom0s »

Removed.
Last edited by atom0s on Fri Sep 15, 2017 9:39 am, edited 1 time in total.
My personal website: http://atom0s.com
robotnick
beginner
Posts: 23
Joined: Sun Feb 17, 2008 1:52 pm
Has thanked: 4 times

Re: Insert same bytes to multiple addresses

Post by robotnick »

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? :(
atom0s
beginner
Posts: 35
Joined: Sat Sep 27, 2014 9:19 am
Location: http://atom0s.com or http://zenhax.com
Been thanked: 14 times
Contact:

Re: Insert same bytes to multiple addresses

Post by atom0s »

Removed.
Last edited by atom0s on Fri Sep 15, 2017 9:39 am, edited 1 time in total.
My personal website: http://atom0s.com
robotnick
beginner
Posts: 23
Joined: Sun Feb 17, 2008 1:52 pm
Has thanked: 4 times

Re: Insert same bytes to multiple addresses

Post by robotnick »

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).
WRS
ultra-veteran
ultra-veteran
Posts: 603
Joined: Fri Nov 06, 2009 12:13 am
Has thanked: 74 times
Been thanked: 137 times

Re: Insert same bytes to multiple addresses

Post by WRS »

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:
RamiroCruzo
ultra-n00b
Posts: 3
Joined: Fri Aug 07, 2015 4:38 pm
Has thanked: 1 time

Re: Insert same bytes to multiple addresses

Post by RamiroCruzo »

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.
Post Reply