Skip to content

Instantly share code, notes, and snippets.

@Hermann-SW
Created March 28, 2020 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hermann-SW/042bdaf97c594f36cb2eb422fe2a8d5f to your computer and use it in GitHub Desktop.
Save Hermann-SW/042bdaf97c594f36cb2eb422fe2a8d5f to your computer and use it in GitHub Desktop.
#!/bin/bash
while true
do
fin_wait2=`netstat 2>/dev/null | grep 1337`
if [[ "$fin_wait2" = "" ]]
then
sudo ./dead-man_button
else
sudo ./dead-man_button 1338
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment