You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const DEFAULT_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36 github.com/surface-security/scanner-httpx"
func main() {
s := scanner.Scanner{Name: "httpx"}
options := s.BuildOptions()
userAgent := flag.String("ua", DEFAULT_USER_AGENT, "Choose user-agent - use empty value for a random UA")
scanner.ParseOptions(options)
err := os.MkdirAll(options.Output, 0755)
if err != nil {
log.Fatalf("%v", err)
}
// pass temporary file to binary instead of final path, as only finished files should be placed there