HACK_DEMO network, and every device in the demo (your PC, phone, or tablet) connects directly to it. This makes setup faster and the environment fully self-contained. Use AP Mode for live presentations, portable demos, or any scenario where you cannot rely on an external network.
AP Credentials
| Setting | Value |
|---|---|
| SSID | HACK_DEMO |
| Password | none (open) |
| ESP32 IP | 192.168.4.1 |
192.168.4.1 is assigned automatically by the ESP32’s built-in DHCP server and never changes in AP mode.
The AP Mode firmware calls
WiFi.softAP(ap_ssid) with only the SSID argument, which creates an open (unsecured) hotspot. The ap_password variable is defined in the source but is not passed to softAP(). Any device within range can join HACK_DEMO without a password — keep the ESP32 powered only during controlled testing.Network Topology
ESP32 Setup
Open the AP Mode sketch
Open
ESP32Wifi/ESP32Wifi.ino in Arduino IDE with the ESP32C6 Dev Module board selected.Upload the sketch
Connect the ESP32-C6 via USB-C and click Upload. There are no Wi-Fi credentials to configure — AP Mode uses the hardcoded values
HACK_DEMO / 12345678 defined at the top of the sketch.Confirm the hotspot is ready
Watch the onboard LED: it starts blue during boot and switches to green once the hotspot is broadcasting and the web server is running.
PC Listener Setup
Connect your PC to HACK_DEMO
Open your PC’s Wi-Fi settings and connect to HACK_DEMO. The hotspot is open — no password is required. Your PC will receive an address in the
192.168.4.x range (typically 192.168.4.2).Set the target folder path
Update The script checks that this path exists before it starts polling — it exits immediately with an error if the folder is missing.
KLASOR_YOLU to point at the folder you want deleted on the target machine. The script ships with the placeholder value r"C:\kurban_klasor" — replace it with your actual target path:Confirm the script is waiting
The script validates the target folder and then enters its polling loop, printing:Current status is shown as
BEKLE while no trigger has been sent.Open the control panel on a phone or tablet
Connect your phone or tablet to HACK_DEMO. Open a browser and navigate to
http://192.168.4.1/tetikle, or visit http://192.168.4.1 and press the trigger button on the control panel.API Reference
Trigger the destruction sequence directly from the command line:SIL on the ESP32. Any subsequent call to /durum will return SIL.
You can also drive it from Python:
| Endpoint | Method | Description |
|---|---|---|
/ | GET | Control panel web interface |
/durum | GET | Returns BEKLE or SIL |
/tetikle | GET | Arms the delete command, LED turns red |
/sifirla | GET | Resets status to BEKLE, LED turns green |
LED Status
| Color | Meaning |
|---|---|
| Blue | Startup |
| Green | Hotspot ready — waiting for trigger |
| Red | SIL received — destruction running |