Skip to content

Instantly share code, notes, and snippets.

@tfentonz
Created January 20, 2022 03:34
Show Gist options
  • Save tfentonz/2fdccc01daf08600329be062e0e7de9d to your computer and use it in GitHub Desktop.
Save tfentonz/2fdccc01daf08600329be062e0e7de9d to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# TIMING AND PERFORMANCE:
# Options which take <time> are in seconds, or append 'ms' (milliseconds),
# 's' (seconds), 'm' (minutes), or 'h' (hours) to the value (e.g. 30m).
# -T<0-5>: Set timing template (higher is faster)
# OUTPUT:
# -oN/-oX/-oS/-oG <file>: Output scan in normal, XML, s|<rIpt kIddi3,
# and Grepable format, respectively, to the given filename.
# -v: Increase verbosity level (use -vv or more for greater effect)
# MISC:
# -A: Enable OS detection, version detection, script scanning, and traceroute
nmap -T4 -A -v -oG nmap.out -p T:111,135,139,1433,2048,22,3389,443,445,80,8080,8443 10.0.0.0/16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment