NAME
Net::Scan::SMTP::Banner - scan for banner message from a SMTP server
SYNOPSIS
use Net::Scan::SMTP::Banner;
my $host = $ARGV[0];
my $scan = Net::Scan::SMTP::Banner->new({
host => $host,
timeout => 5,
debug => 0
});
my $results = $scan->scan;
print "$host $results\n" if $results;
DESCRIPTION
This module permit to grab the banner message from a SMTP server.
METHODS
new
The constructor. Given a host returns a Net::Scan::SMTP::Banner object:
my $scan = Net::Scan::SMTP::Banner->new({
host => "127.0.0.1",
port => 25,
timeout => 5,
debug => 1
});
Optionally, you can also specify :
- port
-
Remote port. Default is 25 tcp;
- timeout
-
Default is 8 seconds;
- debug
-
Set to 1 enable debug. Debug displays "connection refused" when an SMTP server is unrecheable. Default is 0;
scan
Scan the target.
$scan->scan;
SEE ALSO
Net::SMTP
nmap http://www.insecure.org/nmap/
AUTHOR
Matteo Cantoni, <mcantoni@nothink.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