(Still in development) This platform is the result of human engineering. AI was used solely for security audits.

romdump.net
romdump.net › Dump index › D-Link DIR-3040 (rev A1, AC3000 router)

D-Link DIR-3040 (rev A1, AC3000 router) 1.13B03 beta

pending review

uploaded by admin · · edited

U-Boot uImage · mips · u-boot · 16.9 MiB

request takedown

About this dump

Source

Downloaded from D-Link's public download server: DIR-3040V1.13B03Beta_for_Vulnerable_20210512.bin (cert CN *.us.dlink.com, O=D-Link Systems Inc.).

Format and unpacking

  • Container: D-Link SHRS image (magic SHRS); payload 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_key c05fbf1936c99429ce2a0781f08d6ad8, 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, name "Linux Kernel Image", arch MIPS, compression LZMA; and carries the DIR-3040 device tag at offset 0x40.

Contents

  • uImage (MIPS kernel + LZMA-packed rootfs).
  • Device: DIR-3040 (AC3000 tri-band router), MediaTek MT7621 (MIPS).
  • Uploaded the decrypted image.

Credit

Method reference: afflicted.sh / tpbreak.

Technical fingerprint

U-Boot uImage · mips · u-boot

entropy 8.00 bits/byte · analysed 16.9 MiB

Mostly compressed. 100% is compressed or encrypted data; the structures below mark where the streams and filesystems start.

  • compressed or encrypted 100%

Structures by offset

OffsetStructureKind
0x0 u-boot uImage header Bootloader
0x0 uimage File format
0x1f lzma uImage ih_comp Compression
0x34466 gzip Compression
0x4329c1 bzip2 Compression

What's inside

FieldDetected information
File format uimage
Architecture mips uImage ih_arch 0x1d
Bootloader u-boot uImage header
Compression bzip2 0x4329c1gzip 0x34466lzma uImage ih_comp 0x1f

Symbols

1 name from strings that are symbols. A name searches the site for it; an offset opens the hex viewer there.

NameKindOffset
uLS3Dx string 0xeb53da