ESP32-C6-Total-Destruction-Mode
A concise description explaining it's a "destructive security demonstration project" for authorized lab testing with two operational modes.
๐จ ESP32-C6 - Total Destruction Mode
About
A destructive security demonstration project showcasing ESP32-C6 microcontroller capabilities for educational and authorized lab testing. This project demonstrates remote system manipulation through Wi-Fi connectivity using two operational modes: Station mode (existing network) and AP mode (hotspot creation).
โ ๏ธ CRITICAL WARNING: This code was NOT designed to run on your own computer!
This project is designed to cause a target Windows computer to completely lose all data using the ESP32-C6 module. It should only be used in controlled lab environments and on test machines.
โก Danger Warning
This code performs the following operations:
- Deletes boot data -
bcdedit /deleteall- Computer cannot find Windows - Deletes Registry keys -
HKEY_LOCAL_MACHINE\SYSTEMandHKEY_LOCAL_MACHINE\SOFTWARE - Deletes system drivers - All
.sysfiles are removed - Triggers system crash -
svchost.exeand other critical processes are terminated
Result: Target computer cannot run without an operating system, all data is lost.
๐ Project Structure
esp32_hack_demo/
โโโ README.md (This file)
โโโ ESP32Station/ (Station Mode - Connected to Existing Wi-Fi)
โ โโโ ESP32Station.ino (Arduino code - Station mode)
โ โโโ dinleyici_station.py (PC listener running on desktop)
โ โโโ build/
โโโ ESP32Wifi/ (Hotspot (AP) Mode)
โโโ ESP32Wifi.ino (Arduino code - AP mode)
โโโ dinleyici_wifi.py (PC listener running on desktop)
โโโ build/
๐ง Hardware Requirements
- Microcontroller: ESP32-C6 Dev Module
- Built-in RGB LED: GPIO 8 (Adafruit NeoPixel compatible)
- Connection: USB-C (for programming)
- Power: 3.3V, 500mA
ESP32-C6 Specifications
| Feature | Value |
|---|---|
| Processor | Xtensa 32-bit @ 160 MHz |
| RAM | 512 KB |
| Flash | 4 MB |
| Wi-Fi | 802.11b/g/n (2.4 GHz) |
| Bluetooth | 5.0 |
| GPIO | 22 pins |
| USB | USB-OTG (Type-C) |
| Built-in LED | GPIO 8 (WS2812B) |
๐ฆ Software Requirements
Arduino IDE Setup
-
Add ESP32 to Board Manager:
- Arduino IDE โ Preferences
- Add to "Additional Boards Manager URLs":
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json - Tools โ Board Manager โ Search "esp32" and install
-
Board Selection:
- Tools โ Board โ "ESP32C6 Dev Module"
-
Required Libraries:
- Tools โ Manage Libraries
- Search "Adafruit NeoPixel" and install
Python Requirements
pip install requests pyinstaller
๐ Usage
Mode 1: Station Mode (Connected to Existing Wi-Fi)
This mode connects the ESP32 to the lab's existing Wi-Fi network.
ESP32 Side
- Open ESP32Station/ESP32Station.ino
- Update Wi-Fi credentials:
const char* ssid = "FiberHGW_ZTE4FE"; const char* password = "Trabzon61"; - Set static IP (based on router's subnet):
IPAddress local_IP(192, 168, 1, 253); IPAddress gateway(192, 168, 1, 1); IPAddress subnet(255, 255, 255, 0); - Upload and verify IP from Serial Monitor (9600 baud)
PC Side
- Open ESP32Station/dinleyici_station.py
- Review the code (understand what it does for security)
- Open PowerShell/CMD AS ADMINISTRATOR
- Run:
python dinleyici_station.py - Program waits for "DELETE" signal
- Connect phone to same Wi-Fi and visit
192.168.1.253 - Press button and destruction occurs
Create Executable:
pyinstaller --onefile -w dinleyici_station.py
# .exe file created in dist/ folder
Mode 2: AP (Hotspot) Mode
ESP32 creates its own Wi-Fi hotspot (HACK_DEMO / 12345678).
ESP32 Side
- Open ESP32Wifi/ESP32Wifi.ino
- Upload
- Observe LED status
PC Side
- Connect PC's Wi-Fi to
HACK_DEMOnetwork (Password:12345678) - Open ESP32Wifi/dinleyici_wifi.py
- Set target folder path:
KLASOR_YOLU = r"C:\target_folder" - Run AS ADMINISTRATOR:
python dinleyici_wifi.py - Visit
192.168.4.1/tetiklein web browser โ folder gets deleted
๐จ LED Status Indicators
The RGB LED on ESP32 shows status:
| Color | Meaning |
|---|---|
| ๐ฆ Blue | Startup, ready |
| ๐ฉ Green | Wi-Fi connected |
| ๐จ Yellow | Searching for computer connection |
| ๐ด Red | "DELETE" command received, destruction started |
๐ Network Architecture
Station Mode
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Lab Wi-Fi Router โ
โ (192.168.1.1) โ
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโ
โ โ
ESP32 (253) PC (DHCP)
[Green LED] [Listener Running]
โ โ
โโโโโโโWifiโโโโโโโโโ
Control Signals
AP Mode
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ESP32 Hotspot (AP Mode) โ
โ SSID: HACK_DEMO โ
โ IP: 192.168.4.1 โ
โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโ
โ
โโ PC (192.168.4.2)
โ [Listener Running]
โ
โโ Phone/Tablet
[Web Interface]
๐ป API Endpoints
Station Mode
| Endpoint | Method | Returns | Description |
|---|---|---|---|
/durum | GET | BEKLE / SIL | Poll computer status |
AP Mode
| Endpoint | Method | Description |
|---|---|---|
/ | GET | Home page (HTML web interface) |
/durum | GET | Return current status |
/tetikle | GET | Send "DELETE" command, start destruction |
๐ง HTTP Request Examples
Poll Status
curl http://192.168.1.253/durum
> BEKLE
Trigger Destruction (AP Mode)
curl http://192.168.4.1/tetikle
> DELETE COMMAND RECEIVED
Python Requests
import requests
# Station mode
response = requests.get("http://192.168.1.253/durum")
print(response.text) # BEKLE or SIL
# AP mode trigger
requests.get("http://192.168.4.1/tetikle")
๐ Troubleshooting
"Cannot connect to Wi-Fi"
- Solution: Verify SSID and password are correct
- Try even if network doesn't use WPA2
- Check IP from Serial Monitor
"Python cannot reach ESP32"
- Are computer and ESP32 on same network?
- Disable firewall and antivirus
- Is IP address correct?
ping 192.168.1.253
"Running as Administrator"
- Python scripts MUST run as administrator
- Otherwise you'll get
WinError 5
"LED not lighting up"
- Is GPIO 8 pin correct?
- Is Adafruit NeoPixel library installed?
- Test LED manually:
void setup() { led.begin(); ledRenk(255, 0, 0); // RED }
๐ก๏ธ Security Notes
- NEVER run this on your own computer under any circumstances!
- Only deploy on test/lab machines
- Keep network isolated - Disconnect from internet
- Add firewall rules - Prevent unauthorized access
- Restrict physical access - Nobody can access ESP32
- Backup all data - Before any testing
๐ References
- ESP32-C6 Datasheet: https://www.espressif.com/sites/default/files/documentation/esp32-c6_datasheet_en.pdf
- Arduino-ESP32: https://github.com/espressif/arduino-esp32
- Adafruit NeoPixel: https://www.adafruit.com/product/1655
- WebServer Library: Built-in with Arduino ESP32
๐ License
This project is designed for educational and research purposes only. Any misuse is solely the responsibility of the user.
๐จโ๐ป Development
Code Components:
Arduino Libraries
WiFi.h- Wi-Fi connectivityWebServer.h- HTTP serverAdafruit_NeoPixel.h- RGB LED control
Python Modules
requests- HTTP requestsos- System commandsshutil- File operationsctypes- Administrator control
โ ๏ธ Final Warning
THIS CODE MAY ONLY BE USED IN AUTHORIZED TEST ENVIRONMENTS!
No responsibility is accepted for any damage caused. Use at your own risk.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ WARNING: Backup All Data Before Running This Code! โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Date: April 2026 | Version: 1.0 | Platform: ESP32-C6 / Windows