Ethical Hacking Series, Part 11. In Part 10 we looked at how web applications are built. Now we start finding them. This part covers how bug bounty programmes work, how to find targets, how to write a report that actually gets paid, and the first recon tools almost every bug hunter uses: Subfinder, httpx, ParamSpider and the Wayback Machine.

How bug bounties work

A bug bounty programme is a company’s open invitation to find security flaws in its systems and report them responsibly. In return, it offers money, a place in its Hall of Fame, or both. Many platforms also run leaderboards, and a good ranking can lead to private invitations and job offers.

There are two places to find programmes:

  • Bug bounty platforms such as HackerOne and Bugcrowd host programmes for many companies, handle payouts and help with disputes. They’re the easiest place to start, but popular programmes are crowded and the obvious bugs go quickly.
  • Self-hosted programmes run directly by companies on their own site, often called a “responsible disclosure” or “vulnerability disclosure” policy. Many pay less or only offer recognition, but far fewer people test them.

Scope is everything

Every programme publishes its scope: which domains and apps you may test, and which vulnerability types they accept or exclude. Read it before you run a single tool. Testing something out of scope can get your report rejected, your account banned, or in the worst case, legal trouble. If *.example.com is in scope but payments.example.com is listed as excluded, stay away from payments. Many programmes also forbid things like denial-of-service tests, automated scanning at high rates, or social engineering.

Finding targets with Google dorks

Google’s search operators can find self-hosted programmes that most hunters never see. For example:

inurl:"responsible disclosure program"
inurl:"responsible-disclosure" intext:"bounty"
intext:"vulnerability disclosure policy" "reward"

inurl: matches words in the page address, and intext: matches words in the page content. There are GitHub repositories that collect hundreds of these bug bounty dorks, which saves you writing your own. Always check the policy page you land on to confirm the programme is real and what it allows.

Writing a good report

Finding a bug is half the job. If the security team can’t understand or reproduce it, it won’t be fixed or paid. A solid report has these parts:

  • Title: the vulnerability type and where it is, for example “Stored XSS in profile bio on app.example.com”.
  • Description: what the issue is and how it works, in a few sentences.
  • Vulnerable URL or endpoint: the exact address and parameter affected.
  • Steps to reproduce: numbered, precise steps that anyone on the team could follow. This is the most important section.
  • Proof of concept: screenshots or a short screen recording showing it working.
  • Impact: what an attacker could actually do, such as steal session cookies, view other users’ data or take over accounts. Impact decides severity, and severity decides the payout.
  • Remediation (optional): how to fix it, like encoding output or validating input.

Write calmly and stick to facts. Don’t exaggerate impact, and don’t demand payment.

Recon: why it matters

Reconnaissance means mapping everything a target owns before you test it. The main website is usually tested the most and hardened the best. Forgotten subdomains, old API endpoints and parameters nobody remembers are where bugs tend to hide. Better recon means a bigger attack surface, which means more chances.

Subfinder: finding subdomains

Subfinder, from ProjectDiscovery, finds subdomains passively. It queries public sources like certificate transparency logs and search engines, so it never sends traffic to the target itself. In Part 5 we used Sublist3r for the same job, and Subfinder is the faster, actively maintained option.

It’s written in Go, so install Go first and then the tool:

sudo apt install golang-go -y
go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
export PATH=$PATH:$HOME/go/bin
subfinder -d example.com -silent

Add the export line to your ~/.zshrc so Go tools work in every new terminal. Subfinder finds more results if you add free API keys for its sources in its config file.

httpx: which hosts are alive?

Subfinder might return hundreds of subdomains, and many will be dead or not running a website. httpx checks each one and keeps only those that respond, showing the status code and page title:

go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
subfinder -d example.com -silent | httpx -silent -status-code -title

Piping one tool into the next is what makes recon fast. A list of 500 names becomes a short list of live web servers in seconds. Save the output with -o live.txt for later.

One gotcha on Kali: there is a different, unrelated Python tool also called httpx. If the command behaves strangely, run the Go version by its full path, ~/go/bin/httpx, or install Kali’s packaged version with sudo apt install httpx-toolkit.

ParamSpider: finding parameters

Parameters (the ?id=1 part of a URL, from Part 7) are where injection bugs live. ParamSpider mines URLs with parameters from web archive data for a domain, without touching the target:

git clone https://github.com/devanshbatham/ParamSpider
cd ParamSpider
pip install .
paramspider -d example.com

The results are saved to a file in the results folder. Each URL has its parameter values replaced with a placeholder, ready for testing XSS, SQL injection or open redirects. If pip complains about an “externally managed environment” on newer Kali, install it with pipx install . instead.

The Wayback Machine

The Internet Archive’s Wayback Machine has stored snapshots of websites going back decades. For recon, it shows what a site used to have: old pages, retired API endpoints, outdated parameters and sometimes files that were exposed once and never fully removed. Browse it at web.archive.org, or list every archived URL for a domain:

https://web.archive.org/web/*/example.com/*

Look for interesting extensions and paths such as .zip, .bak, .sql, .env, /admin and /api/v1, then check whether they still exist on the live site.

A simple recon workflow

  • Read the programme’s scope and rules.
  • Find subdomains with Subfinder.
  • Filter to live hosts with httpx.
  • Collect parameters with ParamSpider and old URLs from the Wayback Machine.
  • Review the results by hand, pick interesting targets, and start testing.

Practice tasks

  • Find three self-hosted disclosure programmes with Google dorks and read their scope.
  • Run Subfinder and httpx against a domain you own, or one explicitly in scope of a programme, and count live hosts.
  • Run ParamSpider on the same domain and pick five parameters worth testing.
  • Write a practice report for the XSS example in this post, using the structure above.

A note on ethics: even passive recon should stay within a programme’s scope. Active testing of anything outside scope, or of a company with no disclosure programme, is unauthorised access.

What’s next

Next, Part 12 goes deeper into recon with Gau, finding hidden JavaScript files and leaked API keys. For background, see Part 10: frontend, backend and databases and Part 5, where we first used a subdomain tool.

Watch Part 11 on my YouTube channel, Madhukar Reddy (@awsandevops).

Madhukar Reddy

DevOps engineer focused on AWS, Docker, Kubernetes, cloud infrastructure, and cyber security. Shares practical cloud and DevOps content based on hands-on deployments, infrastructure troubleshooting, and real-world projects.

$ This blog is currently running on AWS EC2 using Docker-based deployment.

Leave a response