[ILUG] NMap?

Jeroen Massar jeroen at unfix.org
Tue Mar 6 17:23:39 GMT 2007


Frank Murphy wrote:
> Is nmap the one that finds out what a site is run on? Apache etc..

Nmap is a portscanner which will tell you that yes, but if you only want
to know the webserver then the following is nicer to the remote machine.
Some admins consider portscanning evil and bad etc...

Depending on what you like to know, but a simple telnet works:

8<------------------------------------------------------------------
jeroen at purgatory:~$ telnet unfix.org 80
Trying 2001:828:102:9:0:1:6:80...
Connected to unfix.org.
Escape character is '^]'.
HEAD / HTTP/1.1
Host: unfix.org

HTTP/1.1 200 OK
Date: Tue, 06 Mar 2007 17:20:02 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_gzip/1.3.19.1a PHP/4.1.2
Cache-Control: no-cache, must-revalidate
Expires: Mon, 25 Feb 1998 13:42:13 GMT
Pragma: no-cache
X-Powered-By: PHP/4.1.2
Last-Modified: Tue, 06 Mar 2007 17:20:06 GMT
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------------->8

You have to type:
8<-----------------
HEAD / HTTP/1.1
Host: unfix.org

-------------------->8
Mind the extra enter on a blank line.

Or: wget -S -O /dev/null http://unfix.org/
8<-------------------------------------------------------------------
$ wget -S -O /dev/null http://unfix.org/
--18:22:04--  http://unfix.org/
           => `/dev/null'
Resolving unfix.org... 195.177.242.34, 2001:828:102:9:0:1:6:80
Connecting to unfix.org|195.177.242.34|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Tue, 06 Mar 2007 17:22:04 GMT
  Server: Apache/1.3.26 (Unix) Debian GNU/Linux mod_fastcgi/2.4.2
mod_gzip/1.3.19.1a PHP/4.1.2
  Cache-Control: no-cache, must-revalidate
  Expires: Mon, 25 Feb 1998 13:42:13 GMT
  Pragma: no-cache
  X-Powered-By: PHP/4.1.2
  Last-Modified: Tue, 06 Mar 2007 17:22:04 GMT
  Connection: close
  Content-Type: text/html; charset=iso-8859-1
Length: unspecified [text/html]

    [ <=>
         ] 3,563         --.--K/s

18:22:04 (177.61 KB/s) - `/dev/null' saved [3563]
------------------------------------------------------------------->8




More information about the ILUG mailing list