473,320 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Port listener in C#

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.
Nov 15 '05 #1
5 10442
"Kulstad" <ku*****@shaw.ca> wrote in
news:ee**************@TK2MSFTNGP09.phx.gbl:
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------
Nov 15 '05 #2
Check out http://www.prism.gatech.edu/~gte477n/languages/csharp/

As long as you only need to montor traffic that is to/from the computer the
sniffer runs on.
Arild

"Kulstad" <ku*****@shaw.ca> wrote in message
news:ee**************@TK2MSFTNGP09.phx.gbl...
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.

Nov 15 '05 #3
You can sniffer on the port.

I have a lot of examples written in c++.
Nov 15 '05 #4
Hey man, no offence, but I think this is sick. How about giving your kids
a break??
On Wed, 17 Dec 2003 15:29:03 -0700, Kulstad <ku*****@shaw.ca> wrote:
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.


Nov 15 '05 #5
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)?
"Arild Bakken" <ar*****@hotmail.com> wrote in message
news:#M**************@TK2MSFTNGP10.phx.gbl...
Check out http://www.prism.gatech.edu/~gte477n/languages/csharp/

As long as you only need to montor traffic that is to/from the computer the sniffer runs on.
Arild

"Kulstad" <ku*****@shaw.ca> wrote in message
news:ee**************@TK2MSFTNGP09.phx.gbl...
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.


Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Axel Dachtler | last post by:
Hi, I have a listener problem. The listener cannot read SERVICE_NAME in TNS-Descriptor. The service-name I specified in Oracle Net Manager for this database is testdb as well. ...
1
by: Mohammad Amin | last post by:
Hi, How can I read data from com port in csharp. Best Regards, Amin.
3
by: Geoff | last post by:
I need to keep a few VB6 tcpClients active, but have them talk to a dotNet tcpServer/tcpListener. The "Server"/Listener is running as a Plugin, and needs to respond to "outside requests". The...
2
by: jasonsgeiger | last post by:
From: "Factor" <jasonsgeiger@gmail.com> Newsgroups: microsoft.public.in.csharp Subject: Multiple Clients, One port Date: Wed, 19 Apr 2006 09:36:02 -0700 I'm been working with sockets for a...
4
by: Challenge | last post by:
Hi, I have problem to connect to db server from app server. The error is SQL30081N A communication error has been detected. Communication protocol being used: "TCP/IP". Communication API...
5
by: mivey4 | last post by:
Hi, First off, I am aware that this is a very heavily documented error and I have done my homework for throughly researching probable causes before deciding to post my problem here. At this point,...
2
by: Quentin | last post by:
I would like to create a serial port listener that starts recording data to a text file as soon as the port starts receiving the data. How do I trigger the program to start running when data is...
5
by: Nitvar | last post by:
When i am trying to connect to oracle it is giving me these two errors ORA-12224: TNS:no listener ORA-01034: ORACLE not available I am new to oracle ,plz help I am using solaris 5.6 and...
1
by: michael ngong | last post by:
michael.john@gmx.at (Michael John) wrote in message news:<90cc4edd.0306230900.28075193@posting.google.com>... MIchael I you stated the OS and platform that could make it easier to address your...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.