[Mono-list] Portscanner School Project...Probably using System.Net class

Steve Marshall steve.marshall@unitech.net
Fri, 23 Aug 2002 16:26:57 +0100


Packet scanning is simple in C# 
http://www.c-sharpcorner.com/Network/SimpleSnifferInCSLM.asp

Once you've got the raw socket then it's just a matter of knowing how to
interpret the various protocols.

Steve Marshall
Software Developer
Universal Information Technology Group Ltd.
s: 25 Bernard St, Leith, Edinburgh, EH66SH
p: 0131 472 5562
e: steven.marshall@unitech.net


-----Original Message-----
From: Zaphod [mailto:j0k3rin@yahoo.co.in] 
Sent: 23 August 2002 13:15
To: Erik C
Cc: mono-list@ximian.com
Subject: Re: [Mono-list] Portscanner School Project...Probably using
System.Net class


On Wed, Aug 21, 2002 at 01:45:40AM -0700, Erik C wrote:
> For school I have to write a network port scanner in a language of my 
> choosing...in an effort to learn a new language I have chosen C#
...
> 1) How far along are System.Net and any other network classes??
> Will my project be a viable one if I tell my professor
> that I am committing to using your compiler?

To write a nice network port scanner you need packet level access which
C# does not provide ... (or so I understood).. IIRC the `ACK Catcher' is
the fastest scanning idea ...

Otherwise port scanning can be done using a worker pool of 
say 10 threads and a connect & try/catch to the port ...
This is a crude method ... IMHO ...

Or if you have an even better idea , enlighten us please ..

_______________________________________________
Mono-list maillist  -  Mono-list@ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list