Port listener in C#

  • Thread starter Thread starter Kulstad
  • Start date Start date
K

Kulstad

I would like to create an application that will allow me to monitor (that
is, capture and record) all traffic on specific ports of my computer. In
case this is not clear (it still isn't quite clear to me), here's the
scenario:

My children frequently use various chat applications *and* chat capabilities
in various online games. Once in awhile, I get suspicious of their
activities, and would like to be able to capture both sides of their chat
sessions. I know the IP addresses and port numbers that their online games
connect thru, but I have yet to find an application that will capture both
sides of conversations (so far, I have a keylogging app that records
keystrokes, but doesn't capture incoming messages).

What I would like to do is have an application running in the background
that will capture their chat sessions inside their games. I realize that
this will (most likely) capture all traffic, both relevant and irrelevant,
but I will sort and sift thru that manually. Is there such a way to write
this application in C# so that it will run as an "invisible service"? I am
just venturing into C# development (transformed VB6 programmer), so if you
*are* able to help me, an "for dummies" instruction set would be most
helpful.

Thank you in advance.
 
I would like to create an application that will allow me to monitor
(that is, capture and record) all traffic on specific ports of my
computer. In case this is not clear (it still isn't quite clear to
me), here's the scenario:

My children frequently use various chat applications *and* chat
capabilities in various online games. Once in awhile, I get
suspicious of their activities, and would like to be able to capture
both sides of their chat sessions. I know the IP addresses and port
numbers that their online games connect thru, but I have yet to find
an application that will capture both sides of conversations (so far,
I have a keylogging app that records keystrokes, but doesn't capture
incoming messages).

What I would like to do is have an application running in the
background that will capture their chat sessions inside their games.
I realize that this will (most likely) capture all traffic, both
relevant and irrelevant, but I will sort and sift thru that manually.
Is there such a way to write this application in C# so that it will
run as an "invisible service"? I am just venturing into C#
development (transformed VB6 programmer), so if you *are* able to help
me, an "for dummies" instruction set would be most helpful.

Thank you in advance.

Hi,

This can't be done in C# (at least not without a huge amount of P/Invoke
calls). You'd need to hook up the networkadapter driver and redirect all
send pakets.

believe me: you don't want to do that.

Look around the web (google et al) for Sniffer Programms there are
already plenty working solutions...

Greets
Peter

--
------ooo---OOO---ooo------

Peter Koen - www.kema.at
MCAD MCDBA
CAI/RS CASE/RS IAT

------ooo---OOO---ooo------
 
Hey man, no offence, but I think this is sick. How about giving your kids
a break??
 
Does that mean that I would need to run the sniffer on the web server of the
online game (because "chatting" is controlled by the web appserver)? I know
that in their games, all messages are visible (ie: my son can see messages
between other people, not intended for him), but there is also a "private"
mode of chatting as well (something akin to "/whipser" in IRC). Are the
"/whipsers" handled the same way as "general chatting", or is this something
I would need to dig a little deeper within the game's FAQs (which probably
wouldn't be pulic knowledge)?
 
Back
Top