Monday, October 3, 2011

Livebox 2 Sagem #4

Let's have a look at this gzip compressed data:
$ dd if=vmlinux.bin ibs=1 skip=$((0x002f1000)) 2> /dev/null | file -
/dev/stdin: gzip compressed data, from Unix, last modified: Tue Apr 26 12:28:28 2011, max compression

$ dd if=vmlinux.bin of=unknown.gz ibs=1 skip=$((0x002f1000))
7745536+0 records in
15128+0 records out
7745536 bytes (7.7 MB) copied, 5.71878 s, 1.4 MB/s

$ gunzip unknown.gz 

gzip: unknown.gz: decompression OK, trailing garbage ignored

$ file unknown 
unknown: ASCII cpio archive (SVR4 with no CRC)

What about the CRAMFS?
$ dd if=vmlinux.bin ibs=1 skip=$((0x002f4000)) 2> /dev/null | file -
/dev/stdin: Linux Compressed ROM File System data, little endian size 7733248 version #2 sorted_dirs CRC 0x3eb55673, edition 0, 1035 blocks, 733 files

$ dd if=vmlinux.bin of=cramfs ibs=1 skip=$((0x002f4000))
7733248+0 records in
15104+0 records out
7733248 bytes (7.7 MB) copied, 5.68994 s, 1.4 MB/s

No comments:

Post a Comment