scanner

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: GPL-3.0 Imports: 2 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointMatched

type EndpointMatched struct {
	Parameters []Parameter
	URL        string
}

EndpointMatched struct. Parameters = a list of parameters in a particular endpoint. Url = url (aka endpoint).

func RemovDuplicateEndpoints

func RemovDuplicateEndpoints(input []EndpointMatched) []EndpointMatched

RemovDuplicateEndpoints removes duplicate endpoints found.

type Error

type Error struct {
	ErrorName string
	Regex     regexp.Regexp
}

Error struct. ErrorName = the name that identifies the error. Regex = The regular expression to be matched.

func GetErrorRegexes

func GetErrorRegexes() []Error

GetErrorRegexes returns all the error structs.

type ErrorMatched

type ErrorMatched struct {
	Error Error
	URL   string
	Match string
}

ErrorMatched struct. Error = Error struct. Url = url in which the error is found. Match = the string matching the regex.

func RemoveDuplicateErrors

func RemoveDuplicateErrors(input []ErrorMatched) []ErrorMatched

RemoveDuplicateErrors removes duplicates from Errors found.

type FileType

type FileType struct {
	Extension string `json:"extension,omitempty"`
	Severity  int    `json:"severity,omitempty"`
}

FileType struct. Extension = the file extension (doc, txt ..etc..). Severity = the 'importance' of the file found. Higher is better.

func GetExtensions

func GetExtensions() []FileType

GetExtensions returns all the extension structs.

type FileTypeMatched

type FileTypeMatched struct {
	Filetype FileType
	URL      string
}

FileTypeMatched struct. Filetype = Filetype struct. Url = url of the file found.

func RemoveDuplicateExtensions

func RemoveDuplicateExtensions(input []FileTypeMatched) []FileTypeMatched

RemoveDuplicateExtensions removes duplicates from Extensions found.

type Info

type Info struct {
	Name  string
	Regex regexp.Regexp
}

Info struct. Name = the name that identifies the information. Regex = The regular expression to be matched.

func GetInfoRegexes

func GetInfoRegexes() []Info

GetInfoRegexes returns all the info structs.

type InfoMatched

type InfoMatched struct {
	Info  Info
	URL   string
	Match string
}

InfoMatched struct. Info = Info struct. Url = url in which the information is found. Match = the string matching the regex.

func RemoveDuplicateInfos

func RemoveDuplicateInfos(input []InfoMatched) []InfoMatched

RemoveDuplicateInfos removes duplicates from Infos found.

type Parameter

type Parameter struct {
	Parameter string   `json:"name"`
	Attacks   []string `json:"attacks"`
}

Parameter struct. Parameter = the name of the parameter. Attacks = Possible attacks.

func GetJuicyParameters

func GetJuicyParameters() []Parameter

GetJuicyParameters returns juicy parameters and their possible attacks.

type Secret

type Secret struct {
	Name           string
	Description    string
	Regex          regexp.Regexp
	FalsePositives []string
	Poc            string
}

Secret struct. Name = the name that identifies the secret. Description. Regex = The regular expression matching the secret. FalsePositives = A list of known false positives. PoC = cli command to check if the secret is valid or not.

func GetSecretRegexes

func GetSecretRegexes() []Secret

GetSecretRegexes returns a slice of all the secret structs.

type SecretMatched

type SecretMatched struct {
	Secret Secret
	URL    string
	Match  string
}

SecretMatched struct. Secret = The secret matched (struct). Url = url in which is present the secret. Match = the string matching the regex.

func RemoveDuplicateSecrets

func RemoveDuplicateSecrets(input []SecretMatched) []SecretMatched

RemoveDuplicateSecrets removes duplicates from secrets found.

Jump to

Keyboard shortcuts

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