app

package
v0.0.0-...-0a870c4 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package app ...

Package app ...

Package app ...

Package app ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Scan *scanner.Scanner
	// contains filtered or unexported fields
}

Application is our structure to hold data related to the program and its configuration.

func New

func New() *Application

New creates and returns a new Application with a default scanner initialized

func (*Application) CheckFlags

func (a *Application) CheckFlags(flags *Flags) error

CheckFlags checks the input flags that were given and sets up the application accordingly

type Flags

type Flags struct {
	// The URL to scan for CORS misconfiguration
	URL string
	// The headers to include in the request
	Header string
	// Additional methods
	Method string
	// A text file with a list of domains to scan for CORS misconfiguration
	File string
	// Number of threads to use for the scan
	Threads int
	// Save the results to a JSON file. Always saves as gocors/results/domain_TIMESTAMP.json
	Output string
	// Set requests timeout
	Timeout string
	// Use a HTTP address as a proxy
	Proxy string
	// Enable the UI for realtime results and requests
	Verbose bool
}

Flags holds our command line argument flag values for later parsing

Jump to

Keyboard shortcuts

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