Source
Downloaded from D-Link's public download server: DIRX3260_REVA_FIRMWARE_104B01.zip (cert CN *.us.dlink.com, O=D-Link Systems Inc.). Inner file DIRX3260A1_FW104B01_beta_vul_fix buffer(0529104617).bin.
Format and unpacking
- Container: D-Link SHRS image (EAGLE PRO / Alpha Networks variant). Magic
SHRS; the payload is high-entropy (8.000 bits/byte), no filesystem magic visible before decryption. - Encryption: AES-128-CBC, IV = the 16-byte salt from the header at offset
0xC. - Key (reverse-engineered): unlike older D-Link models (fixed key), this device's
vendor_keyis derived from the per-modelenk.txtpublished in D-Link's GPL source. Method from OpenWrt firmware-utils dlink-sge-image.c: base64-decodeenk_dirx3260=NF5yKy10JTl+bSkhNj1kTTIkI3FhIyUsJDU0czMyZmR6Jl4jMzI4KjA2Mg==, then de-interleave the first 16 bytes with the published 8x8 interleaving pattern. Result:vendor_key = 7274392d34255e2b4d212964363d6d7e. - Tool: decrypted with a small python3-cryptography script (AES-128-CBC) reproducing the SHRS format.
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 — this confirms the derived key is correct.- Decrypted output begins with a U-Boot FIT image (magic
d00dfeed) and contains a squashfs-LE at0x2a0000and anOpenWrtstring.
Contents
- OpenWrt-based firmware: FIT kernel image + squashfs-LE root filesystem.
- SoC: MediaTek MT7621A (AX3200, EAGLE PRO AI).
- Uploaded the decrypted image.
Credit
Method reference: afflicted.sh / tpbreak.