Sslscan::Parser - Parse sslscan scan data with Perl
This document describes Sslscan::Parser version .01
my $np = new Sslscan::Parser; my $parser = $np->parse_file('test1.xml'); #a Sslscan::Parser Object my $host = $parser->get_host('10.0.0.100'); #a Sslscan::Parser::Host Object my @ports = $host->get_all_ports(); #an Array of Sslscan::Parser::Host::Port Objects my $port = $host->get_port('80'); #a Sslscan::Parser::Host::Port Object my @ciphers = $port->get_all_ciphers(); #an Array of Sslscan::Parser::Host::Port::Cipher Objects
For a full listing of methods see the documentation corresponding to each object.
Sslscan::Parser -- Core parser | +--Sslscan::Parser::Session -- Sslscan scan session information | +--Sslscan::Parser::Host -- General host information | | | |--Sslscan::Parser::Host::Port -- Port information | | | | | +--Sslscan::Parser::Host::Port::Cipher -- Cipher information | | |
The main idea behind the core modules is, you will first parse the scan data then extract the information. Therefore, you should run parse_file or parse_scan then the you can use any of the get_* methods.
Parse a Sslscan XML file. The XML files are generated from using the: Sslscan.pl --xml=file output.xml $IP
Perform a Sslscan scan with Sslscan::Parser. The results will be parsed once the scan is complete.
Obtain the Sslscan::Parser::Session object which contains the session scan information.
Obtain the Sslscan::Parser::Host object which the host information.
Obtain an Array of Sslscan::Parser::Host objects which contain host information.
This object contains the scan session information of the Sslscan scan.
Returns the title of the scan.
Returns the website.
Returns the version of sslscan.
This object contains the information for a host.
Returns a string which contains the ip of this host.
Obtain a Sslscan::Parser::Host::Port object which contains the port information.
Obtain an Array of Sslscan::Parser::Host::Port objects which contain port information.
This object contains the information for a port.
Returns a string which contains the port number.
Returns an Array of Sslscan::Parser::Host::Port::Cipher objects which contain information about the ciphers
This object contains the information for cipher.
Returns the status of the cipher
Returns the Cipher.
Returns the number of bits
Returns the ssl version
Here is an example of parsing an XML file using Sslscan::Parser:
my $sslpx = new Sslscan::Parser;
my $parser = $sslpx->parse_file("test1.xml");
foreach my $h ( $parser->get_all_hosts() ){ print "ip: " . $h->ip . "\n"; foreach my $p ( $h->get_all_ports ) { print "port: " . $p->port . "\n"; } print "---\n";
}
sslscan, XML::LibXML and Object::InsideOut
Joshua "Jabra" Abraham, <jabra AT spl0it DOT org>
Copyright 2009 Joshua D. Abraham. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Sslscan::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sslscan::Parser
CPAN shell
perl -MCPAN -e shell install Sslscan::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.