Google Answers Logo
View Question
 
Q: Win32 port listening? Can one thread listen to the TCP/IP traffic of another? ( No Answer,   3 Comments )
Question  
Subject: Win32 port listening? Can one thread listen to the TCP/IP traffic of another?
Category: Computers > Programming
Asked by: donphiltrodt-ga
List Price: $12.00
Posted: 01 Dec 2003 20:44 PST
Expires: 11 Dec 2003 18:57 PST
Question ID: 282491
Hi.

I'm prone to hire coders to build things I need.  But first, I need to
know the complexity of what I'm considering.

I'd like to hire one to build a tool that can extract (but not modify
or intercept) information from the TCP/IP traffic of other
applications.


Examples (for the sake of explanation)...

--) Maybe a perl script that logs all POP3 traffic

--) Maybe a java applet that logs all incoming traffic on port 80

--) Maybe a C applet that logs all DNS traffic.


There are MANY ways to accomplish the three things I listed.  But it's
not the examples I'm after -- it's the knowledge of how complex a
"listener application" must be to be able to "hear" the TCP/IP traffic
of another application.

I understand that perl and java may be too high-level to be
appropriate for port-listening.

Here are some elements of possible good answers...

--) It's very easy in C if you use this port-listening library
available at this URL...

--) This article talks about it and here's my brief summary/synthesis for you...

--) Listening to other threads' network traffic is a very tricky
process that will cost you a lot of money.  Here's some reasons why.

--) Perl and java can't listen to other threads' network traffic.

--) You do/don't need to write a device driver to listen to other
threads' network traffic.

--) The user of a port-listening application doesn't need to
reconfigure his network connection because...

Thank you.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Win32 port listening? Can one thread listen to the TCP/IP traffic of another?
From: gtk-ga on 08 Dec 2003 14:49 PST
 
Check out WinPcap, the Windows Packet Capture library
(http://winpcap.polito.it/). You can use it directly from C/C++, from
Python via Pcapy (http://oss.coresecurity.com/projects/pcapy.html),
from Perl via Win32::NetPacket (get it from CPAN), and from any COM or
ActiveX-capable language such as VB or VBA via the commercial PacketX
product from BeeSync (http://www.beesync.com/products.html).

I'm not one of Google's paid researchers, so you'll have to accept
this answer for free. :)
Subject: Forgot to mention...
From: gtk-ga on 08 Dec 2003 14:52 PST
 
WinPcap can not only listen to all Ethernet traffic (including IP and
TCP) sent from or received by your Ethernet card, but can also put
most Ethernet interfaces into "promiscuous mode" and listen to other
traffic on the network segment. This technique is the basis for most
traffic analysers, including the open source packet sniffer Ethereal
(http://www.ethereal.com/), which relies on WinPcap on Windows
platforms.
Subject: Re: Win32 port listening? Can one thread listen to the TCP/IP traffic of another?
From: donphiltrodt-ga on 11 Dec 2003 18:55 PST
 
Thanks for the excellent answer.  It's exactly what I'm looking for.

I've put in a recommendation to GA that you be a paid researcher.

Thanks again.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy