Source
Downloaded from D-Link's public download server: DIR-3060_REVA_FIRMWARE_v1.11B04_HOTFIX.zip (cert CN *.us.dlink.com, O=D-Link Systems Inc.). Inner file DIR_3060_V1.11B04_HOTFIX_for_cmd_inject_20210306.BIN.
Format and unpacking
- Container: D-Link SHRS image (magic
SHRS); the payload is high-entropy (8.0 bits/byte), no filesystem magic before decryption (packed). - Encryption: AES-128-CBC, IV = the 16-byte salt from the header at offset
0xC. - Key: the legacy fixed D-Link
vendor_keyc05fbf1936c99429ce2a0781f08d6ad8(used by COVR-C1200/P2500 and DIR-8xx/3060-class devices), as documented in OpenWrt firmware-utils dlink-sge-image.c and 0xricksanchez/dlink-decrypt. - Tool: a small python3-cryptography script reproducing the SHRS format (AES-128-CBC).
Verification
md_post= SHA-512 of the encrypted payload matched the header.md_before= SHA-512 of the decrypted payload matched the header.md_vendor= SHA-512 of (decrypted payload +vendor_key) matched the header — confirms the key.- Decrypted output begins with a valid uImage (magic
27051956) and carries theDIR-3060device tag at offset0x40.
Contents
- uImage (kernel + LZMA-packed rootfs).
- Device: DIR-3060 (AC3000 tri-band router), MediaTek MT7621AT.
- Uploaded the decrypted image.
Credit
Method reference: afflicted.sh / tpbreak.