Setup
To start attacking the esp32 chip we should see what is in the firmware. To do this we will use esptool to dump.
Install Esptool
Identify ESP32 Com Port
Finding the com port can be useful as not all tools can automatically find what you are looking for. It depends on your platform the steps you need to take select from the drop down your os or the ardunio software.
Windows Find Com Port
Press Windows Key + X
Press Device Manger to launch device manger.
Scroll down to Ports (COM & LPT) and expand the menu
Plug your badge into your computer and turn the badge on.
The device tree will refresh and you should see a new device under Ports (COM & LPT). This will be the communication port used to talk to the device.
This command will list out all active serial devices
You may need to try a couple to see which one works or you can run this following command to see what each one is
This command will list out all active serial devices
You may need to try a couple to see which one works or you can run this following command to see what each one is
Install the Ardunio IDE
Dumping Flash
Understanding the Chip
To dump the flash we will need to know two things the port and the size of flash. To find size of flash we can run the following command
Sample Output:
We see we have 8MB of flash, and we also have the MAC address in case we lose the display
More commands can be found in the docs
esptool read_flash
Using another command from the docs called read flash we will now dump out the flash contents
We now should have an 8mb flash file