Skip to content

DorkX

Go Reconnaissance & OSINT Dorking CLI

I built DorkX in Go as an open-source reconnaissance CLI for collecting and normalizing target URLs through search-engine dorking workflows. I designed it for security reconnaissance, OSINT, and target URL discovery.

khaled@recon:~$ ./dorkx -q "site:target.com"
khaled@recon:~$./dorkx -q "site:target.com" -o results.txt
[+] querying search engine index endpoints
[+] parsing query operators and pattern signatures
[+] collecting target URL candidates across indices
[+] normalizing and deduplicating unique URLs
✓ Sample output: 42 unique URLs collected — written to results.txt
Category
OSINT / Reconnaissance / CLI
Language
Go (Golang)
Platform
Linux
Repository
Open Source on GitHub

Executive Summary & OSINT Reconnaissance Purpose

Advanced search engine dorking is among the most lethal and effective passive reconnaissance techniques available to ethical hackers, security auditors, and OSINT researchers. By leveraging targeted search engine indexing directives (`site:`, `filetype:`, `inurl:`, `intitle:`), analysts can discover exposed administrator panels, public cloud storage buckets, environment configuration files, and unprotected API gateways without ever sending a packet to the target organization's perimeter.

However, executing these queries manually in a web browser is slow, clunky, and immediately triggers aggressive CAPTCHA challenges or IP rate-limiting. I built DorkX in Go to transform passive search-engine dorking into a rapid, automated, and pipelined command-line workflow.

< 2.5s
Average Batch Query & Normalization Latency
100%
Automated Tracking & Query Parameter Stripping
Zero
External Runtime or Python Dependencies Required
Unix Ready
Flawlessly Chained with Grep, Awk, Httpx & Nuclei

Architecture & URL Normalization Engine

DorkX was architected with a modular pipeline structure designed to parse search engine result DOM structures, extract destination URLs, strip search tracking redirect wrappers (such as Google `/url?q=` redirects), and deduplicate candidate targets in memory before emitting clean lines to stdout.

Language & Binary
Compiled Go Static Executable (Cross-Platform)
Extraction Logic
Compiled Regex Extraction with Canonical URL Unescaping
Rate Mitigation
Randomized Jitter Delays & Rotating User-Agent Headers
Pipeline Compatibility
Stdout Line Streaming for Instant Downstream Processing

Unlike legacy Python dorking scripts that break whenever search engine markup changes or require complex headless browser drivers, DorkX uses direct HTTP stream parsing and flexible fallback regexes, making it exceptionally lightweight and resilient.

Core Capabilities & Command-Line Features

Automated Search Engine Query Execution
Supports complex compound search syntax, Boolean logic (`AND`, `OR`, `-`), exact quotation matching, and multi-domain scope constraints.
Intelligent URL Normalization & Deduplication
Decodes obfuscated tracking parameters, normalizes port and schema anomalies, and eliminates redundant target paths using in-memory hash sets.
Anti-Detection Pacing & Header Rotation
Randomizes inter-request delay buffers (`--delay`) and cycles through authentic browser headers to avoid triggering heuristic query blocks.
Deterministic File & Stdout Export
Outputs clean plaintext lists (`-o results.txt`) or streams directly to downstream security audit tools like `reconpipeline`, `httpx`, or `nuclei`.

Ethical Guidelines & Authorized Reconnaissance

DorkX operates strictly as a passive reconnaissance facilitator:

  • Zero packets are transmitted to target servers; all discovery queries are conducted through publicly available search engine index caches.
  • Designed specifically for authorized defensive security reviews, external attack surface management (ASM), and bug bounty assessments.
  • Helps organizations discover their own accidental exposures (such as leaked `.env` credentials or open S3 buckets) before malicious threat actors exploit them.

Technologies Used

Go (Golang)OSINTReconnaissanceCLI ToolingLinuxURL ProcessingRegex Parsing