How to do it...

To analyze firmware, we will have to reverse engineer it to look at its internal components. The internal components of firmware involve things such as bootloader, kernel, filesystem, and additional resources. Out of these, we are most interested in the filesystem as that is what will hold all the secrets for us. Obviously, you could play around with the bootloader and look at what it holds or modify it and create new firmware (which we will discuss in the upcoming sections), but at this point in time, we will be only concerned with how to reverse engineer firmware and extract the filesystem from inside it.

Firmware, as we know, is a binary file package and the filesystem is just one of the components which could be stored ...

Get IoT Penetration Testing Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.