NAME

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

SYNOPSIS

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;

DESCRIPTION

This module permit to grab HTTP server version.

METHODS

new

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 :

port

Remote port. Default is 80;

timeout

Default is 8 seconds;

http_version

Set the HTTP protocol version. Default is '1.1'.

user_agent

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'.

debug

Set to 1 enable debug. Debug displays "connection refused" when an HTTP server is unrecheable. Default is 0;

scan

Scan the target.

$scan->scan;

BUGS

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

SEE ALSO

LWP

LW2 http://www.wiretrip.net/rfp/lw.asp

nmap http://www.insecure.org/nmap/

AUTHOR

Matteo Cantoni, <mcantoni@cpan.org>

COPYRIGHT AND LICENSE

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