Need help with Packet sniffing

D3rk

n00b
Joined
Nov 22, 2005
Messages
31
One of my co-workers needs some help packet sniffing. She has this file she is sending out and it must be losing part of the AR2 header. She wants me to check the file going from her machine to the firewall, and from the firewall out. I have currently have the software Ethereal, but can't quite figure it completely out. I have it monitoring her MAC address for all packets leaving her machine. But how do I pin point a certain file? Any and all help is appreciated.
 
I normally sort it by protocol.

Try to rig her machine so that the only traffic generating is the one you want.
 
It is only catching bits and pieces of packets...How would I set up ethereal? Right now I am having it filter by using eth.addr == XX:XX:XX....Is that the best way?
 
I would capture anything sent to/from the IP addy of the co-worker's PC.
 
If your in a switched environment, you might need some tricks in order to get all of the traffic. That is where Ettercap comes in. Might take you a bit to figure it out though.
 
Wouldn't the MAC be more sensitive then TCP/IP to gather more information. Right now it looks as if it's only filtering incoming information to her machine not outgoing.
 
Fint said:
Maybe you are only searching dest. mac?

Sounds about right to me. Poke around in ethereal, I think there is a Session Reassembly option that might help you out.

Also, if you are doing the sniffing legitimately, no need for ettercap as the other poster reccomended, you can just slap a hub on the connection and sniff there.
-PHiZ
 
The easiest way for you to catch her traffic is to watch her machine and coordinate with her to send the file out. As soon as she says she's sending it, you should see a flood of packets on your ethereal session. You can right click on a TCP packet and select "Follow TCP stream" to filter out only that particular stream.

Note that the file transmission may be encoded so you cant readily view the contents of the file or even the file name that she's sending. But if there are errors during the transmission, or the receiver sends back an error code in plain text, you'll see it.
 
Even if I don't put a filter on it, it doesn't show up much information...should I run ethereal from the user's machine?

I mean I get quite a bit of information just not a lot from this user's machine.
 
i've never felt really comfortable using ethereal so i usually rely on tcpdump. i think (don't quote me cause this is right off the top of my head) that something like the following would show you all you need. they will capture entire pkts in hex which you can then decode later after you've generated these files for analysis.

if the firewall is a *nix machine working as a firewall then you can do the following:
run this command in one window
tcpdump -xx -s 0 -i <ext_if_name> (src host <coworker_machine> dst host <other_machine>) or (src host <other_machine> dst host <coworker_machine>) >> outside.cap

run this in another
tcpdump -xx -s 0 -i <int_if_name> (src host <coworker_machine> dst host <other_machine>) or (src host <other_machine> dst host <coworker_machine>) >> inside.cap

then transfer the file. you can then use whatever you want to load up the 2 files and analyze them later.

if you cannot run tcpdump ON the firewall you'll need to put a computer on the inside of the firewall and another outside the firewall preferably attached to hubs so they can see all the traffic. run the following command on both changing the filename on each to correspond to inside or outside.
tcpdump -xx -s 0 -i <if_name> (src host <coworker_machine> dst host <other_machine>) or (src host <other_machine> dst host <coworker_machine>) >> <fielname>.cap
 
Once you find a packet that you know is part of the process you can select Analyze - Folow TCP stream. That is if it is using TCP and not udp. The output creates a filter as well as dumps the payload of the packets in a linear form, so you can read it easly.
 
Ok, I played with ethereal and Windump. I can get more information from Windump, yet I don't know the command for it to dump into a file. Ethereal I must not be able to set it up correctly. I would need a semi-step by step tut. on how to set it up.
 
If you dont know what you need to do to get it installed in windows, I would install the xtra version. basicaly they package it for easy install.
 
I had no problem getting it installed. It's just setting it all up once it is installed.
 
windump will put everything out to your screen. the ">>" means append the output to a file.

btw, i can't recall off the top of my head, but i'm pretty sure when you use that no outputwill go to your screen. it all gets redirected to the file. hit ctrl + C to stop windump. also, there is a way to output to both the screen AND a file, but i'd need to have my unix book handy to tell you that command.
 
Back
Top