Last active
May 30, 2016 06:27
-
-
Save gfoss/4454001 to your computer and use it in GitHub Desktop.
NetCat based heartbeat one-liner, great for pentesting to let you know if the service you are testing has crashed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ while `nc -nn -vv -z -w3 [ip-address] [port] > /dev/null`; do echo "OK"; sleep 1; done; echo "DOWN"; while (true); do echo "***DOWN***"; sleep 5; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment