Skip to content

Instantly share code, notes, and snippets.

@addiedx44
Last active June 14, 2018 19:35
Show Gist options
  • Save addiedx44/5297961 to your computer and use it in GitHub Desktop.
Save addiedx44/5297961 to your computer and use it in GitHub Desktop.
Kill a random process for funsies
kill -9 $(ps -ef | tail -n +2 | awk '{ print $2 }' | while read line; do echo "$RANDOM $line"; done | sort | awk '{ print $2 }' | head -n 1)
@WattsInABox
Copy link

I needed a virus in production. Thanks!

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