Documentation ¶
Index ¶
- Constants
- func HostsInCIDR(cidr string) (ips []string, err error)
- func PortsFromString(ports string) ([]int, error)
- func SafeFileName(str string) string
- func ScreenshotPath(destination string, url *url.URL, path string) string
- func SliceContainsInt(s []int, e int) bool
- func SliceContainsString(s []string, e string) bool
- func TruncateString(s string, l int) string
- type Options
- type Pagination
- type PaginationPage
- type Processor
Constants ¶
View Source
const ( PortsSmall = "80,443,8080,8443" PortsMedium = PortsSmall + ",81,90,591,3000,3128,8000,8008,8081,8082,8834,8888,7015,8800,8990,10000" PortsLarge = PortsMedium + ",300,2082,2087,2095,4243,4993,5000,7000,7171,7396,7474,8090,8280,8880,9443" )
Contains port collections for scanning
Variables ¶
This section is empty.
Functions ¶
func HostsInCIDR ¶
HostsInCIDR returns the IP's from a provided CIDR
func PortsFromString ¶
PortsFromString returns a slice of ports parsed from a string
func SafeFileName ¶
SafeFileName return a safe string that can be used in file names
func ScreenshotPath ¶
ScreenshotPath determines a full path and file name for a screenshot image
func SliceContainsInt ¶
SliceContainsInt checks if a slice has an int
func SliceContainsString ¶
SliceContainsString checks if a slice has a string
func TruncateString ¶
TruncateString truncates a string for l characters
Types ¶
type Options ¶
type Options struct { // Logging Logger *zerolog.Logger Debug bool DisableLogging bool // Screenshots ScreenshotPath string // Generic options Threads int NoHTTPS bool NoHTTP bool ServerAddr string BasePath string // Server command AllowInsecureURIs bool // File command File string // Scan command ScanCidr []string ScanCidrFile string ScanRandom bool ScanPorts string PortsSmall bool PortsMedium bool PortsLarge bool // Single ScreenshotFileName string // Nessus NessusPluginContains []string NessusServiceNames []string NessusPluginOutput []string NessusPorts []int // Nmap NmapFile string NmapService []string NmapServiceContains string NmapPorts []int NmapScanHostnames bool NmapOpenPortsOnly bool // Report List ReportJSON bool ReportCSV bool PerceptionSort bool // Merge MergeDBs []string MergeSourcePath string MergeOutputDB string }
Options contains all of the gowitness options
func (*Options) PrepareScreenshotPath ¶
PrepareScreenshotPath prepares the path to save screenshots in
type Pagination ¶
Pagination has options for a Page
func (*Pagination) Page ¶
func (p *Pagination) Page(data interface{}) (*PaginationPage, error)
Page pages a dataset
type PaginationPage ¶
type PaginationPage struct { Count int64 Pages int Records interface{} Offset int Range int Limit int Page int PrevPage int PrevPageRange []int NextPage int NextPageRange []int Ordered bool }
PaginationPage is a sinlge, paginated page
Click to show internal directories.
Click to hide internal directories.