/fat

Primary LanguageDockerfile

fat

This is just a Dockerfile for the firmware-analysis-toolkit which only seems to work on Ubuntu.

Building the Image and Running Example Firmware

  1. Clone the repository
$ git clone https://github.com/sadeli413/fat.git
$ cd fat
  1. Build the image for the firmware-analysis-toolkit.
$ docker build . -t fat
  1. Download example firmware
$ wget https://www.downloads.netgear.com/files/GDC/WNAP320/WNAP320%20Firmware%20Version%202.0.3.zip
  1. Run the image. In order for the networking to work, it needs to be run as privileged on the host.
$ docker run --privileged --rm -v $PWD:/work -w /work -it --net=host fat
  1. When you're in the container, I recommend extracting the firmware image to get an idea of what it is.
# unzip WNAP320\ Firmware\ Version\ 2.0.3.zip
# tar -xvf WNAP320_V2.0.3_firmware.tar
# binwalk -e rootfs.squashfs --run-as=root
  1. Run the firmware-analysis-toolkit
# cd /root/firmware-analysis-toolkit
# ./fat.py /work/rootfs.squashfs

Troubleshooting

  • It should give you an IP address (probably 192.168.0.100) on a new interface (probably tap1)
  • If it doesn't work then:
    1. Exit the container
    2. Run a new one (do steps 5. and 6.).