Update secrets.go

This commit is contained in:
gilfoyle97
2022-02-11 19:55:04 +01:00
committed by GitHub
parent 13c146ddeb
commit c5d32b2e9a
+10 -1
View File
@@ -24,6 +24,11 @@ along with this program. If not, see http://www.gnu.org/licenses/.
package scanner
//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
type Secret struct {
Name string
Description string
@@ -33,13 +38,17 @@ type Secret struct {
}
//SecretMatched struct
// Secret = The secret matched (struct)
// Url = url in which is present the secret
// Match = the string matching the regex
type SecretMatched struct {
Secret Secret
Url string
Match string
}
//GetSecretRegexes returns all the secret regexes
//GetSecretRegexes returns a slice of all
//the secret structs
func GetSecretRegexes() []Secret {
var regexes = []Secret{
{