Created
July 13, 2016 15:02
-
-
Save pkutzner/767b279a393c8b9ec6e786563589bb38 to your computer and use it in GitHub Desktop.
Who's pinging me?
This file contains hidden or 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
| #!/bin/bash | |
| if [ $UID != 0 ]; then | |
| sudo -v | |
| fi | |
| sudo tcpdump -l 'icmp[icmptype]=icmp-echo' | awk '{if (!arr[$3]){print $3;arr[$3]++}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment