LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   how to check what webserver is running (https://www.linuxquestions.org/questions/linux-security-4/how-to-check-what-webserver-is-running-226156/)

linuxtesting2 09-03-2004 10:35 AM

how to check what webserver is running
 
is there a way to check out which version of a webserver im running. Im trying nmap, and ethereal only thing i get is http/1.1. I want something else for output, like apache v.23.4 ex...is there any other program, or options i should set?

-bj

bruj3w 09-03-2004 10:37 AM

i think it says in the header of the cofig file off the top of my head.

linuxtesting2 09-03-2004 10:43 AM

what ?? :)

bruj3w 09-03-2004 10:58 AM

more /etc/apache/httpd.conf

Capt_Caveman 09-03-2004 12:00 PM

Uhh, I'm assuming you meant remote version detection? What version of nmap are you using? Versions greater than 3.50 have built-in application version detection and is rather effective (nmap -A host). You can also just do a simple banner grab with telnet:

telnet ip.of.host 80
*If that works you should get something like this:
Trying 192.168.0.3....
Connected to 192.168.0.3.
Escape character is '^]'.
*You'll be at a blank line, now type this and hit enter twice:
GET / HTTP/1.0

You should get the banner plus raw html. In the banner, look at the Server info
HTTP/1.1 200 OK
Date: Fri, 03 Sep 2004 15:34:03 GMT
Server: Apache/1.3.29 (Darwin) tomcat/1.0 mod_ssl/2.8.16 OpenSSL/0.9.6i PHP/4.1.2
Last-Modified: Fri, 06 Feb 2004 21:12:09 GMT
ETag: "45drd-f0c-345c532"
Accept-Ranges: bytes
Content-Length: 1234
Connection: close
Content-Type: text/html; charset=UTF-8

ppuru 09-03-2004 12:18 PM

You can also use www.netcraft.com to find out the webserver.

linuxtesting2 09-03-2004 01:17 PM

thanks for all replys...i meant remote, now i know :)


All times are GMT -5. The time now is 12:42 AM.