nessplus

package module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: GPL-3.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

NessPlus

Go Reference Go Report Card GitHub release (latest SemVer)

This is an on-going project to make Nessus output more useful in day to day pentesting.

Installation

go install github.com/mister-turtle/nessplus/cmd/nessplus@latest

Using go install will install the binary to your GOBIN (go env GOBIN to check) so it will need to be in your shell $PATH for everyday usage.

Building

If you would prefer to build from scratch you can run the following

$ git clone https://github.com/mister-turtle/nessplus
$ cd nessplus
$ go mod download && go build ./cmd/nessplus

Usage

                           _            
                          | |          
 _ __   ___  ___ ___ _ __ | |_   _ ___ 
| '_ \ / _ \/ __/ __| '_ \| | | | / __|
| | | |  __/\__ \__ \ |_) | | |_| \__ \
|_| |_|\___||___/___/ .__/|_|\__,_|___/
                    | |                
                    |_|                

NAME:
   nessplus - Parse .nessus files in useful ways

USAGE:
   nessplus [global options] command [command options] [arguments...]

COMMANDS:
   compliance, com Parse compliance benchmarks from .nessus file
   summary, sum    Print out a summary of a nessus scan
   services, serv  Print out discovered services
   help, h         Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help

Todo

  • Extract CVEs attached to a host/service
  • Use searchsploit to find known exploit code
  • Collate issues for reporting (opinionated)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Severities = []string{
	"Informational",
	"Low",
	"Medium",
	"High",
	"Critical",
}

Functions

This section is empty.

Types

type Audit

type Audit struct {
	Total    int
	Passed   int
	Warning  int
	Failed   int
	Other    int
	Controls []Control
}

type Compliance

type Compliance struct {
	Total   int
	Passed  int
	Warning int
	Failed  int
	Other   int
	Audits  map[string]Audit
}

Compliance represents the compliance benchmark run against a single host and includes metadata about the compliance status as a whole along.

type Control

type Control struct {
	ID          string
	Name        string
	Status      string
	ActualValue string
	Description string
	Result      string
	Solution    string
	AuditFile   string
}

Control stores the result for a single benchmark control.

type Host

type Host struct {
	Name            string
	IP              string
	OperatingSystem string
	Compliance      Compliance
	Issues          []Issue
	Services        []Service
}

type HostMetadata

type HostMetadata struct {
	Name            string
	IP              string
	OperatingSystem string
}

HostMetadata describes a single ReportHost

type HostProperties

type HostProperties struct {
	Tags []tag `xml:"tag"`
}

HostProperties are tags filled with likely useless information.

type Issue

type Issue struct {
	PluginID    string
	Name        string
	Description string
	Severity    string
	SeverityInt int
}

type Metadata

type Metadata struct {
	PolicyName  string
	Name        string
	RunBy       string
	Description string
	Timing      Timing
}

Metadata contains data extracted from top-level nessus file elements about the scan.

type NessusRun

type NessusRun struct {
	Raw      nessusRaw
	Metadata Metadata
	Hosts    []Host
}

func Parse

func Parse(r io.Reader) (*NessusRun, error)

type Service

type Service struct {
	Port     int
	Protocol string
	Name     string
	TLS      bool
}

type Timing

type Timing struct {
	Start    time.Time
	End      time.Time
	Duration time.Duration
}

Timing contains all the timing related aspects of the scan.

Directories

Path Synopsis
cmd
nessplus command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL