Active Information Gathering


DNS Zone Transfer

dig axfr @<ns> <domain>
dnsenum <domain name>
fierce -d < domain name>

Host Discovery with nmap

nmap -sn 192.168.20.0/24 [ YOUR IP ADDRESS ]

Port Scanning with nmap

We can use nmap for various scans

Port Scan:

sudo nmap -Pn 192.168.9.24 [TARGET IP]

Specifying port range:

sudo nmap -p1-2600 192.168.9.24 -Pn

-p- --> to scan all 65535 ports
-p80 --> to only scan port 80
-p80,445 --> to only scan port number 80 and 445

Version Scan:

sudo nmap -sV 192.168.9.3 -Pn -v

-v for verbose
# this scan will basically give you the information regarding the versions of the particular Services

OS Detection:

sudo nmap -sV -O 192.168.9.3 -Pn -v

-O - This detects the OS of that particular service

Verbose / Limiting the speed of the scan:

sudo nmap -sV -T4 -v 192.168.9.3 -Pn

-T4 : it is the speed limit of the scan ; T3 < T4 < T5
-v : will give you the real time scan report on the screen

Script Scan:

sudo nmap -sV -T4 -v -sC 192.168.9.3 -Pn

-sC --> it will enable script scan
this will enumerate more details and also we can specify the scripts individually

Aggressive Scan

sudo nmap -A 192.168.9.2 -Pn

-A : This agressive scan will combine the Script , OS , Version scans
-A = -sC , -sV , -O

HOME : Satvik's Hacking Garden