Examining AVM FRITZ!Box firmware


1 min read
Examining AVM FRITZ!Box firmware

Some steps too take a closer look to AVM's firmware

$ mkdir ~/Firmware; cd ~/Firmware
$ wget https://download.avm.de/fritzbox/fritzbox-7590/other/fritz.os/FRITZ.Box_7590-07.13.image

$ sudo apt install binwalk

$ ls
FRITZ.Box_7590-07.13.image
$ binwalk --signature --term FRITZ.Box_7590-07.13.image 

DECIMAL       HEXADECIMAL     DESCRIPTION
--------------------------------------------------------------------------------
0             0x0             POSIX tar archive (GNU)


$ tar xvf FRITZ.Box_7590-07.13.image
./var/
./var/install
./var/regelex
./var/tmp/
./var/tmp/kernel.image
./var/tmp/filesystem.image
./var/info.txt
./var/content
./var/version
./var/chksum
./var/urladerupdate
./var/signature


$ cd tmp/
$ binwalk --signature --term kernel.image 

DECIMAL       HEXADECIMAL     DESCRIPTION
------------------------------------------------------------------------------------------------------------------------------------------------------
4753479       0x488847        LZMA compressed data, properties: 0x5B, dictionary size: 0 bytes, uncompressed size: 2152784640 bytes


ron@laptop-dell:~/Desktop/Firmware/var/tmp$ binwalk --signature --term filesystem.image 

DECIMAL       HEXADECIMAL     DESCRIPTION
------------------------------------------------------------------------------------------------------------------------------------------------------
0             0x0             Squashfs filesystem, big endian, version 4.0, compression:xz, size: 24002361 bytes, 3836 inodes, blocksize: 65536
                              bytes, created: 1970-10-05 19:19:21

$ binwalk --extract --quiet filesystem.image
WARNING: Extractor.execute failed to run external extractor 'sasquatch -p 1 -le -d 'squashfs-root' '%e'': [Errno 2] No such file or directory: 'sasquatch': 'sasquatch', 'sasquatch -p 1 -le -d 'squashfs-root' '%e'' might not be installed correctly

WARNING: Extractor.execute failed to run external extractor 'sasquatch -p 1 -be -d 'squashfs-root' '%e'': [Errno 2] No such file or directory: 'sasquatch': 'sasquatch', 'sasquatch -p 1 -be -d 'squashfs-root' '%e'' might not be installed correctly

$ git clone https://github.com/devttys0/sasquatch
$ cd sasquatch
$ ./build.sh
..

$ mkdir -p /usr/local/bin
$ cp sasquatch /usr/local/bin

$ binwalk --extract --quiet filesystem.image 
$ ls
filesystem.image  _filesystem.image-0.extracted  _filesystem.image.extracted  kernel.image

Enable Google Authenticator 2FA for SSH
Previous article

Enable Google Authenticator 2FA for SSH

Ubuntu: $ sudo apt-get install libpam-google-authenticator Debian: $ sudo apt-get install libqrencode3 $ wget http://ftp.us.debian.org/debian/pool/main/g/google-authenticator/libpam-google-authenticator_20191231-1_amd64.deb

Updating rooted Toon 5.28.6
Next article

Updating rooted Toon 5.28.6

Login to Toon: $ ssh -c aes128-cbc -oKexAlgorithms=+diffie-hellman-group1-sha1 root@192.168.x.y Download script to your Toon: $curl -Nks https://raw.githubusercontent.com/ToonSoftwareCollective/


Related Articles

KNX with a power-line IP backbone
3 min read
T962 reflow oven enhancements
1 min read

SkypeFreak - A Cross-Platform Skype Forensic tool - InfoSec Institute

http://resources.infosecinstitute.com/skypefreak-cross-platform-skype-forensic-tool/

1 min read

Dissecting the AirPort Express | Embedded Ideation

Link: http://embeddedideation.com/2014/03/dissecting-the-airport-express/

1 min read

Arduino Yún - The Best Hacks You Will Ever See

Link: http://www.open-electronics.org/arduino-yun-the-best-hacks-you-will-ever-see/

1 min read

GO TOP