Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h1>The method</h1> <p>Connect to port 80 on the host and send it</p> <pre><code>HEAD / HTTP/1.0 </code></pre> <p>This needs to be followed by carriage-return + line-feed twice</p> <p>You'll get back something like this </p> <pre><code>HTTP/1.1 200 OK Date: Fri, 03 Oct 2008 12:39:43 GMT Server: Apache/2.2.9 (Ubuntu) DAV/2 SVN/1.5.0 PHP/5.2.6-1ubuntu4 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0 Last-Modified: Thu, 02 Aug 2007 20:50:09 GMT ETag: "438118-197-436bd96872240" Accept-Ranges: bytes Content-Length: 407 Connection: close Content-Type: text/html; charset=UTF-8 </code></pre> <p>You can then extract the apache version from the Server: header</p> <h1>Typical tools you can use</h1> <p>You could use the HEAD utility which comes with a full install of Perl's <a href="http://search.cpan.org/~gaas/libwww-perl-5.816/lib/LWP.pm" rel="noreferrer">LWP</a> library, e.g.</p> <pre><code>HEAD http://your.webserver.com/ </code></pre> <p>Or, use the <a href="http://curl.haxx.se/" rel="noreferrer">curl</a> utility, e.g.</p> <pre><code> curl --head http://your.webserver.com/ </code></pre> <p>You could also use a browser extension which lets you view server headers, such as <a href="https://addons.mozilla.org/en-US/firefox/addon/3829" rel="noreferrer">Live HTTP Headers</a> or <a href="https://addons.mozilla.org/en-US/firefox/addon/1843" rel="noreferrer">Firebug</a> for Firefox, or <a href="http://www.fiddlertool.com/fiddler/" rel="noreferrer">Fiddler</a> for IE</p> <h1>Stuck with Windows?</h1> <p>Finally. if you're on Windows, and have nothing else at your disposal, open a command prompt (Start Menu->Run, type "cmd" and press return), and then type this</p> <pre><code>telnet your.webserver.com 80 </code></pre> <p>Then type (carefully, your characters won't be echoed back)</p> <pre><code>HEAD / HTTP/1.0 </code></pre> <p>Press return twice and you'll see the server headers.</p> <h1>Other methods</h1> <p>As mentioned by cfeduke and Veynom, the server may be set to return limited information in the Server: header. Try and upload a PHP script to your host with this in it</p> <pre><code>&lt;?php phpinfo() ?&gt; </code></pre> <p>Request the page with a web browser and you should see the Apache version reported there.</p> <p>You could also try and use <a href="http://phpshell.sourceforge.net/" rel="noreferrer">PHPShell</a> to have a poke around, try a command like</p> <pre><code>/usr/sbin/apache2 -V </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload