Hacking/Security - NMAP Network Mapping Introduction
Find code and diagrams at: www.EliTheComputerGuy.com
NMAP allows you to map your network from the command line and output the results into a text format.
Make sure to run NMAP as root, or with sudo command. Root provides MAC Address and Vendor Information.
-A — Aggressive scan tries to find OS
-F — Scans only most popular 100 ports
-v — verbose output for command line
-oN — Outputs to Human Readable Text File
-oX — Outputs to XML file for Parsing
Examples:
sudo nmap -v 192.168.1.1
sudo nmap 192.168.1.0/24 -oN /home/username/nmap.txt
sudo nmap -A -F 192.168.1.0/24 -oX /home/username/nmap.xml