Gentoo Archives: gentoo-user

From: Jake Moe <jakesaddress@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Sniffing / analysis of application / wifi packets on my LAN
Date: Thu, 07 Oct 2010 11:29:09
In Reply to: [gentoo-user] Sniffing / analysis of application / wifi packets on my LAN by Stroller
1 On 10/07/10 19:37, Stroller wrote:
2 > Hi there,
3 >
4 > I'm interested in the activity of an application which is running on my LAN, and was wondering if anyone could offer some quick pointers on the best tools for this these days. I've played with this some years ago, but only very superficially - I think I used wireshark back then.
5 >
6 > Ideally what I want to do is capture a big dump of the traffic over a couple of minutes (so it shouldn't be that much, right?) into a file and then analyse it afterwards based on destination IP, content &c. A couple of minutes should allow completion of at least 2 or 3 separate interactions with the server.
7 >
8 > The network is mine, as is the device from which I'm capturing the data. I have a Belkin F5D7010 wifi card, which I think is based on a RaLink rt2x00 (rt2400 / rt2500) chipset, and I have my network's WPA key, so I think I can just set the wifi card in passive mode for sniffing. I'm pretty sure I experimented with this card in passive mode before, some years ago. Alternatively, I think I can plug the wifi access-point into my PC, bridge it to a second wired NIC and sniff what's going across the bridge (but I don't think this should be necessary).
9 >
10 > What I'm expecting to see is some image, audio & html files &/or xml data transferred, and ideally I'd like to be able to extract it all and view it in its original format.
11 >
12 > There's likely to be some inevitable other activity on the wLAN whilst this is happening - I'll try to minimise this, but I think the tools should be able filter out any crap I'm not interested in, right?
13 >
14 > I'd prefer as much as possible to use CLI tools for capturing / analysing the data.
15 >
16 > Thanks in advance for any quick pointers you can offer,
17 >
18 > Stroller.
19 >
20 >
21 As far as I'm aware, Wireshark is the standard for packet capture and
22 analysis. It supports both capture and display filters, so you can
23 limit it to just what you're interested in. If the client and server
24 are both on your LAN, then you should probably go ahead and capture
25 everything, and then use a display filter to limit it to just the hosts
26 you need. That way, if for some reason you find you need to see what
27 else is going on on the network at a given time, the captured data is
28 still there, you just broaden the display filter.
30 As far as CLI tools go, sorry, I'm not sure what's available. Never had
31 a need to look into those. But Wireshark uses libpcap, and digging a
32 bit shows tcpdump, which is a CLI tool that uses libpcap to capture
33 data, so it may give you the same functionality. I've never used it
34 though, so I can't help further.
36 Jake Moe


Subject Author
Re: [gentoo-user] Sniffing / analysis of application / wifi packets on my LAN Stroller <stroller@××××××××××××××××××.uk>