Add recon form fingerprint library and SSRF canary mode.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Score crawl inputs by SSRF-prone field names and register ping-back canaries for operator paste confirmation.
This commit is contained in:
17
server/internal/recon/canary.go
Normal file
17
server/internal/recon/canary.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package recon
|
||||
|
||||
import "strings"
|
||||
|
||||
func BuildSSRfCanaryURL(base, scanID string) string {
|
||||
base = strings.TrimSpace(base)
|
||||
if base == "" {
|
||||
base = "https://localhost"
|
||||
}
|
||||
if strings.HasPrefix(base, "http://") {
|
||||
base = "https://" + strings.TrimPrefix(base, "http://")
|
||||
}
|
||||
if !strings.HasPrefix(base, "https://") {
|
||||
base = "https://" + base
|
||||
}
|
||||
return strings.TrimRight(base, "/") + "/recon/ping/" + scanID
|
||||
}
|
||||
Reference in New Issue
Block a user