Skip to content

Instantly share code, notes, and snippets.

@empireshades
Forked from lcarsos/restore_functionality.sh
Last active August 25, 2021 13:40
Show Gist options
  • Save empireshades/9339c28d231e27b2399a5b38a27eee99 to your computer and use it in GitHub Desktop.
Save empireshades/9339c28d231e27b2399a5b38a27eee99 to your computer and use it in GitHub Desktop.
Repeatedly kill sentinelone so you can actually use the processor and ram on your mac
#!/usr/bin/env bash
# Usage: sudo ./restore_functionality.sh
#ps aux | grep sentinel | awk -F " +" '{print $2}' | xargs kill
while true; do
launchctl kill SIGKILL system/com.sentinelone.sentineld
launchctl kill SIGKILL system/com.sentinelone.sentineld-helper
launchctl kill SIGKILL system/com.sentinelone.sentineld-guard
launchctl kill SIGKILL system/com.sentinelone.sentineld-updater
launchctl kill SIGKILL gui/502/com.sentinelone.agent
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment