[chbot] OT: SquashFs 1.0

Synco Reynders synco.reynders at gmail.com
Thu Sep 29 13:23:51 BST 2011


Hi all,
 I'm wanting to fix a few annoying 'features' / security holes in my
DSL-G604T ADSL router and am struggling to unsquash the following
firmware image file:
ftp://files.dlink.com.au/products/DSL-G604T/REV_B/Firmware//Firmware_v2.00B07.AU_BIN/DSL-G604T_2.00B07.AU_20060901.bin

I found the magic number ('hsqs') at offset 0x81000, so used the
following to trim it back:
dd if=imagefile.bin skip=1032 of=sqsh.bin

Now I'm stuck since the major/minor version is 1.0 and unsupported by
my kernel and it uses LZMA compression. I've tried to compiling
'unsquash' with LZMA support but it doesn't work for version 1.0. And
before 'unsquash' existed you needed a kernel module so that the image
can be mounted, although I've got a bit bogged down trying to
make/patch this kernel module. Any other tips? Suggestions?

Thanks in advance,
/s



More information about the Chchrobotics mailing list