This time we will build modified version of D-Link DNS-323 firmware.
Flashing modified firmware binary image can brick your device voiding warranty. Use at own risk
As an example we will modify security mode in Samba configuration file and put it in “defaults” section of firmware.
Lets look at D-Link DNS-323 firmware structure and building procedures.
(You can get parseFirmware.py util here.)
Internally firmware binary contains three parts:
I finally got D-Link DNS-323 firmware pack/unpack scripts running.
We’re talking about this device (russian page).
There are some sites about modifying this device firmware. What they lack is tools and information about building own firmware binary image to flash device through its web-interface.
Alas D-Link doesn’t publish firmware building tools, only source code for used software.
Fortunately such tools are available for Conceptronic CH3SNAS which is built upon similar hardware and software.
So I looked at web-interface source code of both devices and source code of firmware building tool for Conceptronic device and managed to create working firmware image parsing/building tools out of it.
You can get those tools here.
Instructions will follow.