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 ¶
Click to show internal directories.
Click to hide internal directories.