
Net::Scan::HTTP::Server::Version - grab HTTP server version

use Net::Scan::HTTP::Server::Version;
my $host = $ARGV[0];
my $scan = Net::Scan::HTTP::Server::Version->new({
host => $host,
timeout => 5
});
my $results = $scan->scan;
print "$host $results\n" if $results;

This module permit to grab HTTP server version.

The constructor. Given a host returns a Net::Scan::HTTP::Server::Version object:
my $scan = Net::Scan::HTTP::Server::Version->new({
host => '127.0.0.1',
port => 80,
timeout => 5,
http_version => '1.1',
user_agent => 'Mozilla/5.0',
debug => 0
});
Optionally, you can also specify :
Remote port. Default is 80;
Default is 8 seconds;
Set the HTTP protocol version. Default is '1.1'.
Set the product token that is used to identify the user agent on the network. The agent value is sent as the "User-Agent" header in the requests. Default is 'Mozilla/5.0'.
Set to 1 enable debug. Debug displays "connection refused" when an HTTP server is unrecheable. Default is 0;
Scan the target.
$scan->scan;

Parsing isn't very precise for no standard web servers answers...

LW2 http://www.wiretrip.net/rfp/lw.asp
nmap http://www.insecure.org/nmap/

Matteo Cantoni, <mcantoni@cpan.org>

You may distribute this module under the terms of the Artistic license. See Copying file in the source distribution archive.
Copyright (c) 2006, Matteo Cantoni