Saturday, September 23, 2017

How to use nmap in centos

1. Make sure if you have nmap in your system. perhaps check your nmap version

          #nmap --version

 yet no nmap available to your system. you need to install

          #yum install nmap

         #nmap localhost


-v giving more detailed information about the open ports
-A enables OS detection and version

 #namp -A localhost


-p denotes port range

 #nmap -p 10-15 localhost


Network scan
#nmap -sP 192.168.1.10-100

Scanning the Network for live host -v is increase the verbosity of the ping
#nmap -sP 192.168.1.10-100 -v

TCP scanning
root@kaliboobal:~# nmap -sT 192.168.1.90

Starting Nmap 6.49BETA4 ( https://nmap.org ) at 2015-11-28 09:46 IST
Nmap scan report for 192.168.1.90
Host is up (0.0016s latency).
Not shown: 985 closed ports
PORT      STATE SERVICE
21/tcp    open  ftp
80/tcp    open  http
135/tcp   open  msrpc
139/tcp   open  netbios-ssn
443/tcp   open  https
445/tcp   open  microsoft-ds
902/tcp   open  iss-realsecure
912/tcp   open  apex-mesh
3389/tcp  open  ms-wbt-server
49152/tcp open  unknown
49153/tcp open  unknown
49154/tcp open  unknown
49155/tcp open  unknown
49156/tcp open  unknown
49157/tcp open  unknown
MAC Address: 08:2E:5F:1E:EC:F7 (Hewlett Packard)

Nmap done: 1 IP address (1 host up) scanned in 2.03 seconds

SYN stealth scan
# nmap -sS 192.168.1.90

Filtered scan
root@kaliboobal:~# nmap -sF 192.168.1.90

Starting Nmap 6.49BETA4 ( https://nmap.org ) at 2015-11-28 09:52 IST
Nmap scan report for 192.168.1.90
Host is up (0.00017s latency).
All 1000 scanned ports on 192.168.1.90 are closed
MAC Address: 08:2E:5F:1E:EC:F7 (Hewlett Packard)


No comments:

Post a Comment