Forum Moderators: bakedjake

Message Too Old, No Replies

Is it on a linux server?

How to find out what server a site is running on.

         

peterzak

2:01 pm on Jan 31, 2005 (gmt 0)

10+ Year Member



Is there any way of finding out what server a particular site is running off? I'm looking into hiring some programmers and Get the feeling they don't have as much PHP, MySQL experience as they claim.

On one site I visited that they claimed was PHP, all i could find has .ASP and .htm pages.

ScottM

2:15 pm on Jan 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



try a "whois"? They usually show the server.

Lord Majestic

2:16 pm on Jan 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use NetCraft.

jasonlambert

3:37 pm on Jan 31, 2005 (gmt 0)

10+ Year Member



Options:
1) use nmap to do a TCP fingerprint on the IP address of the webserver.

2) telnet to port 80 and do a HTTP HEAD request and examine the HTTP "Server" response header, eg:

user@hostname:~$ telnet www.example.com 80
Trying x.x.x.x...
Connected to x.x.x.x.
Escape character is '^]'.
HEAD / HTTP/1.0

HTTP/1.1 200 OK
Date: Mon, 31 Jan 2005 15:28:44 GMT
Server: Apache/1.3.31 (Unix)
Connection: close
Content-Type: text/html

Connection closed by foreign host.
user@hostname:~$


On poorly configured servers with PHP installed you may also get a powered by php response header as well.

Of course, just because a website is hosted on a linux box, it doesnt mean they know anything about linux or PHP :) I suggest you look at other ways to determine their qualifications.

Lord Majestic

3:39 pm on Jan 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> 1) use nmap to do a TCP fingerprint on the IP address of the webserver.

Watch out -- some servers have intrusion detection software that will get overexcited at having servers being nmap'ped. These days people are very paranoid.

peterzak

6:13 pm on Feb 1, 2005 (gmt 0)

10+ Year Member



wow, what a great response of options. thanks a lot!

incrediBILL

3:54 am on Feb 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Beware the PHP "developer" ...

One so-called developer I ran across had all his customers static HTML pages running as ".PHP" because as he said in his own words:

"I can charge more for a PHP page than I can for just an HTML page"

He saw them coming and gouged them good.

ncsuk

10:55 am on Feb 4, 2005 (gmt 0)

10+ Year Member



Indeed you can nmap any of my servers but if you Telnet to port 80 and ask for the headers you just get a 501 error and it closes the connection.

Top drawer security!

jasonlambert

3:05 pm on Feb 4, 2005 (gmt 0)

10+ Year Member



Indeed you can nmap any of my servers but if you Telnet to port 80 and ask for the headers you just get a 501 error and it closes the connection.

What about a GET on robots.txt? :) The request type, HEAD,GET,POST or whatever is mostly irrelivent. A HTTP Server response header which can be VERY easily modified in both Apache 1.3.x, 2.x, as well as Boa by anyone with a little C programming experience. This will also affect what netcraft records. Thus, relying on HTTP Server headers as a means of host OS identification is not always a good idea.

An OS TCP fingerprint would be a lot harder to change because you would (i suspect) be changing the way the TCP stack in the kernel operates - It might be possible, i've never tried.

Lord Majestic

3:07 pm on Feb 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> Indeed you can nmap any of my servers but if you
> Telnet to port 80 and ask for the headers you just get
> a 501 error and it closes the connection.

This only means that you made an incorrect HTTP request! :)

dom86

9:21 pm on Feb 11, 2005 (gmt 0)

10+ Year Member



You could use the Lynx Browser [lynx.isc.org]

press = to see what server a page is running on

Imaster

9:43 pm on Feb 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use a server header checker [searchengineworld.com...]