listening network traffic

Hi

Can anyone provide me any links that describes or gives examples how to listen traffic at some X port?
The idea would be to record everything that happens for example in the ports 21,80,110, etc...

I havent found any examples myself, so links to the materials that explain how to do it or give some information how it could be done etc...

Thanks
PSERKAsked:
Who is Participating?
 
Richard QuadlingConnect With a Mentor Senior Software DeveloperCommented:
It is a driver, just like any other hardware driver. Appropriate APIs exist.

http://www.winpcap.org/
http://www.winpcap.org/install/bin/WpdPack_3_1.zip

0
 
PSERKAuthor Commented:
Oh and the language itself is not important, can be Delphi, Visual Basic, Python, C whatever...
0
 
Richard QuadlingSenior Software DeveloperCommented:
Hi PSERK,


Probably one of the best "listeners" around is Ethereal. This comes with full source, so you should be able to get to grips with it.

www.ethereal.com

Regards,

Richard Quadling.
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
A. Cristian CsikiSenior System AdministratorCommented:
0
 
PSERKAuthor Commented:
Seems nice, but the idea is to record the data that was sent/received in the port activity. It seems that this program does not support it.
I will go through the api, maybe its there somewhere :)
0
 
Richard QuadlingSenior Software DeveloperCommented:
Ethereal uses a port monitor/device driver WinPCap I think it is called.

This is just the sort of tool you are wanting. You talk to WinPCap and deal with the data as you see fit. As far as I know it is a Read only device.
0
 
PSERKAuthor Commented:
I need to get the data to my app. So the idea would be to get somehow connected with this WinPCap and start reading information.
THis WinPCap is new to me, does it support connections from system apps?
0
 
PSERKAuthor Commented:
OKey, if driver then fantastic!!!
Will get into details in the evening.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.