From cd9a6633652b325670e5c8b7496bbb7e789e9a56 Mon Sep 17 00:00:00 2001 From: syschmod <63498533+syschmod@users.noreply.github.com> Date: Thu, 23 Apr 2020 23:24:28 +0200 Subject: [PATCH] Add number of entries in D-Link ROMFS signature --- src/binwalk/magic/filesystems | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/binwalk/magic/filesystems b/src/binwalk/magic/filesystems index c9ac29e98..a20a98ccb 100644 --- a/src/binwalk/magic/filesystems +++ b/src/binwalk/magic/filesystems @@ -571,14 +571,17 @@ # Not to be confused with an actual romfs image! # ftp://ftp.dlink.eu/Products/dir/dir-600/driver_software/DIR-600_fw_revC1_3-05B15__all_en_20120216.zip +# based on eCos romfs, but with lzma files compression 0x10 string ROMFS\x20v D-Link ROMFS filesystem, >0x17 string x version %s, >0 string !\x2EmoR >>0 string !Rom\x2E {invalid} unknown endianness >0 string \x2EmoR little endian, +>>4 lelong x %d entries, >>8 lelong x size: <= %d #>>8 lelong-0x20 x {jump:%d} >0 string Rom\x2E big endian, +>>4 belong x %d entries, >>8 belong x size: <= %d #>>8 belong-0x20 x {jump:%d}