Projects STRLCPY metabigor Commits 65f0aadc
🤬
  • Small fix on nmap when have -A options

  • Loading...
  • j3ssie committed 4 years ago
    65f0aadc
    1 parent a69f7c1e
  • ■ ■ ■ ■ ■ ■
    modules/scan.go
    skipped 94 lines
    95 95   nmapOutput = tmpFile.Name()
    96 96   
    97 97   // build nmap command
     98 + if options.Scan.All {
     99 + options.Scan.NmapTemplate = "sudo nmap -sSV -p {{.ports}} -iL {{.input}} {{.script}} -T4 --open -oA {{.output}}"
     100 + }
    98 101   nmapCommand := make(map[string]string)
    99 102   nmapCommand["output"] = nmapOutput
    100 103   nmapCommand["ports"] = ports
    skipped 4 lines
    105 108   nmapCommand["script"] = ""
    106 109   }
    107 110   nmapCmd := ResolveData(options.Scan.NmapTemplate, nmapCommand)
     111 + 
    108 112   //
    109 113   //nmapCmd := fmt.Sprintf("sudo nmap -sSV -p %v %v -T4 --open -oA %v", ports, input, nmapOutput)
    110 114   //if options.Scan.NmapScripts != "" {
    skipped 128 lines
Please wait...
Page is in error, reload to recover