CTF OSINT
Quick reference for OSINT CTF challenges. Each technique has a one-liner here; see supporting files for full details.
Prerequisites
Python packages (all platforms):
pip install shodan Pillow
Linux (apt):
apt install whois dnsutils nmap libimage-exiftool-perl imagemagick curl
macOS (Homebrew):
brew install whois bind nmap exiftool imagemagick curl
MCP servers (optional): Playwright MCP (microsoft/playwright-mcp) for browser-driven OSINT (JS-rendered pages, reverse-image/map flows) — see tools-mcp.md.
Additional Resources
- social-media.md - Twitter/X (user IDs, Snowflake timestamps, syndication API, memory.lol, Wayback CDX), Tumblr (blog checks, post JSON, avatars), BlueSky search + API, Unicode homoglyph steganography, Discord API, username OSINT (namechk, whatsmyname, Osint Industries), username metadata mining (postal codes), platform false positives, multi-platform chains, Strava fitness route OSINT
- geolocation-and-media.md - Image analysis, reverse image search (including Baidu for China), Google Lens cropped region search, reflected/mirrored text reading, geolocation techniques (railroad signs, infrastructure maps, MGRS), Google Plus Codes, EXIF/metadata, hardware identification, newspaper archives, IP geolocation, Google Street View panorama matching, What3Words micro-landmark matching, Google Maps crowd-sourced photo verification, Overpass Turbo spatial queries, music-themed landmark geolocation with key encoding
- web-and-dns.md - Google dorking (including TBS image filters), Google Docs/Sheets enumeration, DNS recon (TXT, zone transfers), Wayback Machine, FEC research, Tor relay lookups, GitHub repository analysis, Telegram bot investigation, WHOIS investigation (reverse WHOIS, historical WHOIS, IP/ASN lookup), fake service banner detection via nmap fingerprinting
- tools-mcp.md - Playwright MCP for OSINT: reading JS-rendered pages, screenshots, interactive reverse-image and map/Street View search flows, social media and Wayback snapshots, profile-API mining via
browser_network_requests (list) + browser_network_request part="response-body" (payload)
When to Pivot
- If you already have the files or packets locally and now need extraction or carving, switch to
/ctf-forensics.
- If the task becomes active exploitation of a live HTTP service, switch to
/ctf-web.
- If you uncover malware samples, beacons, or suspicious binaries during attribution, switch to
/ctf-malware.
Quick Start Commands
# DNS recon
dig +short -t txt target.com
dig +short -t cname target.com
dig +short -t mx target.com
dig -t txt target.com
dig axfr @ns.target.com target.com
whois target.com
# Image metadata
exiftool image.jpg
identify -verbose image.jpg | head -30
# Web archive
curl "https://web.archive.org/web/20230101*/target.com"
# Username lookup (site is browser-only — no JSON API; curl returns 403)
git clone https://github.com/WebBreacher/WhatsMyName
cd WhatsMyName/scripts/checker && python3 wmn_check.py --help # needs requests + playwright
# Shodan
shodan search "hostname:target.com"
shodan host <ip>
String Identification
- 40 hex chars -> SHA-1 (Tor fingerprint)
- 64 hex chars -> SHA-256
- 32 hex chars -> MD5
Twitter/X Account Tracking
- Persistent numeric User ID:
https://x.com/i/user/<id> works even after renames.
- Snowflake timestamps:
(id >> 22) + 1288834974657 = Unix ms.
- Wayback CDX, syndication API, memory.lol for historical data (Nitter is dead — do not use). See social-media.md.
Tumblr Investigation
- Blog check:
curl -sI for x-tumblr-user header. Avatar at /avatar/512. See social-media.md.
Username OSINT
Image Analysis & Reverse Image Search
- Google Lens (crop to region of interest), Google Images, TinEye, Yandex (faces). Check corners for visual stego. Twitter strips EXIF. See geolocation-and-media.md.
- Cropped region search: Isolate distinctive elements (shop signs, building facades) and search via Google Lens for better results than full-scene search. See geolocation-and-media.md.
- Reflected text: Flip mirrored/reflected text (water, glass) horizontally; search partial text with quoted strings. See geolocation-and-media.md.
Geolocation
- Railroad signs, infrastructure maps (OpenRailwayMap, OpenInfraMap), process of elimination. See geolocation-and-media.md.
- Street View panorama matching: Feature extraction + multi-metric image similarity ranking against candidate panoramas. Useful when challenge image is a crop of a Street View photo. See geolocation-and-media.md.
- Road sign OCR: Extract text from directional signs (town names, route numbers) to pinpoint road corridors. Driving side + sign style + script identify the country. See geolocation-and-media.md.
- Architecture + brand identification: Post-Soviet concrete = Russia/CIS; named businesses → search locations/branches → cross-reference with coastline/terrain. See geolocation-and-media.md.
- Music-themed landmark geolocation: Multiple images of music-related landmarks worldwide; each yields a piano key number encoding one flag character. Identify all locations first, then decode the key sequence. See geolocation-and-media.md.
MGRS Coordinates
- Grid format "4V FH 246 677" -> online converter -> lat/long -> Google Maps. See geolocation-and-media.md.
Google Plus Codes
- Format
XXXX+XXX (chars: 23456789CFGHJMPQRVWX). Drop a pin on Google Maps → Plus Code appears in details. Free, no API key needed. See geolocation-and-media.md.
Metadata Extraction
exiftool image.jpg # EXIF data
pdfinfo document.pdf # PDF metadata
mediainfo video.mp4 # Video metadata
Google Dorking
site:example.com filetype:pdf
intitle:"index of" password
Image TBS filters: Append &tbs=itp:face to Google Image URLs to filter for faces only (strips logos/banners). See web-and-dns.md.
Google Docs/Sheets
- Try
/export?format=csv, /pub, /gviz/tq?tqx=out:csv, /htmlview. See web-and-dns.md.
DNS Reconnaissance
dig -t txt subdomain.ctf.domain.com
dig axfr @ns.domain.com domain.com # Zone transfer
Always check TXT, CNAME, MX for CTF domains. See web-and-dns.md.
📎 Detailed content (full examples / references / data tables) has been split into reference.md in the same directory; use Read to load the relevant section on demand.
1---2name: ctf-osint3description: "CTF OSINT techniques: social-media geolocation, DNS records, username enumeration, reverse image search, Google dork, Wayback, Tor, hash and coordinate identification. Signals: ctf, osint, geolocation, reverse image search, dork."4zh-signals: "CTF OSINT 题技法:社媒地理定位、DNS 记录、用户名枚举、反向搜图、Google dork、Wayback、Tor、哈希与坐标识别。信号:ctf,osint,地理定位,反向搜图,dork。"5when-to-use: Provides open source intelligence techniques for CTF challenges. Use when gathering information from public sources, social media, geolocation, DNS records, username enumeration, reverse image search,6license: MIT7compatibility: Requires filesystem-based agent (Claude Code or similar) with bash, Python 3, and internet access for OSINT lookups.8allowed-tools: Bash Read Write Edit Glob Grep Task WebFetch WebSearch9metadata:10 source: https://skillmd.com/skills/dangeroussong/ctf-osint11 user-invocable: "false"12---1314# CTF OSINT1516Quick reference for OSINT CTF challenges. Each technique has a one-liner here; see supporting files for full details.1718## Prerequisites1920**Python packages (all platforms):**21```bash22pip install shodan Pillow23```2425**Linux (apt):**26```bash27apt install whois dnsutils nmap libimage-exiftool-perl imagemagick curl28```2930**macOS (Homebrew):**31```bash32brew install whois bind nmap exiftool imagemagick curl33```3435**MCP servers (optional):** Playwright MCP ([microsoft/playwright-mcp](https://github.com/microsoft/playwright-mcp)) for browser-driven OSINT (JS-rendered pages, reverse-image/map flows) — see tools-mcp.md.3637## Additional Resources3839- social-media.md - Twitter/X (user IDs, Snowflake timestamps, syndication API, memory.lol, Wayback CDX), Tumblr (blog checks, post JSON, avatars), BlueSky search + API, Unicode homoglyph steganography, Discord API, username OSINT (namechk, whatsmyname, Osint Industries), username metadata mining (postal codes), platform false positives, multi-platform chains, Strava fitness route OSINT40- geolocation-and-media.md - Image analysis, reverse image search (including Baidu for China), Google Lens cropped region search, reflected/mirrored text reading, geolocation techniques (railroad signs, infrastructure maps, MGRS), Google Plus Codes, EXIF/metadata, hardware identification, newspaper archives, IP geolocation, Google Street View panorama matching, What3Words micro-landmark matching, Google Maps crowd-sourced photo verification, Overpass Turbo spatial queries, music-themed landmark geolocation with key encoding41- web-and-dns.md - Google dorking (including TBS image filters), Google Docs/Sheets enumeration, DNS recon (TXT, zone transfers), Wayback Machine, FEC research, Tor relay lookups, GitHub repository analysis, Telegram bot investigation, WHOIS investigation (reverse WHOIS, historical WHOIS, IP/ASN lookup), fake service banner detection via nmap fingerprinting42- tools-mcp.md - Playwright MCP for OSINT: reading JS-rendered pages, screenshots, interactive reverse-image and map/Street View search flows, social media and Wayback snapshots, profile-API mining via `browser_network_requests` (list) + `browser_network_request part="response-body"` (payload)4344---4546## When to Pivot4748- If you already have the files or packets locally and now need extraction or carving, switch to `/ctf-forensics`.49- If the task becomes active exploitation of a live HTTP service, switch to `/ctf-web`.50- If you uncover malware samples, beacons, or suspicious binaries during attribution, switch to `/ctf-malware`.5152## Quick Start Commands5354```bash55# DNS recon56dig +short -t txt target.com57dig +short -t cname target.com58dig +short -t mx target.com59dig -t txt target.com60dig axfr @ns.target.com target.com61whois target.com6263# Image metadata64exiftool image.jpg65identify -verbose image.jpg | head -306667# Web archive68curl "https://web.archive.org/web/20230101*/target.com"6970# Username lookup (site is browser-only — no JSON API; curl returns 403)71git clone https://github.com/WebBreacher/WhatsMyName72cd WhatsMyName/scripts/checker && python3 wmn_check.py --help # needs requests + playwright7374# Shodan75shodan search "hostname:target.com"76shodan host <ip>77```7879## String Identification8081- 40 hex chars -> SHA-1 (Tor fingerprint)82- 64 hex chars -> SHA-25683- 32 hex chars -> MD58485## Twitter/X Account Tracking8687- Persistent numeric User ID: `https://x.com/i/user/<id>` works even after renames.88- Snowflake timestamps: `(id >> 22) + 1288834974657` = Unix ms.89- Wayback CDX, syndication API, memory.lol for historical data (Nitter is dead — do not use). See social-media.md.9091## Tumblr Investigation9293- Blog check: `curl -sI` for `x-tumblr-user` header. Avatar at `/avatar/512`. See social-media.md.9495## Username OSINT9697- [whatsmyname.app](https://whatsmyname.app) (~717 sites as of 2026-10; browser-only, no JSON API — for scripting use the [WebBreacher/WhatsMyName](https://github.com/WebBreacher/WhatsMyName) dataset), [namechk.com](https://namechk.com). Watch for platform false positives. See social-media.md.9899## Image Analysis & Reverse Image Search100101- Google Lens (crop to region of interest), Google Images, TinEye, Yandex (faces). Check corners for visual stego. Twitter strips EXIF. See geolocation-and-media.md.102- **Cropped region search:** Isolate distinctive elements (shop signs, building facades) and search via Google Lens for better results than full-scene search. See geolocation-and-media.md.103- **Reflected text:** Flip mirrored/reflected text (water, glass) horizontally; search partial text with quoted strings. See geolocation-and-media.md.104105## Geolocation106107- Railroad signs, infrastructure maps (OpenRailwayMap, OpenInfraMap), process of elimination. See geolocation-and-media.md.108- **Street View panorama matching:** Feature extraction + multi-metric image similarity ranking against candidate panoramas. Useful when challenge image is a crop of a Street View photo. See geolocation-and-media.md.109- **Road sign OCR:** Extract text from directional signs (town names, route numbers) to pinpoint road corridors. Driving side + sign style + script identify the country. See geolocation-and-media.md.110- **Architecture + brand identification:** Post-Soviet concrete = Russia/CIS; named businesses → search locations/branches → cross-reference with coastline/terrain. See geolocation-and-media.md.111- **Music-themed landmark geolocation:** Multiple images of music-related landmarks worldwide; each yields a piano key number encoding one flag character. Identify all locations first, then decode the key sequence. See geolocation-and-media.md.112113## MGRS Coordinates114115- Grid format "4V FH 246 677" -> online converter -> lat/long -> Google Maps. See geolocation-and-media.md.116117## Google Plus Codes118119- Format `XXXX+XXX` (chars: `23456789CFGHJMPQRVWX`). Drop a pin on Google Maps → Plus Code appears in details. Free, no API key needed. See geolocation-and-media.md.120121## Metadata Extraction122123```bash124exiftool image.jpg # EXIF data125pdfinfo document.pdf # PDF metadata126mediainfo video.mp4 # Video metadata127```128129## Google Dorking130131```text132site:example.com filetype:pdf133intitle:"index of" password134```135136**Image TBS filters:** Append `&tbs=itp:face` to Google Image URLs to filter for faces only (strips logos/banners). See web-and-dns.md.137138## Google Docs/Sheets139140- Try `/export?format=csv`, `/pub`, `/gviz/tq?tqx=out:csv`, `/htmlview`. See web-and-dns.md.141142## DNS Reconnaissance143144```bash145dig -t txt subdomain.ctf.domain.com146dig axfr @ns.domain.com domain.com # Zone transfer147```148149Always check TXT, CNAME, MX for CTF domains. See web-and-dns.md.150151> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.