Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nukeit

Python Platform License

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.


Install

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.


What it does

$ 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.


Features

  • 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.json so it survives reboots
  • Zero dependencies - pure Python stdlib, no pip packages required

Usage

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
nukeit

How it works

  1. Queries active network adapters via PowerShell Get-NetAdapter
  2. Saves their names to ~/.nukeit/state.json
  3. Disables every adapter with Disable-NetAdapter
  4. Creates two Windows Firewall rules blocking all inbound and outbound traffic
  5. 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.


Use cases

  • 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

Warning

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.


License

MIT

About

ever feel like your being watched or just know you messed up on the wrong website nuke it is on your side simply nuke all inbound and outbound connections and there's nothing to worry about well maybe depends on how fast you were

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages