Python Forum
creating hex dump modifying program - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: creating hex dump modifying program (/thread-21766.html)



creating hex dump modifying program - ensoniq - Oct-13-2019

I'm a noob to coding.
But I've been using a simple hex editor to manually modify hex .bin dumps for past 3 years.
I work with .bin hex files which need overwriting of bytes or values (not sure about correct term) in certain areas of the dump.

Example: dumps "HCA" always need bytes from position 00AF to position 10A4 overwritten with bytes "0000".

dumps "TLC" always need bytes from position 20AA to position 40AF overwritten with bytes "0000".

Instead of me constantly doing this manually in the hex editor I thought of creating a python hex editor program that does is automatically somehow like this:

1) Open python program.
2) Select hex overwriting template ( according to dump type that will need to be modified.)
3) Browse and Select dump file thru window.
4) python creates a backup copy of dump and loads dump into memory / buffer.
5) Dump gets modified according to the selected dump type in step 2.
6) window pops up asking where to save the modified dump
7) user selects the directory and new name for the modified dump and clicks "save"
8) modified dump gets saved in chosen directory under the newly selected name


RE: creating hex dump modifying program - Larz60+ - Oct-13-2019

Is there a question here?


RE: creating hex dump modifying program - ensoniq - Oct-14-2019

(Oct-13-2019, 06:17 PM)Larz60+ Wrote: Is there a question here?

Sorry I'm such a noob, don't even where to start with this project


RE: creating hex dump modifying program - Larz60+ - Oct-14-2019

start by writing pseudo code
then make an attempt at python code.
post your code and ask specific questions about problem areas.