DEV Community

Ritik Singh
Ritik Singh

Posted on

Go + Cybersecurity: My First Recon Scanner Project

gorecon - Go-Based Web Recon Scanner

gorecon is a lightweight, fast, and extensible web reconnaissance tool built in Go. It performs network and HTTP probing on target domains to assist with security testing, bug bounty hunting, and red team recon.


πŸš€ Features

  • πŸ”Ž Port probing on common web service ports (80, 443, 8080, etc.)
  • 🌐 DNS CNAME lookup for subdomain analysis
  • 🧠 Foundation for subdomain takeover detection (coming soon)
  • ⚑ Highly concurrent and fast (future enhancement)
  • πŸ“„ JSON output (planned)
  • πŸ”§ Easily extendable with additional scanning modules

🧰 Technologies Used

Task Go Package
HTTP requests net/http
Port scanning net.DialTimeout
DNS lookups net.LookupCNAME
CLI flags flag
Concurrency Goroutines and Channels (planned)

🏁 Getting Started

Prerequisites

  • Go 1.20+ installed

Clone and Build

git clone https://github.com/iamritikbhardwaj/gorecon.git
cd gorecon
go build -o gorecon main.go
Enter fullscreen mode Exit fullscreen mode

Usage

Create a text file with target domains or IP addresses, one per line. For example:

example.com
google.com
unclaimed.github.io
Enter fullscreen mode Exit fullscreen mode

Run gorecon:

./gorecon -targets domains.txt
Enter fullscreen mode Exit fullscreen mode

Sample output:

[DNS] example.com -> CNAME: example.com.
[PORT SCAN] Scanning example.com...
[OPEN] example.com:80
[OPEN] example.com:443


βš™οΈ CLI Flags

Flag Description Default
-targets Path to file with target domains/IPs Required
-timeout Timeout for network requests (seconds) 5
-v Enable verbose logging false

πŸ“š Future Roadmap

  • βœ… DNS CNAME Lookup
  • βœ… Port scanning on common web ports
  • πŸ”² Concurrency for faster scans
  • πŸ”² HTTP status and header enumeration
  • πŸ”² Subdomain takeover detection
  • πŸ”² Directory brute forcing with wordlists
  • πŸ”² JSON output and report generation
  • πŸ”² Webhooks and dashboard integration

πŸ“ License

MIT License


✍️ Author

Ritik Singh – Go enthusiast and security engineer in training

πŸ“‚ GitHub: @iamritikbhardwaj


πŸ“š Related Resources


Top comments (0)