I have a bin file of DVB (DTH) box firmware. I want to change one image inside that bin file, how I can do this? Please guide me in right direction.
I tried bin walk, but the file that it extracted looks like unuseful.
Below is the command I tried:
$ binwalk -B /Users/Me/Documents/Reverse/dump_all.bin
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
52150 0xCBB6 LZMA compressed data, properties: 0xC8, dictionary size: 16777216 bytes, uncompressed size: 65536 bytes
55216 0xD7B0 eCos RTOS string reference: "ecos.bin.lzma"
55232 0xD7C0 eCos RTOS string reference: "ecos.bin.gz"
66048 0x10200 JPEG image data, JFIF standard 1.02
66078 0x1021E TIFF image data, big-endian, offset of first image directory: 8
68069 0x109E5 Unix path: /www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:iX='http://ns.adobe.com/iX/1.0/'>
68238 0x10A8E Unix path: /ns.adobe.com/xap/1.0/mm/'>
131072 0x20000 romfs filesystem, version 1 size: 2439392 bytes, named "rom 5c67f699"
2621440 0x280000 CramFS filesystem, little endian, size: 12288 version 2 sorted_dirs CRC 0xA76D500A, edition 0, 5 blocks, 20 files
2883584 0x2C0000 CramFS filesystem, little endian, size: 819200 version 2 sorted_dirs CRC 0xB7F50F6A, edition 0, 976 blocks, 362 files
3739148 0x390E0C Zlib compressed data, compressed
3741196 0x39160C Zlib compressed data, compressed
3743756 0x39200C Zlib compressed data, compressed
3744780 0x39240C Zlib compressed data, compressed
3746316 0x392A0C Zlib compressed data, compressed
3750924 0x393C0C Zlib compressed data, compressed
3752460 0x39420C Zlib compressed data, compressed
3753996 0x39480C Zlib compressed data, compressed
3755532 0x394E0C Zlib compressed data, compressed
3757068 0x39540C Zlib compressed data, compressed
3758604 0x395A0C Zlib compressed data, compressed
3867148 0x3B020C Zlib compressed data, compressed
3901964 0x3B8A0C Zlib compressed data, compressed
3903500 0x3B900C Zlib compressed data, compressed
3905036 0x3B960C Zlib compressed data, compressed
3906572 0x3B9C0C Zlib compressed data, compressed
3908108 0x3BA20C Zlib compressed data, compressed
3909644 0x3BA80C Zlib compressed data, compressed
3911180 0x3BAE0C Zlib compressed data, compressed
3912716 0x3BB40C Zlib compressed data, compressed
3914252 0x3BBA0C Zlib compressed data, compressed
4020748 0x3D5A0C Zlib compressed data, compressed
4022284 0x3D600C Zlib compressed data, compressed
4023820 0x3D660C Zlib compressed data, compressed
4041740 0x3DAC0C Zlib compressed data, compressed
4045836 0x3DBC0C Zlib compressed data, compressed
4047372 0x3DC20C Zlib compressed data, compressed
4064780 0x3E060C Zlib compressed data, compressed
4065804 0x3E0A0C Zlib compressed data, compressed
4133900 0x3F140C Zlib compressed data, compressed
4135436 0x3F1A0C Zlib compressed data, compressed
4140556 0x3F2E0C Zlib compressed data, compressed
4142092 0x3F340C Zlib compressed data, compressed
4147212 0x3F480C Zlib compressed data, compressed
4148748 0x3F4E0C Zlib compressed data, compressed
And the second command to extract file:
$ binwalk -e /Users/Me/Documents/Reverse/dump_all.bin -C /Users/me/Documents/Reverse/dump_all
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
WARNING: Extractor.execute failed to run external extractor '7z e -y '%e'': [Errno 2] No such file or directory
52150 0xCBB6 LZMA compressed data, properties: 0xC8, dictionary size: 16777216 bytes, uncompressed size: 65536 bytes
55216 0xD7B0 eCos RTOS string reference: "ecos.bin.lzma"
55232 0xD7C0 eCos RTOS string reference: "ecos.bin.gz"
66048 0x10200 JPEG image data, JFIF standard 1.02
66078 0x1021E TIFF image data, big-endian, offset of first image directory: 8
68069 0x109E5 Unix path: /www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:iX='http://ns.adobe.com/iX/1.0/'>
68238 0x10A8E Unix path: /ns.adobe.com/xap/1.0/mm/'>
131072 0x20000 romfs filesystem, version 1 size: 2439392 bytes, named "rom 5c67f699"
WARNING: Extractor.execute failed to run external extractor 'cramfsck -x '%%cramfs-root%%' '%e'': [Errno 2] No such file or directory
WARNING: Extractor.execute failed to run external extractor 'cramfsswap '%e' '%e.swap' && cramfsck -x '%%cramfs-root%%' '%e.swap'': [Errno 2] No such file or directory
2621440 0x280000 CramFS filesystem, little endian, size: 12288 version 2 sorted_dirs CRC 0xA76D500A, edition 0, 5 blocks, 20 files
WARNING: Extractor.execute failed to run external extractor 'cramfsck -x '%%cramfs-root%%' '%e'': [Errno 2] No such file or directory
WARNING: Extractor.execute failed to run external extractor 'cramfsswap '%e' '%e.swap' && cramfsck -x '%%cramfs-root%%' '%e.swap'': [Errno 2] No such file or directory
2883584 0x2C0000 CramFS filesystem, little endian, size: 819200 version 2 sorted_dirs CRC 0xB7F50F6A, edition 0, 976 blocks, 362 files
3739148 0x390E0C Zlib compressed data, compressed
3741196 0x39160C Zlib compressed data, compressed
3743756 0x39200C Zlib compressed data, compressed
3744780 0x39240C Zlib compressed data, compressed
3746316 0x392A0C Zlib compressed data, compressed
3750924 0x393C0C Zlib compressed data, compressed
3752460 0x39420C Zlib compressed data, compressed
3753996 0x39480C Zlib compressed data, compressed
3755532 0x394E0C Zlib compressed data, compressed
3757068 0x39540C Zlib compressed data, compressed
3758604 0x395A0C Zlib compressed data, compressed
3867148 0x3B020C Zlib compressed data, compressed
3901964 0x3B8A0C Zlib compressed data, compressed
3903500 0x3B900C Zlib compressed data, compressed
3905036 0x3B960C Zlib compressed data, compressed
3906572 0x3B9C0C Zlib compressed data, compressed
3908108 0x3BA20C Zlib compressed data, compressed
3909644 0x3BA80C Zlib compressed data, compressed
3911180 0x3BAE0C Zlib compressed data, compressed
3912716 0x3BB40C Zlib compressed data, compressed
3914252 0x3BBA0C Zlib compressed data, compressed
4020748 0x3D5A0C Zlib compressed data, compressed
4022284 0x3D600C Zlib compressed data, compressed
4023820 0x3D660C Zlib compressed data, compressed
4041740 0x3DAC0C Zlib compressed data, compressed
4045836 0x3DBC0C Zlib compressed data, compressed
4047372 0x3DC20C Zlib compressed data, compressed
4064780 0x3E060C Zlib compressed data, compressed
4065804 0x3E0A0C Zlib compressed data, compressed
4133900 0x3F140C Zlib compressed data, compressed
4135436 0x3F1A0C Zlib compressed data, compressed
4140556 0x3F2E0C Zlib compressed data, compressed
4142092 0x3F340C Zlib compressed data, compressed
4147212 0x3F480C Zlib compressed data, compressed
4148748 0x3F4E0C Zlib compressed data, compressed
And the output folder looks like this:
I also tried 7zip to extract files, and below is the screenshot of extracted files:
It looks like 7zip extracted the file structure I am looking for but problem is that it didn't extract files there are only folders only and there was an error message, too:
Here is the link to firmware.
66078 0x1021E TIFF image
I think this is the image that I want to remove actually DVB box has large logo on bottom right corner that I don't want it is very big and annoying.