Using a packet sniffer to track games/applications phoning home, and how to block them via the routing table or the hosts file
The other day I was trying to play an old game I bought some time ago on my LAN. I was just trying to enjoy a little cooperative bot killing fun with my buddy, but for some reason, the game kept telling me my 'master key' or something along those lines didn't check out. Needless to say I wasn't happy with it... I bought this game... and maybe I wasn't supposed to play it on two machines at once... but at the very least I certainly didn't want it phoning home for a simple LAN game, a game mode where no master server or internet should be required.
So I decided to see what my 'game' was up to. A quick download of Wireshark (formerly Ethereal) and an even quicker packet sniff and sure enough I could see where my 'game' was initiating connections and across what port.
After booting up wireshark, simply click on the "Capture" menu and select "Interfaces..." and from there it will show you a list of available ones to capture from. Select your active connection (the one with an IP thats NOT your localhost (127.0.0.1)), and click start. You should see something similar to this screenshot as Wireshark attempts to capture all the packets entering and leaving your machine.
If you've closed all your other connections (browsers, streaming music, etc.) you should now try to recreate the traffic you wish to sniff. In my case this involves launching the game I want to play and trying to connect to a LAN game, with which I am promptly kicked back for failing to 'check out' with the master server correctly. Now exit the game and pull up Wireshark to see what it caught.
In the interest of not angering anyone, I've obscured the specific IP and domain name that my machine is connecting to. But for these purposes, it shouldn't matter. Notice there are numerous outbound and inbound packets originating from the IP 216.27.xx.xxx, and in the right hand column you can [almost] see that an actual domain name has also been found.
This is where the windows 'hosts' file comes into action. The hosts file is a pretty simple file to deal with, usually located at c:/windows/system32/drivers/etc/hosts on xp machines (On most linux distributions a similar file is located at /etc/hosts). Here is where you can redirect certain domains to other IPs for a variety of reasons. In our case we want to redirect the server xxxxx.server1.xxxxx.com to the localhost, to prevent the game from phoning home.
In the screenshot above you'll notice I've added a line to my hosts file to redirect the offending domain. Now all outbound connections to xxxxx.server1.xxxxx.com will be redirected to the localhost, preventing any real connection from occurring between the two. But what if there's no domain name listed? Then the hosts file will be fairly worthless to you, but there are a couple of possible alternatives.
First, try doing an 'nslookup' on the IP that looks suspect, and see if you get a domain name to return, in most cases you probably won't. The next possible solution is to do a google search for the statistics, analytics or authentication server your program is trying to connect to. In many cases google will know the answer already for you. But if both of these methods fail, its time edit the routing table on your machine.
Bring up a [lame] windows command line, if you don't know how simply click the 'start' menu, select 'run...' and type in 'cmd.' From here you can view and alter the routing table.
Type 'route print' at the command line and it should print out the routing table for you to like the screenshot above. If at any point you wish to learn more about route just type in 'route' by itself and it will print out detailed help. What we want to do now is create a route for the offensive IP to be sent to the localhost. In some cases this can be done by simply pointing the offending IP to 127.0.0.1, however in my case I had to point it to the actual local IP address of my machine (192.168.2.5) since there was already a route in place to direct traffic heading to 192.168.2.5 to the localhost at 127.0.0.1.
C:\Documents and Settings\Administrator>route print
IPv4 Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 01 29 d2 2c 2b ...... NVIDIA nForce Networking Controller - Packet Sch
eduler Miniport
0x3 ...00 01 29 d2 2c 2a ...... Marvell Yukon 88E8001/8003/8010 PCI Gigabit Ethe
rnet Controller - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.5 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.2.0 255.255.255.0 192.168.2.5 192.168.2.5 20
192.168.2.5 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.2.255 255.255.255.255 192.168.2.5 192.168.2.5 20
224.0.0.0 240.0.0.0 192.168.2.5 192.168.2.5 20
255.255.255.255 255.255.255.255 192.168.2.5 192.168.2.5 1
255.255.255.255 255.255.255.255 192.168.2.5 2 1
Default Gateway: 192.168.2.1
===========================================================================
Persistent Routes:C:\Documents and Settings\Administrator>
Use the 'add' parameter to add a new route to your table like this (change destination and source IP accordingly)
C:\Documents and Settings\Administrator>route add 216.27.xx.xxx 192.168.2.5
C:\Documents and Settings\Administrator>
You can also use the route command to change the route for entire subnets, but for my purposes its unnecessary, all I needed to do is redirect a specific IP.
Now launch a new session of Wireshark and begin capturing. Open up the offending game or application and test that it works (no longer phones home for any reason). In my case I can see that a bunch of traffic formerly headed to that rouge IP is now heading to 192.168.2.5, which then heads to 127.0.0.1, and effectively gets nowhere.
Congratulations! You've now stopped your game or application from 'checking home.' It should be noted that on many high end firewalls/routers, its possible to do similar things from within the router itself, but I've found that with most consumer level firewalls this still isn't an option. For instance, on my cheap Belkin I can restrict specific port ranges by internal IP, which would actually work fine for this particular problem, but is a less than perfect solution since it would block ALL traffic outbound on that specific port (a less than optimal solution if the application is using a standard port).
In this day and age you can really never be too careful about privacy, more and more seemingly everyday games and applications religiously phone home your personal information about everything from your private browsing habits to your choice of music. In my case, I'd like to keep them from finding that type of information out.



So the result was this game worked even when it could not contact the master server?
Thanks for the info.
Yessir. Game worked fine on my LAN on multiple machines. This same concept should work for many other games, even with Hamachi. And don't forget all those pesky apps like photoshop that like to phone home too.
-Tyler Davis
After booting up wireshark, simply click on the "Capture" menu and select "Interfaces..." and from there it will show you a list of available ones to capture from. Select your active connection (the one with an IP thats NOT your localhost (127.0.0.1)), and click start. You should see something similar to this screenshot as Wireshark attempts to capture all the packets entering and leaving your machine.
- Thanks for the info
Hi. This blog is Drupal platform ?
Yep, it's Drupal.
Limited Edition of Artwork contains a bonus DVD with behind the scenes, making of the album and exclusive interviews.
essay | dissertation | thesis | assignment | coursework
MutI2K lwghmbbcaghq, [url=http://qywrlgvczhwe.com/]qywrlgvczhwe[/url], [link=http://kkqilwfuvcjg.com/]kkqilwfuvcjg[/link], http://dgvetwucdoqt.com/
XZuiBh zgxtotseaxyp, [url=http://hrsnjfzajvxm.com/]hrsnjfzajvxm[/url], [link=http://nctjkirmdbsg.com/]nctjkirmdbsg[/link], http://zyrpvoilbkbk.com/
Set your life time easier get the credit loans and all you need.
The home insurance policy is usually a term contract,a contract that is in effect for a fixed period of time.Thanks for sharing.
Regards,
home insurance quote
Perhaps the simplest,most straightforward defining distinction in this respect would then be to say that cinema's ultimate goal is to entertain,whereas video art's intentions are more varied.
Regards,
Vancouver video production
The home insurance policy is usually a term contract,a contract that is in effect for a fixed period of time.Thanks for sharing.
Regards,
home insurance quote
Perhaps the simplest,most straightforward defining distinction in this respect would then be to say that cinema's ultimate goal is to entertain,whereas video art's intentions are more varied.
Regards,
Vancouver video production
I have a situation where when I open up word doc's, pdf's, or almost any file I see activity on my wireless network and I have no open browsers or e-mail open. Will this detect what is happening?
I have a situation where when I open word doc's, pdf's anything I get activity on my wireless network without a browser or e-mail program open. Will Wireshark detect where the data is being sent?
home insurance 475545 life insurance quotes >:-[ life insurance rates 093430 auto insurance rates :[[ gulf life insurance =-]
life insurance 452693 affordable car insurance 890041 life insurance test bxsx child health insurance 238119 life insurance 46958 free car insurance quotes 583779
Thanks. Never before I had crossed over like an informative post like this. I was totally sick with your post you shared .Awesome share dude.
buy dissertation
auto insurance quotes qvlrod pennsylvania life insurance kfb home insurance rates ehfhf health insurance rates 7316 health insurance online 1033
low income health insurance =-[ auto insurance quotes :-OOO home insurance rates 114 life insurance rates fzx auto insurance 812 auto insurance rates =((
xanax dmkbzh valium %OOO acomplia online a generic 8-)) ultram 14998 aciphex =-D cheapest valium online gua
order xanax >:O xanax %O ambien 8PPP lotensin aciphex phentermine pharmacy chicago fzicto accutane online =O online cialis wqx
health insurance :-)) health insurance >:-)) auto insurance rates >:DDD auto insurance agency %) california homeowners insurance ppzhnl infinity auto insurance 592245
home insurance %P auto insurance 4715 health insurance 573 life insurence 05882 life insurance rates >:-(( car insurance in florida xoy health insurance 51765
what is xanax hecbvt cialis 870391 carisoprodol 59803 tramadol 8DD valium kny accutane =-)
accutane online 226356 valium 78824 xanax 654886 xanax 798999 phentermine hcl =-OO retin-a 0166 accutane :-[[[
homeowners insurance in florida 8[[ life insurance 085904 life insurance quotes :O health insurance 511 car insurance online 553175 homeowners insurance 665
in home health care insurance ljmke home insurance =-( health insurance bha auto insurance quotes kztqps auto insurance rates >:-))) health insurance 568 texas homeowners insurance %-)))
cheap propecia generic =-PPP buy cheap aciphex online >:-OO ambien 340 accutane %-[[ cheapest valium online hxlz ultram msoqm accutane bivqom
propecia patent expiration generic 0453 cheap online aciphex 975697 ambien >:-)) ultram %DD cialis htnvr quick order valium fdsa
to buy propecia %( ultram and prozac lmti valium 7072 valium %PPP ambien problems lcbqxt cialis tadalafil 2315 levitra 4167
xanax :[ valium tzeaax carisoprodol djgj ambien hbgl ambien >:-(( compare cialis levitra viagra ibtjqa levitra 988931
Hello! bfefgge interesting bfefgge site!
Hello!
cialis , cheap viagra , viagra , cheap viagra , cialis ,
Hello!
order cialis , viagra , cialis , cialis , cialis ,
Hello!
cialis , cialis , cheap cialis , cialis , cheap viagra ,
Hello!
cheap viagra , cheap viagra , cheap cialis , viagra , cheap viagra ,
Hello!
cheap viagra , cialis , cheap cialis , viagra , cheap viagra ,
life insurance quotes 30787 health insurance cqioqp health insurance quotes 8[[[ life insurance for seniors 92555 auto insurance kkyrc auto insurance rates 8((
florida home owners insurance 5257 cheapest car insurance 077 auto insurance 955532 health insurance 8DDD car insureance 346 whole life insurance policies ftfd home insurance florida 6264
Hello!
viagra ,
Hello!
cheap viagra ,
Hello!
cialis ,
Hello!
cialis ,
Hello!
cialis ,
Hello!
viagra , viagra , cialis , cialis , cialis ,
Hello!
cialis , cheap cialis , cialis , cialis , viagra ,
Hello!
cheap viagra , cheap viagra , cheap cialis , cialis , cialis ,
Hello!
cialis , cheap viagra , order cialis , cialis , cheap cialis ,
Hello!
cheap cialis ,