secretfinder

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadURLsFromFile

func ReadURLsFromFile(filepath string) []string

Types

type Secret

type Secret struct {
	Name           string //Name of secret matched
	Description    string //Description of secret matched
	Regex          string //Regex pattern that matched secret
	FalsePositives []string
	Poc            string //POC check if secret is valid or not
}

func GetSecretRegexes

func GetSecretRegexes() []Secret

Define the GetSecretRegexes function to return a slice of all secret structs.

type SecretMatched

type SecretMatched struct {
	Secret Secret //Secret that was matched
	URL    string //URL where secret was found
	Match  string //Match string that matched
}

func CheckURLForSecrets

func CheckURLForSecrets(url string, secret Secret) []SecretMatched

func CheckURLs

func CheckURLs(urls []string, secrets []Secret, concurrency int, verbose bool, bar *progressbar.ProgressBar) []SecretMatched

Jump to

Keyboard shortcuts

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