determine web server information
Moderator: General Moderators
determine web server information
I'm interested to know how netcraft determines server information (ie server type, last reboot, webserver type) etc.
I assume this is all information sent from headers by the web server, but wondering how/if php can parse that information into something useful.
http://news.netcraft.com/ <-- in case you haven't seen it.
I assume this is all information sent from headers by the web server, but wondering how/if php can parse that information into something useful.
http://news.netcraft.com/ <-- in case you haven't seen it.
Looking through this code should tell you:
http://phpsysinfo.sourceforge.net/
From what I could see, it looks like it just calls a bunch of command line programs (stuff like `uptime`) and parses the input.
Pretty cool nonetheless.
http://phpsysinfo.sourceforge.net/
From what I could see, it looks like it just calls a bunch of command line programs (stuff like `uptime`) and parses the input.
Pretty cool nonetheless.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
All they do is request a page once in a while. This way, when they don't get a response, they know the server has been down. The headers the server returns are also usefull, for example
Response Headers - posting.php?mode=reply&t=35502
And then there are some tools which allow you get a fingerprint of the server too like xprobe, p0f, hping, ...
Response Headers - posting.php?mode=reply&t=35502
Code: Select all
Date: Tue, 12 Jul 2005 22:50:23 GMT
Server: Microsoft-IIS/5.0
X-Powered-By: PHP/4.3.10
...Well i mentionned in my post there were other tools available too, so i looked in my bookmarks 
http://xprobe.sourceforge.net/
http://lcamtuf.coredump.cx/p0f.shtml
http://www.hping.org/
http://xprobe.sourceforge.net/
http://lcamtuf.coredump.cx/p0f.shtml
http://www.hping.org/