Repository navigation
fix(anubis): switch subdomain API to anubisdb.com - #1815
Conversation
jonlu.ca/anubis now returns Cloudflare 403, so the source finds nothing. anubisdb.com serves the same API and returns results. Closes #1808
WalkthroughThe Anubis source now requests subdomains from ChangesAnubis endpoint migration
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pkg/passive/sources_wo_auth_test.go (1)
35-35: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRe-enable Anubis coverage after endpoint verification.
The comment documents the migration, but keeping
"anubis"inignoredSourcesmeansTestSourcesWithoutKeysstill skips the source and cannot detect future regressions. Remove this entry once the new endpoint is confirmed reliable in CI, or add a dedicated mocked test if the live dependency cannot be used.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/passive/sources_wo_auth_test.go` at line 35, Remove "anubis" from the ignoredSources collection so TestSourcesWithoutKeys exercises the migrated endpoint in CI; if the live endpoint cannot be reliably tested, replace this exclusion with dedicated mocked coverage for Anubis instead.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@pkg/passive/sources_wo_auth_test.go`:
- Line 35: Remove "anubis" from the ignoredSources collection so
TestSourcesWithoutKeys exercises the migrated endpoint in CI; if the live
endpoint cannot be reliably tested, replace this exclusion with dedicated mocked
coverage for Anubis instead.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 86f3ba17-3ff9-49a6-b699-1fba14a91800
📒 Files selected for processing (2)
pkg/passive/sources_wo_auth_test.gopkg/subscraping/sources/anubis/anubis.go
subfinder 2.15.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.<details> <summary>release notes</summary> <pre>## What's Changed ### 🎉 New Features * Added shodanct passive source by @dogancanbakir in projectdiscovery/subfinder#1796 * Added Option `-vR`, `-virustotal-res` for VirusTotal source by @Bundy01 in projectdiscovery/subfinder#1719 * Added machine-readable source listing with `-ls -oJ` by @Gerijacki in projectdiscovery/subfinder#1812 ### 🐞 Bug Fixes * Fixed source leaks by @Mzack9999 in projectdiscovery/subfinder#1801 * Fixed drain source channels on cancel so source goroutines exit instead of leaking on a blocked send by @Mzack9999 in projectdiscovery/subfinder#1799 * Fixed crtsh's query by dropping unused certificate metadata from SQL query by @ChrisJr404 in projectdiscovery/subfinder#1787 * Fixed VirusTotal source by capping pagination and providing clearer 429 message by @ChrisJr404 in projectdiscovery/subfinder#1788 * Fixed Anubis source by switching subdomain API to anubisdb.com by @jatinder14 in projectdiscovery/subfinder#1815 ### Other Changes * Fixed lint issues by @dogancanbakir in projectdiscovery/subfinder#1820 * Refactored loadFromFile to use bufio.Scanner by @nandaanomi in projectdiscovery/subfinder#1791 ## New Contributors * @ChrisJr404 made their first contribution in projectdiscovery/subfinder#1787 * @Bundy01 made their first contribution in projectdiscovery/subfinder#1719 * @nandaanomi made their first contribution in projectdiscovery/subfinder#1791 * @jatinder14 made their first contribution in projectdiscovery/subfinder#1815 * @Gerijacki made their first contribution in projectdiscovery/subfinder#1812 **Full Changelog**: https://github.com/projectdiscovery/subfinder/compare/v2.14.0...v2.15.0</pre> <p>View the full release notes at <a href="https://github.com/projectdiscovery/subfinder/releases/tag/v2.15.0">https://github.com/projectdiscovery/subfinder/releases/tag/v2.15.0</a>.</p> </details> <hr> See merge request: Harmonybrew/homebrew-core!16007
Summary
The Anubis source was calling
https://jonlu.ca/anubis/subdomains/:domain, which now returns Cloudflare 403 and yields zero results.This switches it to
https://anubisdb.com/anubis/subdomains/:domain(same API shape, confirmed returning results for sample domains).Fixes #1808
Test plan
go build ./pkg/subscraping/sources/anubis/GET https://anubisdb.com/anubis/subdomains/hackerone.comreturns 200 with subdomain JSONGET https://jonlu.ca/anubis/subdomains/tesla.comreturns 403echo tesla.com | subfinder -s anubis -stats -vreturns subdomains againMade with Cursor
Summary by CodeRabbit