You may want to scan more than just 80 and 8080. Though scanning 10000 ports (or however many) would take rather a long time for each machine on your network.
I scanned my machine and got the following: A server is listening on port 135 of localhost A server is listening on port 445 of localhost A server is listening on port 1025 of localhost A server is listening on port 1027 of localhost A server is listening on port 1028 of localhost A server is listening on port 1521 of localhost A server is listening on port 2271 of localhost A server is listening on port 2276 of localhost A server is listening on port 3372 of localhost A server is listening on port 7200 of localhost A server is listening on port 8007 of localhost A server is listening on port 8009 of localhost A server is listening on port 8080 of localhost A server is listening on port 8575 of localhost -----Original Message----- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of sufi malak Sent: 05 February 2002 16:30 To: [EMAIL PROTECTED] Subject: Re: Type of web server from socket ?? you want to know why ? So you want to know why I want this, my company has more than 18000 employees, lot of servers are running everywhere, this is new for me too, I have never done a java networking program, so my boss want me to write an application that can scans all our ip addresses for certain commun ports (80, 8080), I 've done it, then my boss say :"tha's good, good job" he made me happy for saying that, two minutes later he come back to me and said : " How about to extract the type of the server running ..", I said " ok, it's jave, everything is possible, it can be done", then I started looking and asked you, please before judging someone of hacking or creating virus you have to ask. I will appreciate if someone can helps me on how to do it ?? Thanks >From: Andy Cobley <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Type of web server from socket ?? >Date: Tue, 5 Feb 2002 13:50:27 -0000 > > > -----Original Message----- > > From: Patrick Bowe [mailto:[EMAIL PROTECTED]] > > Sent: 05 February 2002 13:28 > > To: [EMAIL PROTECTED] > > Subject: Re: Type of web server from socket ?? > > > > If you want to use a system call, you can telnet to port 80, > > and issue the command "GET / HTTP/1.0" followed by two returns. > > You'd have to filter the output for the line that starts with "Server:" > > > > ex: > > > > $ telnet <server> 80 > > Trying... > > Connected to <server>.lmig.com. > > Escape character is '^]'. > > GET / HTTP/1.0 > >You certainly could but I want to know why anyone would want to do this. >Combined with the other recent threads about incrementing IP addresses and >a >mention of "port scanning" I'm just a little worried that there seems to be >some sort of "DOS attack" or virus tutorial running on this list ! > >Andy c > >=========================================================================== >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff >JSP-INTEREST". >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST >DIGEST". >Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
