Extract String from known address in many files

Help on how to use HxD.
Post Reply
ezhxd
Posts: 3
Joined: 27 Apr 2020 07:25

Extract String from known address in many files

Post by ezhxd »

I have 100 files of different length and similar structure.
I want to extract 2 strings and send to text editor making list. The valid data inside string has different length. I use needed + some, 20 or more.
Address from
Hex _____1____ Length 20. This contains a file path\name.*** of different length. I don't care about surplus length.
Hex _____2____ Length 20. This contains a file path\name.*** of different length. I don't care about surplus length.

If the list could include the file name it would be great. I can manage without because I can see the order form the source file.
However there must be some sort of verification of output versus source file. Win10 orders files sometime a little odd.

HexAddresses: 00000640 and 00000700
I was trying to add a sample file. Your system seems to block correct extension *.sng. Zipped !

I am new to this program, used Hex Editor Nero free. HxD is better. Thanks for help, English or German.
Attachments
00HinterHuhnstallL.zip
(493 Bytes) Downloaded 442 times
Maël
Site Admin
Posts: 1454
Joined: 12 Mar 2005 14:15

Re: Extract String from known address in many files

Post by Maël »

If you are asking if there is a way to automate this, unfortunately there isn't, since there is no scripting support yet.

But it should be relatively easy to write a small program for this, using filestreams.

You could also try something similar to what was suggested here:
viewtopic.php?f=4&t=1092#p3370
ezhxd
Posts: 3
Joined: 27 Apr 2020 07:25

Re: Extract String from known address in many files

Post by ezhxd »

Thanks, learning to do this will certainly take much more time then manual operation: Open file, GoTo1, Copy+paste (LibreOffice), GoTo2 etc.
Alternative: Seek more free Hexies.
Digital is supposed to make repeated processes easier - ;-)
Maël
Site Admin
Posts: 1454
Joined: 12 Mar 2005 14:15

Re: Extract String from known address in many files

Post by Maël »

Sure, but all that functionality takes time to implement ;)
ezhxd
Posts: 3
Joined: 27 Apr 2020 07:25

Re: Extract String from known address in many files

Post by ezhxd »

I used NEO, recently HxD.
Now installed HexEdit, WinHex, xvi32
None of these offers any way to automate range extraction, even for 1 file. Extracting in folder - no way.
You can input a string and search for it and find location.
You can not input location and extract string.
I am not sure if a hex editor of Win3.1 was able to do it. :)
Post Reply