Skip to content

Commit

Permalink
Update nmap.go to use HTTPS as well instead of HTTP only
Browse files Browse the repository at this point in the history
Noticed that it always prepends "http", even if HTTPS is enabled. Changed the code to prepend "https" whenever necessary.
  • Loading branch information
Mickdep authored and leonjza committed Oct 14, 2024
1 parent 2321e6c commit d837746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/readers/nmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (nr *NmapReader) urlsFor(target string, port int) []string {
}

if !nr.Options.NoHTTPS {
urls = append(urls, fmt.Sprintf("http://%s:%d", target, port))
urls = append(urls, fmt.Sprintf("https://%s:%d", target, port))
}

return urls
Expand Down

0 comments on commit d837746

Please sign in to comment.