FirmAE
Automated framework for firmware emulation and vulnerability analysis. Improves emulation success rate from 16.28% to 79.36% compared to Firmadyne using five arbitration techniques.
Setup
git clone https://github.com/pr0v3rbs/FirmAE.git
cd FirmAE
./download.sh
./install.sh
reboot
./docker-init.sh
sudo apt install python3-coloredlogs -yPostgreSQL via Docker
service postgresql stop
docker pull postgres
docker run -itd -e POSTGRES_USER=firmadyne -e POSTGRES_PASSWORD=firmadyne \
-e POSTGRES_DB=firmware -p 5432:5432 \
-v /data:/var/lib/postgresql/data --name postgresql postgres
PGPASSWORD=firmadyne psql -h localhost -p 5432 -U firmadyne -d firmware < ./database/schemaEmulation
# Emulation check (~5-6 min)
./docker-helper.py -ec tplink ./firmwares/[firmware_file].zip
# Debug mode
./docker-helper.py -ed firmwares/[firmware_file].zipWeb Interface Access
socat TCP-LISTEN:8080,reuseaddr,fork \
'EXEC:docker exec -i [container_name] "socat STDIO TCP-CONNECT:192.168.1.1:80"' &
curl http://localhost:8080