Skip to content

Instantly share code, notes, and snippets.

@ss23
Created October 19, 2017 00:07
Show Gist options
  • Select an option

  • Save ss23/4cf91cd9a0602759a182a0ebccc71461 to your computer and use it in GitHub Desktop.

Select an option

Save ss23/4cf91cd9a0602759a182a0ebccc71461 to your computer and use it in GitHub Desktop.
nmapOutput, err := exec.Command("nmap",
"-sV", // Get version information
"-oA", outputPrefix, // Save all versions as output
"-oG", "-", // Output Greppable format to stdout
"-Pn", // Skip Ping scan to force scanning everything
"-p-", // Scan all ports
"-v", // Increase verbosity (shows down hosts now)
scanTarget).Output()
nmapOutput, err := exec.Command("nmap",
"-sV", // Get version information
"-oA", outputPrefix, // Save all versions as output
"-oG", "-", // Output Greppable format to stdout
"-Pn", // Skip Ping scan to force scanning everything
"-p-", // Scan all ports
"-v", // Increase verbosity (shows down hosts now)
scanTarget).Output()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment