We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9961d4 commit 2532c21Copy full SHA for 2532c21
runner/runner.go
@@ -10,6 +10,7 @@ import (
10
"io/ioutil"
11
"net/http"
12
"net/http/httputil"
13
+ "net/url"
14
"os"
15
"path"
16
"regexp"
@@ -416,7 +417,7 @@ func (r *Runner) RunEnumeration() {
416
417
protocol := r.options.protocol
418
// attempt to parse url as is
419
if r.options.NoFallbackScheme {
- if u, err := urlutil.Parse(t); err == nil {
420
+ if u, err := url.Parse(t); err == nil && (u.Scheme == httpx.HTTP || u.Scheme == httpx.HTTPS) {
421
protocol = u.Scheme
422
}
423
0 commit comments