All,
So last night I posed this question about finding payloads in pcap files and determining top talkers. Well I have some of this solved without the aid of wireshark because quite frankly, it takes too long.
Excerpt from
http://www.yousicurity.com/2009/10/how-to-find-top-talkers-in-pcap-file.html tcpdump -tnr PCAPFILE | awk -F '.' '{print $1"."$2"."$3"."$4}' | sort | uniq -c | sort -n | tail -n 5
Now interestingly enough when I was running this I was getting the format I wanted and I felt that things seemed off. So I modified it slightly. Here's how I grab a set of data to work with.
root@bt:/mnt/hda1/captures# yesterday = $(ls -l | grep 12-16 | awk {' print $8 '} | xargs)
root@bt:/mnt/hda1/captures# for pcapFile in $yesterday
> do
> tcpdump -tnr $pcapFile | awk -F '.' '{print $ $1"."$2"."$3"."$4}' | sort | uniq -c | sort -rn | head -n 10
> echo "****Processed $pcapFile at $(date)****"
> done
I reverse the sort and grab the first 10 off the output so that they are listed in a decending order for count. I liked this much better. Anyways, hope this can help you some time! I'll report back with any other tricks.
-Ryan