Add subdomain enumeration bypass
This commit is contained in:
6
main.go
6
main.go
@@ -20,7 +20,11 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
port := domains[r.Host]
|
port, ok := domains[r.Host]
|
||||||
|
if !ok {
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
rDump, err := httputil.DumpRequest(r, true)
|
rDump, err := httputil.DumpRequest(r, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user