mirror of
https://github.com/edoardottt/cariddi.git
synced 2026-09-06 01:37:45 +02:00
linter (lll)
This commit is contained in:
+8
-4
@@ -85,15 +85,19 @@ func ScanFlag() Input {
|
||||
insecurePtr := flag.Bool("insecure", false, "Ignore invalid HTTPS certificates")
|
||||
|
||||
secretsPtr := flag.Bool("s", false, "Hunt for secrets.")
|
||||
secretsFilePtr := flag.String("sf", "", "Use an external file (txt, one per line) to use custom regexes for secrets hunting.")
|
||||
secretsFilePtr := flag.String("sf", "", "Use an external file (txt, one per line)"+
|
||||
" to use custom regexes for secrets hunting.")
|
||||
|
||||
endpointsPtr := flag.Bool("e", false, "Hunt for juicy endpoints.")
|
||||
endpointsFilePtr := flag.String("ef", "", "Use an external file (txt, one per line) to use custom parameters for endpoints hunting.")
|
||||
endpointsFilePtr := flag.String("ef", "", "Use an external file (txt, one per line)"+
|
||||
" to use custom parameters for endpoints hunting.")
|
||||
|
||||
extensionsPtr := flag.Int("ext", 0, "Hunt for juicy file extensions. Integer from 1(juicy) to 7(not juicy).")
|
||||
|
||||
headersPtr := flag.String("headers", "", "Use custom headers for each request E.g. -headers \"Cookie: auth=yes;;Client: type=2\".")
|
||||
headersFilePtr := flag.String("headersfile", "", "Read from an external file custom headers (same format of headers flag).")
|
||||
headersPtr := flag.String("headers", "", "Use custom headers for each request "+
|
||||
"E.g. -headers \"Cookie: auth=yes;;Client: type=2\".")
|
||||
headersFilePtr := flag.String("headersfile", "", "Read from an external file "+
|
||||
"custom headers (same format of headers flag).")
|
||||
|
||||
errorsPtr := flag.Bool("err", false, "Hunt for errors in websites.")
|
||||
|
||||
|
||||
+2
-1
@@ -67,7 +67,8 @@ func AppendOutputToHTML(output string, status string, filename string, isLink bo
|
||||
statusColor = status
|
||||
}
|
||||
|
||||
if _, err := file.WriteString("<li><a target='_blank' href='" + output + "'>" + output + "</a> " + statusColor + "</li>"); err != nil {
|
||||
if _, err := file.WriteString("<li><a target='_blank' href='" + output + "'>" + output +
|
||||
"</a> " + statusColor + "</li>"); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
} else {
|
||||
|
||||
+2
-1
@@ -142,7 +142,8 @@ func GetErrorRegexes() []Error {
|
||||
{
|
||||
"SQLite error",
|
||||
[]string{
|
||||
`(?i)(SQLite\/JDBCDriver|SQLite.Exception|System.Data.SQLite.SQLiteException|Warning.*sqlite_.*|Warning.*SQLite3::|\[SQLITE_ERROR\])`},
|
||||
`(?i)(SQLite\/JDBCDriver|SQLite.Exception|System.Data.SQLite.SQLiteException` +
|
||||
`|Warning.*sqlite_.*|Warning.*SQLite3::|\[SQLITE_ERROR\])`},
|
||||
},
|
||||
}
|
||||
return regexes
|
||||
|
||||
+2
-1
@@ -57,7 +57,8 @@ func GetInfoRegexes() []Info {
|
||||
{
|
||||
"Internal IP address",
|
||||
[]string{
|
||||
`((172\.\d{1,3}\.\d{1,3}\.\d{1,3})|(192\.168\.\d{1,3}\.\d{1,3})|(10\.\d{1,3}\.\d{1,3}\.\d{1,3})|([fF][eE][89aAbBcCdDeEfF]::))`},
|
||||
`((172\.\d{1,3}\.\d{1,3}\.\d{1,3})|(192\.168\.\d{1,3}\.\d{1,3})|` +
|
||||
`(10\.\d{1,3}\.\d{1,3}\.\d{1,3})|([fF][eE][89aAbBcCdDeEfF]::))`},
|
||||
},
|
||||
{
|
||||
"IPv4 address",
|
||||
|
||||
+2
-1
@@ -323,7 +323,8 @@ func GetSecretRegexes() []Secret {
|
||||
{
|
||||
"AWS cognito pool",
|
||||
"AWS Cognito pool",
|
||||
`(us-east-1|us-east-2|us-west-1|us-west-2|sa-east-1):[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}`,
|
||||
`(us-east-1|us-east-2|us-west-1|us-west-2|sa-east-1):[0-9A-Za-z]{8}-[0-9A-Za-z]{4}` +
|
||||
`-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}`,
|
||||
[]string{},
|
||||
"?",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user