News for hackers. Stuff that matters.
Re:A tcpdump Tutorial and Primer by revelation on Monday November 05, 2012 @01:27PM (#4745021)
Yes, please use tcpdump. To capture stuff. Then you put it into Wireshark for analysis.

What is peoples obsession with stretching command line tools? Wake up! We have retina displays now. To display stuff.

Re:A tcpdump Tutorial and Primer by acqq on Monday November 05, 2012 @03:23PM (#4745588)
If I'm only a few key presses away from the solution when using a terminal to some small box, I certainly don't want to play with a big who-knows-dependent-on-which-libraries who-knows-how-much-time-to-install Wireshark.

I use Wireshark when I need to. I prefer to type a few characters in the command line if that's enough to get the right answer.

Re:A tcpdump Tutorial and Primer by robertelder on Monday November 05, 2012 @04:25PM (#4745880)
People are obsessed with command line tools because they offer the most basic interface, which is not likely to change. One of the commonly cited programming aphorisms is to "Program to an 'interface', not an implementation." Learning a GUI tool is usually easier in the short term, but becomes less flexible in the long run. As you become an increasingly skilled developer you realized that you gain order of magnitude more productivity by working at increasingly higher levels of automation and abstraction. This can be very difficult with a graphical interface since it would likely take much more work to create an adapter which will allow your code to work with the GUI interface than a command line one. GUIs are also likely to be complex and thus have the potential for bugs and performance costs.
Re:A tcpdump Tutorial and Primer by noselasd on Tuesday November 06, 2012 @04:04AM (#4747709)
Wireshark solves another problem, when you need it, you have a problem where you want to analyze the packet content, or drill and cut through a historical capture. That's not always what you need, and it's often cumbersome to run on a remote server that isn't supposed to have GUI stuff installed anyhow.

Sometimes you just need to know if DNS resolution is working.

Or if the right DNS server is queried.

Or if some server backend is actually firing off packets to the proper place when you hit a button on the frontend.

Or you just need to verify that data are coming in when the guy on the phone says "check again now".

For these sort or problems, tcpdump is great, as it easily allows you to experiment with different filters on the command line, which will take you an order of magnitude more time click through in wireshark or wait for reparsing if you use a display filter.

Re:A tcpdump Tutorial and Primer by minimax on Monday November 05, 2012 @02:14PM (#4745284)
Sometimes (most times?) you want to do the analysis in real-time in which case it helps to be fluent in tcpdump. Also, whether you're looking at the wireshark gui or tcpdump in a terminal, you're essentially looking at text. So a high res (retina) display is going to be nice to have in either case.
Re:A tcpdump Tutorial and Primer by ajross on Monday November 05, 2012 @06:26PM (#4746406)
Since when is "displaying stuff" synonymous with "analysis?" If you're "analyzing" your data by staring at it, you're almost certainly doing it wrong. Real questions with real (i.e. non-ambiguous) answers have small representations, more or less by defintion. The point of analysis is coming up wiht ideas and testing them. That's a programming problem (whether or not it's done in a "programming language") and is naturally well suited to a text stream.

I mean, I'm all for having nice GUI tools. And I've even been known to stare at giant data dumps when stumped (though I'll note that a maximized terminal window with grep-over-tcpdump-output content works just as well as wireshark for that purpose). But that argument is just silly.

Re:A tcpdump Tutorial and Primer by b6 on Monday November 05, 2012 @04:39PM (#4745939)
Wireshark is really useful, but it's also had security problems (I think I'm not being unfair here) continuously over its entire existence. I started using it over 10 years ago back when it was called Ethereal, and I feel like I've seen probably hundreds of Ethereal/Wireshark security advisories in that time.
Re:A tcpdump Tutorial and Primer by stusmall on Monday November 05, 2012 @06:40PM (#4746452)
Not all of them were just in wireshark. Sometimes the root of the issue was in libpcap which is common code between wireshark and tcpdump.
Re:A tcpdump Tutorial and Primer by robertduncan on Monday November 05, 2012 @03:22PM (#4745585)
Or the best of both worlds, tshark! http://www.wireshark.org/docs/man-pages/tshark.html
Re:A tcpdump Tutorial and Primer by markild on Monday November 05, 2012 @01:36PM (#4745065)
All the filter stuff will be applicable for Wireshark as well though.
Re:A tcpdump Tutorial and Primer by hazov on Monday November 05, 2012 @03:34PM (#4745661)
Generally you're already there on the command line, a few keystrokes away from the desired result.

Also people are lazy.

Re:A tcpdump Tutorial and Primer by zwieback on Monday November 05, 2012 @01:53PM (#4745163)
I use tcpdump on embedded systems, some of them with very limited ram disks. In that case tcpdump fits the bill nicely.
Re:A tcpdump Tutorial and Primer by revelation on Monday November 05, 2012 @01:56PM (#4745186)
Whats stopping you from recording it and then analyzing on a beefy machine? Akin to remote debugging, which is clearly the harder problem.
Re:A tcpdump Tutorial and Primer by zwieback on Monday November 05, 2012 @04:28PM (#4745891)
The recording part is cumbersome. On these systems there's hardly any writable disk space and I'm not sure if NFS or SMB client is built in. tcpdump is often a quick alternative to capture just the packets I'm interested in in clear text. That requires knowing a little bit about the filter syntax.
Re:A tcpdump Tutorial and Primer by jlgreco on Monday November 05, 2012 @02:08PM (#4745245)
I usually see no need to bother. Why add another step if I don't need it?
Re:A tcpdump Tutorial and Primer by gnosis on Monday November 05, 2012 @02:45PM (#4745420)
If you're going to be loading the capture in to Wireshark anyway, not just use Wireshark to do the capture to begin with?
Re:A tcpdump Tutorial and Primer by amboar on Monday November 05, 2012 @03:26PM (#4745616)
Maybe you're capturing on a device that doesn't have the grunt or environment to run wireshark?