Nmap Notes - Zacham17/my-tech-journal GitHub Wiki
Nmap
Nmap is a scanning tool that can scan hosts on a network for open ports, OS, and much more
Uses
Reference Link: https://nmap.org/book/man-host-discovery.html
-p
: Specifies the port number. Can specify multiple ports or a range of ports-Pn
: No ping in made for host discovery when this tag is used--traceroute
: traces the path to the host-O
: Attempts to determine the operating system of the host scanned-sV
: Determines services running and their version-A
: Enables OS detection, version detection, script scanning, and traceroute
Nmaptocsv
- Install
nmaptocsv
using the commandssudo apt update
,sudo apt install python3-pip
, andsudo pip install nmaptocsv
in that order. - An Nmap scan can be run and output to a file in a grepable format, to late be used with
nmaptocsv
.- Example Use: The command
nmaptocsv -i top1000.txt -d ","
is used to output the contents of top1000.txt in a csv format.
- Example Use: The command