PDA

View Full Version : System information via webserver


Tuork
09-26-05, 01:36 PM
Straight to it:

Is there any way to determine what OS and tools (PHP, MySQL, etc) a web server has, via the internet?


Eg. Loggin onto my web server from another computer and looking up what OS said web server has, etc.


Thanks in advance.

Clay
09-26-05, 01:38 PM
Belarc is good for this but it requires a download so probably not what you're looking for.

http://www.belarc.com/free_download.html

There are sites that just look at the HTTP Headers passed in and simply report that back...do a Google for that and you should find something close to what you're looking for.

rewt
09-26-05, 07:30 PM
You could do something like this;

c:\>telnet your_server_address 80

HEAD / HTTP/1.0 <enter> <enter>

Clay
09-26-05, 07:40 PM
You could do something like this;

c:\>telnet your_server_address 80

HEAD / HTTP/1.0 <enter> <enter>
That won't give him a report of installed scripting language support though will it? Come to think of it, I don't think Belarc does either.

rewt
09-26-05, 07:50 PM
I wrote this prog in python long time go. ;) It reports OS and Webserver version as well as the versions of PHP MySQL etc.


import sys, socket

if len(sys.argv) < 2:
query_host = raw_input('Enter hostname: ')
else:
query_host = sys.argv[1]

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((query_host, 80))
s.send('HEAD / HTTP/1.0\n\n')
data = s.recv(1024)
s.shutdown(2)
s.close()
print data

Tuork
09-26-05, 10:05 PM
You could do something like this;

c:\>telnet your_server_address 80

HEAD / HTTP/1.0 <enter> <enter>


Thanks a bunch, I'll try that tomorrow from the Uni.

Sorry about the lack of eloquence in the original post. I was running late and needed to post that fast. :D