Skip to content

giterlizzi/perl-Net-SecurityCenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Actions Status Actions Status License Starts Forks Issues Coverage Status

Net::SecurityCenter - Perl interface to Tenable.sc (SecurityCenter) REST API

Synopsis

use Net::SecurityCenter;
my $sc = Net::SecurityCenter('sc.example.org') or die "Error: $@";

$sc->login(username => 'secman', password => 's3cr3t');

if ($sc->error) {
  print "Failed login: " . $sc->error;
  exit 0;
}

my $running_scans = $sc->scan_result->list_running;

if ($sc->scan_result->status( id => 1337 ) eq 'completed') {
    $sc->scan_result->download( id       => 1337,
                                filename => '/tmp/1337.nessus' );

}

$sc->logout();

Install

Using Makefile.PL:

To install Net::SecurityCenter distribution, run the following commands.

perl Makefile.PL
make
make test
make install

Using App::cpanminus:

cpanm Net::SecurityCenter

Documentation

Copyright

  • Copyright 2018-2021 © Giuseppe Di Terlizzi
  • Nessus®, Tenable.sc® and SecurityCenter® is a Registered Trademark of Tenable®, Inc.