Page 1 of 1

Programming Interface to HxD

Posted: 28 Jun 2009 00:26
by im2020
I used to program a lot but am now very rusty.

Can anyone help me do the following?

I am reassembling some video fragments from a hard drive (which I deleted in error).

HxD has proved a perfect tool to find my way around the disc and understand what I need to do. I now want to automate a process whereby I search for a hex pattern (01BA44) and then look at the next three bytes. Within a contiguous video fragment these are incremented by 4 or 5 for every occurrence of the pattern 01BA44. I want to stop the search when those three bytes show something other than the regular increment, i.e. when the fragment has finished.

What's the easiest way to code this as an interface to HxD? (What language or script?)

Thanks in advance for any help.

Re: Programming Interface to HxD

Posted: 28 Jun 2009 20:41
by Maƫl
HxD currently has no support for scripting or similar kinds of automation. But there is an entry for this under feature requests.
Maybe dd can be of some help: http://www.chrysocome.net/dd

Re: Programming Interface to HxD

Posted: 05 Jul 2009 20:41
by im2020
I've achieved what I wanted by setting up a macro in Macro Express (Insight Software Solutions) to cut and paste from HxD into Excel (to conduct analyses) and then conditionally return to HxD to continue searching.