Live data from Hacker News

A tcpdump tutorial and primer

danielmiessler.com

1–10 of 33 posts

Re: A tcpdump tutorial and primer

#8

Awesome! I always wanted a command-line alternative to wireshark. I learned about tcpdump about a year ago, but the amount of options is a little off putting. I'm glad this guide came along.

Command-line alternative to wireshark is tshark. tshark is much more capable, since you can use all the well-made Wireshark protocol dissectors.

Re: A tcpdump tutorial and primer

#9
Who else remembers when tcpdump kept on refusing to put a "see raw packet" option because you might use it to steal passwords?

Those were the days. Now all I can complain about is that you need root permissions on OpenBSD merely to read a capture file.

Re: A tcpdump tutorial and primer

#10

Awesome! I always wanted a command-line alternative to wireshark. I learned about tcpdump about a year ago, but the amount of options is a little off putting. I'm glad this guide came along.

Command-line alternative to wireshark is tshark. tshark is much more capable, since you can use all the well-made Wireshark protocol dissectors.

tshark also has a fabulous ring buffer feature that lets you run captures continuously while chunking the files up into manageable sizes.

e.g. -b filesize:100000 -b files:200 -w somefile

This will make a ring buffer of 200 * 100MB files.

After typing this, I realized this may have limited use cases, but I use it almost every day.

Post reply on HN