Files
AetherForge 49c24e611c
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Add recon form fingerprint library and SSRF canary mode.
Score crawl inputs by SSRF-prone field names and register ping-back canaries for operator paste confirmation.
2026-06-07 12:23:11 -07:00

18 lines
408 B
Go

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
}