nessus

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Use:   "nessus",
	Short: "parses nessus file",
	Long: `parses nessus file, prints and logs hosts and plugin id data and optional additional modules.

Example Commands:
	gorecon nessus -n path/to/scan-results.nessus -o path/to/output-dir
	gorecon nessus --nessus-file path/to/scan-results.nessus --output path/to/output-dir
	gorecon nessus --nessus-file path/to/scan-results.nessus --output path/to/output-dir --testssl
	gorecon nessus --nessus-file path/to/scan-results.nessus --output path/to/output-dir --async-nmap
	gorecon nessus --nessus-file path/to/scan-results.nessus --output path/to/output-dir --stream-nmap
	gorecon nessus --nessus-file path/to/scan-results.nessus --output path/to/output-dir --nuclei
	gorecon nessus --nessus-file path/to/scan-results.nessus --output path/to/output-dir --enum4linux-ng
	gorecon nessus --nessus-file path/to/scan-results.nessus --output path/to/output-dir --sshaudit
`,
	Run: func(cmd *cobra.Command, args []string) {
		var err error
		opts := Options{}
		if err = opts.LoadFromCommand(cmd); err != nil {
			localio.LogFatalf("Could not load Command Opts: %v", err)
		}

		if err = os.MkdirAll(opts.nessusOptions.Output, 0750); err != nil {
			gologger.Fatal().Msgf("Error creating directory:  %s\n", err)
		}

		if err = nessus.Parse(&opts.nessusOptions); err != nil {
			localio.LogFatalf("Could not parse nessus file: %v", err)
		}

	},
}

Command represents the nessus command

Functions

This section is empty.

Types

type Options

type Options struct {
	// contains filtered or unexported fields
}

func (*Options) LoadFromCommand

func (opts *Options) LoadFromCommand(cmd *cobra.Command) error

Jump to

Keyboard shortcuts

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