A one-command network kill switch for Windows. Run nukeit to instantly disable all network adapters and block all inbound/outbound traffic via the Windows Firewall. Run it again to restore everything exactly as it was.
git clone https://github.com/Andrew-most-likely/NUKE-IT.git
cd NUKE-IT
pip install -e .After that, nukeit is available system-wide from any terminal.
Requires Windows 10/11 with PowerShell available.
$ nukeit
[*] Disabling 2 adapter(s): Wi-Fi, Ethernet
[*] Adding firewall block rules...
[!] Network killed. Run 'nukeit' again to restore.
$ nukeit
[*] Removing firewall block rules...
[*] Re-enabling 2 adapter(s): Wi-Fi, Ethernet
[+] Network restored.
One toggle. No config. No leftover rules.
- Toggle on/off - remembers exactly which adapters were active and restores only those
- Auto-elevation - triggers a UAC prompt automatically if not running as administrator
- Firewall rules - adds blanket block rules for all inbound and outbound traffic
- State persistence - saves state to
~/.nukeit/state.jsonso it survives reboots - Zero dependencies - pure Python stdlib, no pip packages required
| Command | Description |
|---|---|
nukeit |
Kill network (or restore if already nuked) |
nukeit --status |
Show current state and which adapters are affected |
nukeit --list |
Preview adapters that would be disabled |
- Queries active network adapters via PowerShell
Get-NetAdapter - Saves their names to
~/.nukeit/state.json - Disables every adapter with
Disable-NetAdapter - Creates two Windows Firewall rules blocking all inbound and outbound traffic
- On restore: removes the firewall rules and re-enables only the adapters that were originally active
State is written before any changes are made, so a crash or power loss mid-nuke won't leave you without a recovery path - just run nukeit again.
- Cut network access instantly when stepping away
- Kill internet before running untrusted executables
- Quick "go dark" toggle during sensitive work
- Test offline behaviour of apps without pulling a cable
This will disconnect you from the internet, VPNs, local network shares, and any active SSH or RDP sessions. Make sure you can still access what you need locally before running.
MIT