Often, while working with IoT devices, one of the limitations is we are not able to perform a lot of tests and exploitation without having access to the actual device. However, in this section, we will discuss a way in which you can emulate your firmware and interact with the emulated device as if it were an actual device sitting on your network.
In order to emulate firmware, we will be using a script called Firmware Analysis Toolkit (FAT) written by the authors of this book. FAT uses Firmadyne in order to perform the emulation of firmware images.
The underlying utility used in Firmadyne is QEMU, which allows users to emulate the entire system architecture and run content on top of it. It also takes advantage of additional scripts written by the tool authors, such as the NVRAM emulator located at https://github.com/firmadyne/libnvram. It also uses tools such as Binwalk, which we discussed earlier, to extract a filesystem from firmware which...