LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-13-2006, 08:32 AM   #1
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 137

Rep: Reputation: 20
How can I packet sniff my xbox?


I've been pondering the idea of how I could packet sniff my xbox all week using either Ethereal or tcpdump. I don't see any obvious way to tell the sniffer to sniff a specific MAC address so I'm wondering if this can be done using one of these utilities?
 
Old 05-13-2006, 12:10 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well, first you obviously can filter it afterwards in Ethereal. Also man tcpdump , search ether src.
 
Old 05-13-2006, 07:46 PM   #3
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 137

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by raskin
Well, first you obviously can filter it afterwards in Ethereal. Also man tcpdump , search ether src.
I don't understand what your saying? If I run tcpdump or ethereal it packet sniffs my local machine not the Xbox?? I want to tell the utility to specifically monitor all traffic from the Xbox MAC address ingnoring all traffic from my laptop that I would be running ethereal/tcpdump from. Anybody know how to do this? I'll look for the ether src in the man for tcpdump.

Last edited by NuxIT; 05-13-2006 at 07:48 PM.
 
Old 05-13-2006, 09:34 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
If your laptop and XBox are on the same hub, then running Ethereal as root will allow it to sniff all traffic by devices on the hub (since hubs are dumb devices and bradcast each incoming packet to all other ports). If you have a switch, though, the switch only sends the packet to the destination port (a switch, unlike a hub, has intelligence and space to store MAC address/port tables). Fancy managed switches allow for monitor/mirror ports to be configured so that all traffic is also sent to these ports for sniffing/IDS uses. A little consumer home dswitch would probably not have this feature, though. In that case you can buy a hub cheaply.

You could always try MAC spoofing to trick the switch into sending packets from the XBox yto your laptop, but I've never tried it.

A better option is to sniff on your network gateway to collect all outgoing traffic from the XBox. This is easy if you're using a Linux/BSD system as your network gateway -- just run Ethereal or tcpdump on it.
 
Old 05-13-2006, 10:04 PM   #5
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
If you have 2 ethernet ports on your laptop via another card etc, you could set up a bridge and monitor that. The laptop would sit between the xbox and the hub/switch. Its easy to set up and also kinda fun.
 
Old 05-14-2006, 12:31 AM   #6
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 137

Original Poster
Rep: Reputation: 20
Ok, I'm at work now messing around with two established SSH sessions. My laptop is connected to a 10base hub at home that runs off my NATTED 100base router. Another old machine (PII 400) is connected directly to one of the router ports. I ran this command:
tcpdump host 10.16.0.53 and my laptop started to actively monitor the packets from that machine instead of the laptop. This also worked using tcpdump src 10.16.0.53. So, I'm assuming my router acts more like a hub in this regard broadcasting all packets to all ports. I'm not using my laptop as a network gateway so that's not an option. I just tried using my router as the src address to see what packets it would capture. While running some ICMP pings it appeared that it was only capturing traffic that was directed at the router itself as opposed to all the traffic from machines connected to it.. In other words it wasn't showing traffic to my other machines when pinging them. Thanks for these tips guys! You really know your stuff and now I can't wait to see what type of traffic I can capture from my xbox/360 for fun. For instance, I would like to see the servers that my 360 connects to when I'm downloading stuff from the Xbox marketplace. PS - It was also fun seeing what an nmap scan looked like when monitoring my PII 400 desktop using tcpdump.
 
Old 05-14-2006, 08:48 AM   #7
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 137

Original Poster
Rep: Reputation: 20
Welp, I tried to use the src and host option to tell it to sniff the 360 while I was downloading a demo. No dice... Not capturing anything. Maybe the xbox somehow prevents packet sniffing? Who knows. I should probably invest in a real router so I can properly monitor traffic coming in and out of my network.
 
Old 05-14-2006, 09:56 AM   #8
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Try using arpspoof from dsniff package to make the xbox think your MAC address is the one it wants to send packets to as to router. Do not forget to switch on ip_forward. Then you will be able to intercept its traffic. Also failopen mode of switch maybe useful: try to simultaniously ping with hping the router from different fake addresses. Maybe you should buy not router but just hub. If you have just ports on the router and no switch, then hub or switch (better hub) is needed.
 
Old 05-17-2006, 10:08 PM   #9
NuxIT
Member
 
Registered: Jul 2003
Location: Westminser, CO
Distribution: xUbuntu
Posts: 137

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by raskin
Try using arpspoof from dsniff package to make the xbox think your MAC address is the one it wants to send packets to as to router. Do not forget to switch on ip_forward. Then you will be able to intercept its traffic. Also failopen mode of switch maybe useful: try to simultaniously ping with hping the router from different fake addresses. Maybe you should buy not router but just hub. If you have just ports on the router and no switch, then hub or switch (better hub) is needed.
Hmm, this sounds pretty technical. I'll have to look into this package.
 
Old 05-18-2006, 05:41 AM   #10
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
First thing to try would be to send icmp redirects to your xbox, this is easier. something like sping or hping3 should do the trick.
The xbox has to accept them which is not alyays the case. Worth trying...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forwarding Xbox Live ports to Original Xbox in OS X.4.4 mst3kman Other *NIX 11 08-16-2006 09:21 PM
Can't sniff packets using libpcap masterm Linux - Networking 0 05-17-2005 05:58 PM
aim sniff WallMart4Life Linux - Networking 2 08-11-2003 12:42 PM
How to sniff port redirection shawnzhou888 Linux - Networking 0 07-18-2003 02:31 PM
Ethereal - sniff ALL traffic chr15t0 Linux - Software 4 01-21-2003 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration