/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
for i in $(tcpdump -n -e -ttt -r /var/log/pflog |grep match | awk '{print $10}' | grep -v '\:\:' | cut -f '1 2 3 4' -d . | sort -u); do host $i | awk '{print $5}' | grep -Ev 'NXDOMAIN|SERVFAIL|^no$|^for$' | sed 's/\.$//g'; done