Projects STRLCPY metabigor Commits 1f878e19
🤬
  • Increase default timeout for chrome headless

  • Loading...
  • j3ssie committed 4 years ago
    1f878e19
    1 parent d1a74854
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■
    cmd/root.go
    skipped 35 lines
    36 36   RootCmd.PersistentFlags().StringVar(&options.Scan.TmpOutput, "tmp", "", "Temp Output folder")
    37 37   RootCmd.PersistentFlags().StringVar(&options.Proxy, "proxy", "", "Proxy for doing request")
    38 38   RootCmd.PersistentFlags().IntVarP(&options.Concurrency, "concurrency", "c", 5, "concurrency")
    39  - RootCmd.PersistentFlags().IntVar(&options.Timeout, "timeout", 30, "timeout")
     39 + RootCmd.PersistentFlags().IntVar(&options.Timeout, "timeout", 40, "timeout")
    40 40   RootCmd.PersistentFlags().StringVarP(&options.Input, "input", "i", "-", "input as a string, file or from stdin")
    41 41   RootCmd.PersistentFlags().StringVarP(&options.Output, "output", "o", "out.txt", "output name")
    42 42   RootCmd.PersistentFlags().BoolVar(&options.Debug, "debug", false, "Debug")
    skipped 40 lines
  • ■ ■ ■ ■ ■ ■
    modules/scan.go
    skipped 75 lines
    76 76   tmpFile, _ = ioutil.TempFile(nmapOutput, fmt.Sprintf("nmap-%v-*", core.StripPath(input)))
    77 77   }
    78 78   nmapOutput = tmpFile.Name()
    79  - nmapCmd := fmt.Sprintf("sudo nmap -sSV -p %v %v -T4 -oA %v", ports, input, nmapOutput)
     79 + nmapCmd := fmt.Sprintf("sudo nmap -sSV -p %v %v -T4 --open -oA %v", ports, input, nmapOutput)
    80 80   if options.Scan.NmapScripts != "" {
    81  - nmapCmd = fmt.Sprintf("sudo nmap -sSV -p %v %v -T4 --script %v -oA %v", ports, input, options.Scan.NmapScripts, nmapOutput)
     81 + nmapCmd = fmt.Sprintf("sudo nmap -sSV -p %v %v -T4 --open --script %v -oA %v", ports, input, options.Scan.NmapScripts, nmapOutput)
    82 82   }
    83 83   core.DebugF("Execute: %v", nmapCmd)
    84 84   command := []string{
    skipped 119 lines
Please wait...
Page is in error, reload to recover