report

package
v2.7.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cobra.Command{
	Use:   "report",
	Short: "generates simple HTML report table from exported burp retire.js issues xml file",
	Long: `generates simple HTML report table from burp issues file. Export highlighted issues in Burp to xml file. Mainly designed for vulnerable JS components. Based around retire.js issue finding format.

Example Commands:
	gorecon report --burp -b path/to/burp-issues-file.xml -o path/to/output-dir
`,
	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.reportOptions.Output, 0750); err != nil {
			gologger.Fatal().Msgf("Error creating directory:  %s\n", err)
		}

		if err = report.GenerateReports(&opts.reportOptions); err != nil {
			localio.LogFatalf("Could not generate reports: %v", err)
		}

	},
}

Command represents the report 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