Setup Walkthrough: Recon Repo to First Discord Alert
15 min read/Bug Hunting for Beginners
Step-by-step walkthrough from adding the recon workflow to receiving your first Discord alert. Hold-your-hand granular: every click, every paste, every expected outcome.
A GitHub account. Free tier is fine. You’ll create a PRIVATE repo (private repos get free Actions minutes too).
A Discord server you own or admin. This is where alerts will arrive. If you don’t have one, create a personal server: Discord → left sidebar → “+” → “Create My Own” → “For me and my friends”. Takes 30 seconds.
The workflow file. Open Automated Recon and keep the recon.yml block handy. You’ll paste it into your own private repo.
You should also have:
A real bug bounty program you’re authorized to test (HackerOne, Intigriti, etc.). If you don’t yet, you can still complete the setup using your OWN domain (e.g., a personal site) for testing, just to confirm the pipeline works.
Total time: About 15-20 minutes for first-run-to-first-alert. The cron then takes over and runs every 6 hours.
Repository name: anything you like. Suggestions: recon-bot, bbrecon, attack-surface. Avoid anything that names a specific target (your repo URL might show up in security logs).
Description: optional. Leave blank or write “Personal recon automation”.
Visibility:Private. This is critical. Public repos would expose your target lists and recon outputs.
Initialize this repository with: Leave all three checkboxes UNCHECKED, so the repo is empty. You will add the one file you need yourself in Step 2.
Click the green “Create repository” button.
You’ll land on a page that says “Quick setup, if you’ve done this kind of thing before” with a URL like https://github.com/yourname/recon-bot. Leave this tab open, you’ll come back in a moment.
What if you accidentally created it public? Repo Settings → General → scroll to “Danger Zone” at the very bottom → “Change repository visibility” → Private. Easy fix.
What if you accidentally initialized with a README? Easiest fix: delete the repo (Settings → Danger Zone → Delete) and start over. It’s empty anyway.
If prompted for credentials, use a Personal Access Token instead of your password, because GitHub no longer accepts passwords. Generate one at https://github.com/settings/tokens (classic, with repo scope).
Open the Discord server where you want alerts. (Use the desktop app or web.)
Decide which channel. Either:
Use an existing channel (e.g., #general), or
Create a new dedicated channel: Click the “+” next to a channel category in the left sidebar → “Create Channel” → Name it recon-alerts → Text Channel → Create.
Hover over the channel name in the left sidebar. A gear icon appears. Click it (or right-click the channel → “Edit Channel”).
In the channel settings, click “Integrations” in the left sidebar.
Click “Create Webhook” (or “View Webhooks” → “New Webhook” if you’ve made one before).
Name the webhook “Recon Bot” (or whatever).
Customize the avatar if you want, entirely optional.
Naming it discord_webhook (lowercase). Secrets are case-sensitive. The workflow looks for exactly DISCORD_WEBHOOK. Fix: delete and re-add with correct casing.
Adding leading or trailing whitespace. Easy to do when pasting. GitHub trims trailing whitespace but not always. If alerts don’t fire later, delete and re-paste this secret first.
Confusing “secrets” with “variables”. The page has two tabs at the top: “Secrets” and “Variables”. Use Secrets for the webhook URL, variables are visible in logs.
Goal: The workflow can commit data/ changes back to your repo. Without that, the diff against the previous run does not work.
This is the step most people forget. If you skip it, the workflow will run successfully the first time but fail to commit, and the next run will treat every subdomain as new again.
Still in your repo’s Settings, in the left sidebar click “Actions” (under the “Code and automation” section), then click the sub-item “General”.
Scroll all the way to the bottom of the page. There’s a section titled “Workflow permissions”.
Switch from “Read repository contents and packages permissions” to “Read and write permissions”.
Also check the box “Allow GitHub Actions to create and approve pull requests”, not strictly needed for this repo, but it’s a good default and avoids edge cases.
The workflow’s last step, “Commit deltas to Repo”, runs git commit and git push. Without write permissions, that push fails with 403 Forbidden. You’d see green workflow runs in the Actions tab but the data/ directory would never update, and every subdomain would alert as “new” every 6 hours. (Annoying.)
Step 6: (Optional) Add Subdomain Enumeration API Keys
Goal: Give subfinder more data sources so it finds more subdomains.
This step is optional but worth doing. The workflow’s “Configure API keys” step reads exactly two secrets, CHAOS_API_KEY and VIRUSTOTAL_API_KEY, and writes them into subfinder’s provider config. Without them subfinder still runs, using only its free sources. Both keys are free.
Other sources (SecurityTrails, Shodan, and so on) work too, but you must first add a matching line to the “Configure API keys” step in recon.yml. The workflow ignores secrets it does not reference. Secret names starting with GITHUB_ are reserved by GitHub, so pick a different prefix if you add a GitHub token.
Goal: A real domain in the TARGETS secret that the workflow will monitor.
The workflow reads its targets from a repository secret named TARGETS, a comma-separated list of root domains.
In your repo go to Settings → Secrets and variables → Actions → New repository secret.
Name:TARGETS (uppercase).
Secret: one or more root domains separated by commas, with no spaces and no https://. For example: example.com or example.com,acme-corp.io.
Click “Add secret”.
Format rules:
Valid: example.com, acme-corp.io
Invalid: https://example.com (no scheme), *.example.com (no wildcards, since subfinder discovers the subdomains), example.com/login (no paths), example.com, acme-corp.io (no space after the comma)
Use a domain you OWN, such as your personal site. The workflow will run and you’ll get a small alert. This is the safest way to verify the pipeline end to end.
Goal: Force the first run instead of waiting up to 6 hours for the cron.
In your repo, click the “Actions” tab (top of the repo, between “Pull requests” and “Projects”).
The first time you visit, GitHub may show a banner: “Workflows aren’t being run on this forked repository” or similar. If so, click “I understand my workflows, go ahead and enable them.” This only happens for forks/templates, not fresh repos.
In the left sidebar, you’ll see one workflow listed: “Daily Bug Bounty Recon”.
Click “Daily Bug Bounty Recon”.
On the right side of the page, you’ll see “This workflow has a workflow_dispatch event trigger.” with a dropdown button: “Run workflow”.
Click “Run workflow”. A small dropdown opens.
Branch should be main (default). Leave it.
Click the green “Run workflow” button inside the dropdown.
The page may not auto-refresh. Reload it after about 5 seconds. A new row will appear at the top of the workflow runs list with a yellow spinner: “Daily Bug Bounty Recon #1, in progress”.
Click into that run to watch progress. You’ll see one job called “recon” with these steps:
Checkout (actions/checkout@v4)
Setup Go
Install ProjectDiscovery tools. This runs go install for subfinder, anew and subzy. It is the slow step, a few minutes.
Configure API keys. Writes the subfinder provider config.
Run recon pipeline. This is the actual work: subfinder per target, the diff, and the Discord alert. Time depends on target size.
Open Discord and go to the channel where you put the webhook. Within 30 seconds of the workflow’s “Run recon pipeline” step completing, you should see a message like:
[example.com] 47 new subdomains detected!
api.example.com
admin.example.com
blog.example.com
... (first 20 shown)
The workflow sends one message per target and lists the first 20 new subdomains. The full list is in data/<target>/new.txt in your repo.
The first run treats every subdomain it finds as new because the workflow has no prior state to diff against. That’s why the first alert is a big one. Subsequent runs will be quiet, you’ll only get alerts when subfinder finds a subdomain that wasn’t in the previous run’s data/<target>/known.txt.
DISCORD_WEBHOOK secret is missing or wrong. Go to Settings → Secrets → Actions. If DISCORD_WEBHOOK isn’t listed, you skipped Step 4. If it IS listed but the URL is wrong, you can’t see/edit, just delete and re-add.
The TARGETS secret is missing or malformed. Re-create it with a comma-separated list and no spaces.
The target has zero subdomains. Unlikely but possible for tiny domains. Try a target with broader presence (any major company).
Look at the workflow logs. Actions → click the run → click “Run recon pipeline”. Check that subfinder printed subdomains and that curl did not return an error. If subfinder found nothing, no alert is sent.
The cron: '0 */6 * * *' schedule means the workflow auto-runs at 00:00, 06:00, 12:00 and 18:00 UTC every day. There’s nothing more to set up, GitHub Actions handles it.
One quirk: GitHub disables scheduled workflows on repos with no activity for 60 days. As long as you commit something occasionally (or workflow runs commit data/ changes back), this won’t apply to you. The workflow commits only when data/ changed, so a quiet target can still go idle. Make a small commit now and then, or re-enable the workflow if GitHub disables it.
The scheduled workflow fires every 6 hours. You’ll likely get alerts on the first 1-3 scheduled runs as subfinder discovers subdomains it missed initially, then it’ll go quiet for stretches as the diff converges.
This is when the value starts to show. New subdomains are rare and high-signal. When you DO get an alert, that subdomain is fresh attack surface that 99% of other hunters haven’t even seen yet.
This is the bug-bounty advantage: you’re first to the new infrastructure, every time.
Stop scrolling. Open the subdomain in a browser. Or curl -sI it from your terminal.
Check what it is. Login page? Internal admin tool? Staging API? File upload feature?
Apply the bug class playbook from the guide’s bug classes, IDOR if it’s an API (see the IDOR checklist), info disclosure if it’s a debug endpoint, subdomain takeover if subzy flagged it.
Don’t rush. First hunter ≠ best hunter. Take 30 minutes to map the new asset before you start firing payloads.
The repo is largely self-maintaining. Things to do occasionally:
Add new programs: edit the TARGETS secret. The next run picks them up.
Remove out-of-scope targets: remove the domain from the TARGETS secret. The state files stay in data/ for reference, and you can delete them.
Rotate API keys: sign up for new sources as they emerge. Add them to GitHub Secrets and add a line for each in the “Configure API keys” step of recon.yml.
GitHub Actions usage: One run is roughly 5-10 minutes. 4 runs a day × 7 min × 30 days is about 840 minutes a month. Time grows with the number of targets.