Aug-12-2023, 08:15 PM
(This post was last modified: Aug-13-2023, 12:08 PM by deanhystad.)
Q?: Can the 8b/8c/8d appear anywhere, or only at multiple of 3 byte offsets?
Here's a way to convert an array of bytes into 24bit ints.
https://stackoverflow.com/questions/1208...1#34128171
Depending on the answer to my question you might need to do this 3 times to get all possible 24 bit integers. Once you have that, look for numbers int he range 0x8C0000 to 0x8F0000. This can be done quickly using numpy. Like this:
https://stackoverflow.com/questions/4503...nge-python
And you can use numpy.unique() to get a count of each unique value.
https://numpy.org/doc/stable/reference/g...nique.html
Here's a way to convert an array of bytes into 24bit ints.
https://stackoverflow.com/questions/1208...1#34128171
Depending on the answer to my question you might need to do this 3 times to get all possible 24 bit integers. Once you have that, look for numbers int he range 0x8C0000 to 0x8F0000. This can be done quickly using numpy. Like this:
https://stackoverflow.com/questions/4503...nge-python
And you can use numpy.unique() to get a count of each unique value.
https://numpy.org/doc/stable/reference/g...nique.html