Skip to content

Instantly share code, notes, and snippets.

@pkutzner
Created July 13, 2016 15:02
Show Gist options
  • Select an option

  • Save pkutzner/767b279a393c8b9ec6e786563589bb38 to your computer and use it in GitHub Desktop.

Select an option

Save pkutzner/767b279a393c8b9ec6e786563589bb38 to your computer and use it in GitHub Desktop.
Who's pinging me?
#!/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