https://github.com/kost/nessus-xmlrpc-perl
CPAN Module Net::Nessus::XMLRPC - perl library for communication with Nessus scanner(v4.2+) via XMLRPC
https://github.com/kost/nessus-xmlrpc-perl
Last synced: 6 months ago
JSON representation
CPAN Module Net::Nessus::XMLRPC - perl library for communication with Nessus scanner(v4.2+) via XMLRPC
- Host: GitHub
- URL: https://github.com/kost/nessus-xmlrpc-perl
- Owner: kost
- Created: 2010-03-16T00:14:00.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2014-07-03T09:26:02.000Z (almost 11 years ago)
- Last Synced: 2024-10-16T06:25:53.038Z (7 months ago)
- Language: Perl
- Homepage: http://search.cpan.org/perldoc?Net::Nessus::XMLRPC
- Size: 161 KB
- Stars: 4
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
Net-Nessus-XMLRPC
This is Perl interface for communication with Nessus scanner over XMLRPC.
You can start, stop, pause and resume scan. Watch progress and status of
scan, download report, etc.INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
make installEXAMPLE
use Net::Nessus::XMLRPC;
# '' is same as https://localhost:8834/
my $n = Net::Nessus::XMLRPC->new ('','user','pass');die "Cannot login to: ".$n->nurl."\n" unless ($n->logged_in);
print "Logged in\n";
my $polid=$n->policy_get_first;
print "Using policy ID: $polid ";
my $polname=$n->policy_get_name($polid);
print "with name: $polname\n";
my $scanid=$n->scan_new($polid,"perl-test","127.0.0.1");while (not $n->scan_finished($scanid)) {
print "$scanid: ".$n->scan_status($scanid)."\n";
sleep 15;
}
print "$scanid: ".$n->scan_status($scanid)."\n";
my $reportcont=$n->report_file_download($scanid);
my $reportfile="report.xml";
open (FILE,">$reportfile") or die "Cannot open file $reportfile: $!";
print FILE $reportcont;
close (FILE);NOTICE
This CPAN module uses LWP for communicating with Nessus over XMLRPC via https.
Therefore, make sure that you have Net::SSL (provided by Crypt::SSLeay):
http://search.cpan.org/perldoc?Crypt::SSLeay
or IO::Socket::SSL:
http://search.cpan.org/perldoc?IO::Socket::SSLIf you think you have login problems, check this first!
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
perldoc command.perldoc Net::Nessus::XMLRPC
You can also look for information at:
RT, CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-Nessus-XMLRPCAnnoCPAN, Annotated CPAN documentation
http://annocpan.org/dist/Net-Nessus-XMLRPCCPAN Ratings
http://cpanratings.perl.org/d/Net-Nessus-XMLRPCSearch CPAN
http://search.cpan.org/dist/Net-Nessus-XMLRPCCOPYRIGHT AND LICENCE
Copyright (C) 2010 Vlatko Kosturjak
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.