Passive reconnaissance is the process of collecting intelligence about a target without directly interacting with it. This room introduces the passive vs active recon distinction, then focuses on practical data sources such as WHOIS, DNS lookups, DNSDumpster, and Shodan.
Core idea: passive recon should not alert the target because you are using public records and third-party data sources instead of touching the target systems directly.
Reconnaissance is the information-gathering phase before exploitation. It can be divided into two categories:
Examples: querying public DNS is passive; connecting to a target’s HTTP, FTP, or SMTP service is active and may trigger logs or legal issues without authorization.
WHOIS is a TCP/43 protocol used to retrieve domain registration details from registrar-maintained records.
whois tryhackme.com
Why it matters: WHOIS can reveal domain ownership patterns, contact info, registrar relationships, and infrastructure clues that point to new attack surface.
nslookup is a simple way to query public DNS data without alerting the target.
Common record types:
nslookup -type=A tryhackme.com 1.1.1.1
nslookup -type=MX tryhackme.com
nslookup -type=TXT tryhackme.com
Practical value: A/AAAA records reveal target IPs, MX records reveal mail providers, and TXT records may expose SPF, verification tokens, or other useful metadata.
dig provides more detailed DNS output than nslookup, including useful fields such as TTL by default.
dig tryhackme.com A
dig tryhackme.com MX
dig @1.1.1.1 tryhackme.com MX
dig tryhackme.com TXT
Difference from nslookup: both are useful, but dig is usually preferred when you want richer DNS detail and cleaner scripting-friendly output.
DNS lookups by themselves will not enumerate subdomains. DNSDumpster helps by aggregating DNS information into a broader picture of the target’s infrastructure.
Why this matters: forgotten subdomains like blog, wiki, mail, or webmail often expose weaker systems than the main domain and can become the most interesting target during later testing.
Shodan indexes internet-connected devices and services. Instead of searching web pages, it searches exposed hosts and banners.
Best use case: search for the domain or IPs you discovered via DNS and see what Shodan already knows about exposed infrastructure without directly touching the target yourself.
A practical passive recon flow from this room looks like this:
whois to learn registrar, dates, and name servers.nslookup or dig to query A, MX, and TXT records.Goal: build a target map before any active probing. This keeps the first active steps narrow, intentional, and less noisy.
whois tryhackme.com
nslookup -type=A tryhackme.com
nslookup -type=MX tryhackme.com 1.1.1.1
nslookup -type=TXT tryhackme.com
dig tryhackme.com A
dig @1.1.1.1 tryhackme.com MX
dig tryhackme.com TXT