Nmap Tutorial For Beginners

Hey guys, how are you. Today i will share to you Nmap tutorial for beginners. As we know, Nmap (Network Mapper) is a security scanner, originally written by Gordon Lyon, used to discover hosts and services on a computer network, thus building a "map" of the network.

And in this article i will share some basic commands, oh no..some helpful commands of nmap for pentester or cracker or hacker, whatever it is I don't care about it, this tutorial not about hacker, cracker,

it's about tech tips and tricks. Please understand me, don't think that this tutorial about crime, I just want to share some basic commands on Nmap, okay let's start it.

Nmap Tutorial For Beginners

Nmap Tutorial For Beginners

{!} Scan a single host or IP address

$ nmap <your target IP/host>

{!}  Scan Multiple host or IP address

$ nmap <your target ip/host> <your target ip/host>

{!} Read list of hosts/networks from a file (IPv4)

Create a text file, and fill with a list of target host/ip, e.g I have make a file on directory ~/Downloads/target.txt , so just use this command.
nmap -iL ~/Downloads/target.txt

{!} Turn on OS and version detection scanning script (IPv4)

>> Default Method:
nmap -A <your target ip/host>
>> With Ping Method:
nmap -v -A 192.168.1.1
>> With List Host on File Method:
nmap -A -iL /tmp/scanlist.txt

{!} Find out if a host/network is protected by a firewall

nmap -sA <your target ip/host>

{!} Excluding hosts/networks (IPv4)

nmap 192.168.1.0/24 --exclude 192.168.1.5
method for host lisr on file:
 nmap -iL /tmp/scanlist.txt --excludefile /tmp/exclude.txt

{!} Scan a host when protected by the firewall

nmap -PN <your target ip/host>

{!}  Scan an IPv6 host/address

explanation: -6 option to enable scanning on IPv6 host/ip address
here it is, the command:
nmap -6 <your target Ipv6 host address>

{!} Scan a network and find out which servers and devices are up and running

nmap -sP <your target host/IP>

{!} Fast Scan

nmap -F <your target host/IP>

{!} Scan specific port

nmap -p [port] [ip/host]
e.g $ nmap -p 80 target.co.xxx
or you can use this method
nmap -p1-65535 [target]
it's mean you will scan the target with specific port from 1 - 65535

{!} Scan Up Host

nmap -sn [ip target]

{!} Scan Host and save the output into specific file with format .xml

nmap -oX filename.xml [target ip]

{!} Scan Host and save the output into specific file with format .txt (ScriptKiddies mode)

nmap -oS filename.txt [target ip]

{!} Scan Host and print the network interface of target

nmap --iflist [target ip]