Hi,
I'm in the process of setting up a "trust" site. Basically, people put a bit of HTML onto the page - and assuming their server has the latest software/a valid SSL certificate, it will show a "good" image, otherwise it'll show a "sofware not up to date" image.
Now, I've tried doing:
However, although this gives me quite a bit of info - most of that is related to the script/their IP.
Is there a way to get the values etc from them? I don't want it to be complicated - as they are gonna have to set this script up themselves. I know I can do stuff like:
..and:
However, I'm not sure this will work on 100% of the servers (as a) it requires them to have command line access from perl script, and b) it assumes the commands run work on their server)
Is there maybe something that can be run from our end, to determine their software versions or something?
I'm at a bit of a dead end here (and googling comes up with bugger all too
)
TIA for any suggestions.
Andy
I'm in the process of setting up a "trust" site. Basically, people put a bit of HTML onto the page - and assuming their server has the latest software/a valid SSL certificate, it will show a "good" image, otherwise it'll show a "sofware not up to date" image.
Now, I've tried doing:
Code:
#!/usr/bin/perl -w
print qq|Content-Type: text/html \n\n|;
map { print qq|$_ => $ENV{$_} <br />|; } keys %ENV;
However, although this gives me quite a bit of info - most of that is related to the script/their IP.
Is there a way to get the values etc from them? I don't want it to be complicated - as they are gonna have to set this script up themselves. I know I can do stuff like:
Code:
domain@east ~ $ php --version
PHP 5.2.6 (cgi-fcgi) (built: May 2 2008 11:38:58)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
domain@east ~ $
..and:
Code:
domain@east ~ $ perl --version
This is perl, v5.8.4 built for x86_64-linux
However, I'm not sure this will work on 100% of the servers (as a) it requires them to have command line access from perl script, and b) it assumes the commands run work on their server)
Is there maybe something that can be run from our end, to determine their software versions or something?
I'm at a bit of a dead end here (and googling comes up with bugger all too
TIA for any suggestions.
Andy