mirror of
https://github.com/edoardottt/cariddi.git
synced 2026-09-30 13:34:57 +02:00
Update secrets.go
This commit is contained in:
+10
-1
@@ -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{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user