Friday, 22 May 2015

Useful *nix commands

Carving DNS A record lookups using tcpdump, grep and awk:

tcpdump -lnv port 53 | grep -E 'A\?' | awk '{print $(NF-6),$(NF-5),$(N
F-4),$(NF-1)}'

No comments:

Post a comment