Giter Site home page Giter Site logo

giterlizzi / perl-net-securitycenter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 269 KB

Perl interface to Tenable.sc (SecurityCenter) REST API

Home Page: https://metacpan.org/release/Net-SecurityCenter

License: Other

Perl 100.00%
tenable nessus rest api perl securitycenter tenablesc hacktoberfest

perl-net-securitycenter's Introduction

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.

perl-net-securitycenter's People

Contributors

giterlizzi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

giper45

perl-net-securitycenter's Issues

"any" is not exported by the List::Util module

[email protected] via RT #130874 (https://rt.cpan.org/Ticket/Display.html?id=130874)

The test suite fails if an older version of List::Util is installed (so probably minimum prereq version has to be adjuste):

...
#   Failed test 'require Net::SecurityCenter;'
#   at t/00-load.t line 7.
#     Tried to require 'Net::SecurityCenter'.
#     Error:  "any" is not exported by the List::Util module
# Can't continue after import errors at /home/cpansand/.cpan/build/2019103014/Net-SecurityCenter-0.203-NMmWnF/blib/lib/Net/SecurityCenter/API/Scan.pm line 8.
# BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2019103014/Net-SecurityCenter-0.203-NMmWnF/blib/lib/Net/SecurityCenter/API/Scan.pm line 8.
# Compilation failed in require at /home/cpansand/.cpan/build/2019103014/Net-SecurityCenter-0.203-NMmWnF/blib/lib/Net/SecurityCenter.pm line 18.
# Compilation failed in require at (eval 4) line 2.

#   Failed test 'require Net::SecurityCenter::API::Scan;'
#   at t/00-load.t line 20.
#     Tried to require 'Net::SecurityCenter::API::Scan'.
#     Error:  Attempt to reload Net/SecurityCenter/API/Scan.pm aborted.
# Compilation failed in require at (eval 109) line 2.
Use of uninitialized value $Net::SecurityCenter::VERSION in concatenation (.) or string at t/00-load.t line 29.
# Net::SecurityCenter , Perl 5.016003, /usr/bin/perl
# Looks like you failed 2 tests of 18.
t/00-load.t ....... 
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/18 subtests 
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.