Automated Recon: Cron Pipelines and GitHub Actions
The structural edge in bug bounty isn’t testing better than the next hunter, it’s seeing things sooner. The hunters who consistently earn $5K+/month all have one thing in common: an automated recon pipeline that notifies them within minutes when a developer deploys new code.
Why Automation Wins
Section titled “Why Automation Wins”A target has 500 subdomains today. Tomorrow a developer pushes a new internal tool to inventory-api-v2.target.com. If you have a pipeline running, you learn about it within 10 minutes (cron run completes, diff against yesterday, Discord ping). You are testing it before any other hunter has even noticed it exists.
Architecture: Three Patterns
Section titled “Architecture: Three Patterns”Pattern A: Local Cron on a VPS ($5/month)
Section titled “Pattern A: Local Cron on a VPS ($5/month)”Rent a $5/month VPS (Hetzner, DigitalOcean). Set up cron jobs that:
- Run subfinder/httpx/nuclei on each watched target.
- Diff results against the previous run.
- Send only the deltas (new stuff) to a Discord webhook.
Pattern B: GitHub Actions (Free)
Section titled “Pattern B: GitHub Actions (Free)”Use scheduled workflows to run the pipeline.
- Upsides: Free, no infrastructure to manage, secrets management built-in.
- Downsides: GitHub IPs are well-known and often rate-limited by WAFs. Workflows terminate after 6 hours.
Pattern C: Hybrid (Recommended 2026 Setup)
Section titled “Pattern C: Hybrid (Recommended 2026 Setup)”Run lightweight monitoring (subdomain diffs, JS file changes) on GitHub Actions. Run heavier scanning (full Nuclei sweeps, port scans) on a dedicated VPS.
Detailed Local VPS Cron Script Example
Section titled “Detailed Local VPS Cron Script Example”Here is a complete Bash script you can run on a $5/month VPS:
#!/bin/bash# monitor-target.sh - Run this on your VPS via cron
TARGET=$1DATE=$(date +%Y-%m-%d)WEBHOOK=$DISCORD_WEBHOOK
mkdir -p $TARGET/$DATE
# 1. Gather subdomainssubfinder -d $TARGET -silent -all -o $TARGET/$DATE/raw.txt
# 2. Filter out duplicates using anewcat $TARGET/$DATE/raw.txt | anew $TARGET/known.txt > $TARGET/$DATE/new.txt
# 3. If there are new subdomains, probe them and notifyif [ -s $TARGET/$DATE/new.txt ]; then cat $TARGET/$DATE/new.txt | httpx -silent -title -tech-detect -sc > $TARGET/$DATE/new_live.txt
COUNT=$(wc -l < $TARGET/$DATE/new.txt) MSG="**[$TARGET] $COUNT new subdomains detected on $DATE**"
# Send summary to Discord curl -X POST $WEBHOOK \ -H "Content-Type: application/json" \ -d "{\"content\": \"$MSG\n\`\`\`$(head -20 $TARGET/$DATE/new_live.txt)\`\`\`\"}"
# 4. Run nuclei on the new subdomains only (saves time vs full sweep) nuclei -l $TARGET/$DATE/new_live.txt \ -severity medium,high,critical \ -etags dos,intrusive,fuzz \ -silent -o $TARGET/$DATE/nuclei.txt
if [ -s $TARGET/$DATE/nuclei.txt ]; then curl -X POST $WEBHOOK \ -H "Content-Type: application/json" \ -d "{\"content\": \"[$TARGET] NUCLEI HITS:\n\`\`\`$(cat $TARGET/$DATE/nuclei.txt)\`\`\`\"}" fifi
# 5. Check for subdomain takeovers (high-priority alert)subzy run --targets $TARGET/known.txt --hide_fails --output $TARGET/$DATE/takeovers.jsonif [ -s $TARGET/$DATE/takeovers.json ] && [ "$(jq 'length' $TARGET/$DATE/takeovers.json)" != "0" ]; then curl -X POST $WEBHOOK \ -H "Content-Type: application/json" \ -d "{\"content\": \"@here [$TARGET] POTENTIAL SUBDOMAIN TAKEOVER:\n\`\`\`$(cat $TARGET/$DATE/takeovers.json)\`\`\`\"}"fiflowchart TD
Start([Run cron script]) --> G1[1. Gather subdomains via subfinder]
G1 --> G2[2. Filter duplicates via anew]
G2 --> C1{Any new subdomains?}
C1 -- No --> Takeover[5. Check subdomain takeovers via subzy]
C1 -- Yes --> G3[3. Probe live hosts via httpx]
G3 --> AlertDiscord[Alert Discord new subdomains]
AlertDiscord --> G4[4. Scan new live hosts via nuclei]
G4 --> C2{Any nuclei vulns found?}
C2 -- Yes --> AlertNuclei[Alert Discord nuclei hits]
C2 -- No --> Takeover
AlertNuclei --> Takeover
Takeover --> C3{Any takeovers found?}
C3 -- Yes --> AlertTakeover[Alert Discord takeover details]
C3 -- No --> End([End cron run])
AlertTakeover --> End
style AlertDiscord fill:#ff9999,stroke:#333,stroke-width:1px,color:#000
style AlertNuclei fill:#ff9999,stroke:#333,stroke-width:1px,color:#000
style AlertTakeover fill:#ff9999,stroke:#333,stroke-width:1px,color:#000
Crontab entry (runs hourly):
0 * * * * DISCORD_WEBHOOK="https://discord.com/api/webhooks/..." /home/user/scripts/monitor-target.sh target.comFor a starter setup, run it every 60 minutes. As you scale to many targets, stagger them and run less critical checks less frequently.
A Concrete GitHub Actions Pipeline (Copy-Paste Ready)
Section titled “A Concrete GitHub Actions Pipeline (Copy-Paste Ready)”Create .github/workflows/recon.yml in a private repository:
name: Daily Bug Bounty Recon
on: schedule: - cron: '0 */6 * * *' # Runs every 6 hours workflow_dispatch: # Allows manual triggering
jobs: recon: runs-on: ubuntu-latest timeout-minutes: 60 steps: - uses: actions/checkout@v4
- name: Setup Go uses: actions/setup-go@v5 with: go-version: '1.22'
- name: Install ProjectDiscovery tools run: | go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest go install -v github.com/tomnomnom/anew@latest go install -v github.com/PentestPad/subzy@latest
- name: Configure API keys env: CHAOS_KEY: ${{ secrets.CHAOS_API_KEY }} VT_KEY: ${{ secrets.VIRUSTOTAL_API_KEY }} run: | mkdir -p ~/.config/subfinder cat > ~/.config/subfinder/provider-config.yaml <<EOF chaos: ["$CHAOS_KEY"] virustotal: ["$VT_KEY"] EOF
- name: Run recon pipeline env: TARGETS: ${{ secrets.TARGETS }} # Comma-separated list of domains WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} run: | for TARGET in $(echo $TARGETS | tr ',' ' '); do mkdir -p data/$TARGET
# Run Subfinder subfinder -d $TARGET -silent -all -o data/$TARGET/current.txt
# Diff logic if [ -f data/$TARGET/known.txt ]; then comm -13 <(sort data/$TARGET/known.txt) <(sort data/$TARGET/current.txt) > data/$TARGET/new.txt else cp data/$TARGET/current.txt data/$TARGET/new.txt fi
# Update known list cp data/$TARGET/current.txt data/$TARGET/known.txt
# Alert if new subdomains found if [ -s data/$TARGET/new.txt ]; then COUNT=$(wc -l < data/$TARGET/new.txt) curl -X POST $WEBHOOK \ -H "Content-Type: application/json" \ -d "{\"content\": \"**[$TARGET] $COUNT new subdomains detected!**\n\`\`\`$(head -20 data/$TARGET/new.txt)\`\`\`\"}" fi done
- name: Commit deltas to Repo run: | git config user.name "recon-bot" git config user.email "bot@recon.local" git add data/ git diff --cached --quiet || git commit -m "Recon update $(date -u +%Y-%m-%d_%H:%M)" git pushNote: Store your targets, webhook URL, and API keys as GitHub repository secrets (Settings → Secrets → Actions).
Established Frameworks Worth Using
Section titled “Established Frameworks Worth Using”If you don’t want to roll your own from scratch, several mature open-source frameworks do this for you:
| Framework | What it does | When to use |
|---|---|---|
| MonMon (Monitoring Monster) | Tracks subdomain, endpoint, command output, and scope changes; alerts via Slack/Discord/Telegram | Most polished alerting; great UI |
| Chaathan Flow | 20-step CLI recon framework with SQLite backend, diff between scans, integrated 27+ tools | Good if you want a single binary covering the full pipeline |
| ReconNinja v6 | 38-phase framework with AI threat analysis, HTML/JSON/Markdown reports | Heaviest option; useful for thorough scheduled sweeps |
| recon-skill (Claude Code) | Subfinder → httpx → nuclei pipeline with LLM triage producing prioritized reports | If you live in Claude Code / terminal |
| NotSomewhere/Bug-Bounty-recon | Lightweight CLI pipeline with state-diffing and Discord webhook | Simple, easy to read source, good starting point |
| bbrf (classic) | Distributed reconnaissance framework with CouchDB backend, scriptable | Power-user choice; steep learning curve |
| axiom | Dynamic VPS fleet spinning up parallel scanners on demand | When you graduate to running many large sweeps in parallel |
Alert Hygiene (Key for Sanity)
Section titled “Alert Hygiene (Key for Sanity)”Naive automation means your phone buzzes 200 times a day until you mute it. Good alert tuning is vital.
- Only alert on Deltas: Never send full scan results. Only alert when something changes.
- Tier your alerts by signal strength: Subdomain takeover candidate? Use
@herein Discord (rare and critical). A new200 OKsubdomain with an interesting tech stack? Normal alert. A new403 Forbiddensubdomain? Log it, but don’t ping. - Use separate Discord channels per signal type: Don’t dump everything into one firehose. Use
#takeovers(rare, urgent),#new-subs(daily glance),#nuclei-hits(weekly review). - Throttle yourself: If a company acquires another company, your bot might find 5,000 new subdomains. Have logic to prevent your script from running heavy Nuclei scans on all 5,000 immediately, burning your VPS IP or rate-limiting you.
Cost Reality Check
Section titled “Cost Reality Check”- $5/month VPS (Hetzner CX11, Vultr basic) covers most beginner automation.
- GitHub Actions free tier covers all subdomain-monitor workloads with ease.
- API keys are free at the tiers you need (VirusTotal, SecurityTrails free plan, Chaos, GitHub PAT).
- Premium APIs (Shodan paid, Censys, FOFA) become worth the cost once you’re earning regularly. Not on day one.
Ethics and Scope (Mandatory Rules)
Section titled “Ethics and Scope (Mandatory Rules)”- Verify scope on every run. Programs remove assets from scope. Add a step that asserts your targets are still in-scope. Scanning an out-of-scope asset automatically is the fastest way to get banned.
- Respect rate limits. If a program policy says “max 5 requests/second,” configure
-rate-limit 5on Nuclei or other fuzzers to stay polite. - Never run destructive templates. Keep the
dos,intrusive, andfuzztags excluded from Nuclei automated runs on production. - Don’t store credentials in public repos. Use GitHub Actions secrets, environment variables, or a vault. Never commit raw keys to repository files.
- Identify yourself. Add a custom HTTP header:
User-Agent: BugBounty-YourHandle-ReconBotor similar where required by the program’s policy. - Log everything you do. When a triage team asks “did you cause this 500-error spike?”, being able to point at your logs and say “yes here’s exactly what I ran” protects your reputation.
Next step: learn to write up what the pipeline finds in Section 10.
Open local graph around this page
Linked from here
- AI-Assisted Bug Hunting: Practical LLM Workflows for 2026Bug Hunting
- High-ROI Bug Classes (With Real Disclosed Payouts)Bug Hunting
- Where to Go Next: The Deep-Dive GuidesBug Hunting
- Building Your Environment (2026 Edition)Bug Hunting
- Bug Hunting for BeginnersBug Hunting
- Setup Walkthrough: Recon Repo to First Discord AlertBug Hunting
- Recon mindsetRecon Atlas
Links out to
Bug Hunting for BeginnersFor authorized testing only. Read the ethics note before you put a domain in scope.