Created
October 19, 2017 00:07
-
-
Save ss23/4cf91cd9a0602759a182a0ebccc71461 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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