Skip to content

Instantly share code, notes, and snippets.

@smashah
Created January 31, 2026 19:16
Show Gist options
  • Select an option

  • Save smashah/0459d9e095e24c93c6c59226d07c1d9f to your computer and use it in GitHub Desktop.

Select an option

Save smashah/0459d9e095e24c93c6c59226d07c1d9f to your computer and use it in GitHub Desktop.
Script to turn off Little Snitch
#!/bin/bash
echo "Stopping Little Snitch..."
USER_ID=$(id -u)
# 1. Force Unload the System Daemon
# We use 'bootout' which implies a permanent unload until next bootstrap
if sudo launchctl print "system/at.obdev.littlesnitch.daemon" >/dev/null 2>&1; then
sudo launchctl bootout system/at.obdev.littlesnitch.daemon
else
echo "Daemon was not running."
fi
# 2. Force Unload the User Agent
if launchctl print "gui/$USER_ID/at.obdev.littlesnitch.agent" >/dev/null 2>&1; then
launchctl bootout "gui/$USER_ID/at.obdev.littlesnitch.agent"
else
echo "Agent was not running."
fi
# 3. Kill any lingering processes (Cleanup)
sudo pkill -f "Little Snitch"
echo "Little Snitch is OFF."
@smashah
Copy link
Author

smashah commented Jan 31, 2026

Here is the corresponding resurrection script:

https://gist.github.com/smashah/2c1dcf70c48532c08e62099383fdd9c9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment