Source
Downloaded from D-Link's public firmware server: DIR-2660_REVA_FIRMWARE_v1.11B04_HOTFIX.zip (legacyfiles.us.dlink.com; inner file DIR-2660_V1.11B04Beta_for_WPA2_20201103.bin). This is the current/latest firmware published for the DIR-2660 rev A on D-Link's download server (final build).
Format and unpacking
- Container: D-Link
SHRSimage (magicSHRS, 1756-byte header); payload 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
0x0C. - Key: the legacy fixed D-Link SGE/T&W
vendor_key = c05fbf1936c99429ce2a0781f08d6ad8(DIR-882/2640/2660-class), as documented in OpenWrt firmware-utilsdlink-sge-image.cand0xricksanchez/dlink-decrypt. - Tool: a small pure-Python script (stdlib +
opensslCLI) reproducing the SHRS format (AES-128-CBC, no padding).
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 U-Boot uImage (magic
27051956, name "Linux Kernel Image", arch MIPS, compression LZMA) and carries the device tagDIR-2660at offset0x40.
Contents
- U-Boot uImage (MIPS kernel + LZMA-packed rootfs).
- Device: D-Link DIR-2660 (rev A1), AC2600 mesh-capable dual-band router; MediaTek MT7621 (MIPS).
- Uploaded the decrypted image.
Credit
Method reference: afflicted.sh / tpbreak.