A collection of scripts intended to aid in reverse engineering of HP OfficeJet
printers, possibly other models too.
The scripts have only been tested on Python 3.9.9
.
Note: Requires hexdump python module
Script that unpacks/extracts .ful
firmware updates, ideally giving you a flash image + bootloader.srec
to analyze.
Usage: python unpack-ful.py [pathToFul]
Note: Requires lzss python module
IDA loader that loads an unpacked flash image. It sets the processor type to ARM big endian, creates and setups segments, handles memcpy list and decompresses necessary segments.
Copy to the loaders
directory in your IDA installation.
Note: Requires ida-minsc
IDA script that defines modules in the firmware.
Requires some structures to be defined so you have to load the Types.idc
script first.
I recommend you reanalyze the firmware afterwards by going to Options
->General
->Analysis
and clicking the Reanalyze program
button.