Reconnaissance

Passive Reconnaissance

Passive reconnaissance is the act of gathering information about your target without directly interacting with the target. There is a lot of information that you can obtain, including employee names and emails, servers, hostnames, even employee images or badge photos.

Passive Recon Tools

There are many tools out there, but here are some to get started.

site:example.com -site:www.example.com
site:example.com filetype:pdf
site:example.com inurl:etc -intext:etc ext:passwd

Active Reconnaissance

nmap

# default scripts, version detection
nmap -sC -sV $IP

# all 65535 ports
nmap -p- $IP

# search for hosts on subnet
nmap -sn $IP/24

Reference: Nmap Man Page

smbmap

Samba Share Enumerator

# enumerate samba $IP with guest credentials
smbmap -H $IP -u guest

dig

DNS lookup utility

# lookup zone transfer
dig axfr @$IP $HOST