Hackbydoing Academy tool guide · Hardware, radio & IoT · free, no login
A tool for talking to ESP32 and ESP8266 microchips (the tiny brains in many gadgets) over a USB cable, mainly to write new firmware (the chip's built-in software) onto them.
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 write_flash -z 0x1000 marauder-firmware.bin
Writes the marauder firmware file onto an ESP32 chip plugged into the first USB serial port, at the fast 921600 speed, starting at memory position 0x1000.
| --baud | The next piece is the connection speed in bits per second; higher numbers like 921600 copy the firmware faster. |
| --chip | The next piece names the exact chip model you are talking to, for example esp32, esp32s3, or esp8266. |
| --port | The next piece is the USB serial port the chip is plugged into, for example /dev/ttyUSB0 on Linux or COM5 on Windows. |
| -z | Short for --compress: squeeze the firmware smaller before sending it to the chip, which makes write_flash faster; the chip unpacks it as it writes. |
Only run esptool.py on systems you own or have explicit, written permission to test — at work that means a signed engagement, at home that means your own lab. Inside Hackbydoing Academy you practice on simulated networks and lab machines built for exactly this, where breaking things is the lesson and no one else's systems are involved. Learning how a tool works also teaches you what it looks like from the defender's chair: the logs it leaves, the traffic it makes, and the settings that shut it down.
Reading about esptool.py is step one. In the Academy you run it yourself, step by step, in guided labs on simulated networks — 185 rooms covering attack and defense, from your first scan to full operations, with a defender's debrief at the end of every room. Founding membership is $9.99/mo for the first 500 members.
Join Hackbydoing Academy →Free from the Hackbydoing Academy — learn cybersecurity by doing: real tools, guided labs, attack and defense, on simulated networks. More free material: Tool Guides index · Free Downloads Library · Hackbydoing Academy · Print this page (Ctrl/Cmd+P) for a clean paper copy.