Skip to content

fix(anubis): switch subdomain API to anubisdb.com - #1815

Merged
dogancanbakir merged 1 commit into
projectdiscovery:devfrom
jatinder14:fix/anubisdb-endpoint
Jul 28, 2026
Merged

dogancanbakir merged 1 commit into
projectdiscovery:devfrom
jatinder14:fix/anubisdb-endpoint

Conversation

@jatinder14

@jatinder14 jatinder14 commented Jul 25, 2026 •

Copy link
Copy Markdown

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/
  • Live smoke: GET https://anubisdb.com/anubis/subdomains/hackerone.com returns 200 with subdomain JSON
  • Live compare: GET https://jonlu.ca/anubis/subdomains/tesla.com returns 403
  • Manual: echo tesla.com | subfinder -s anubis -stats -v returns subdomains again

Made with Cursor

Summary by CodeRabbit

  • Bug Fixes
    • Updated the Anubis data source to use its new endpoint, restoring subdomain lookups after the previous endpoint became unavailable.
    • Preserved existing response handling and error reporting behavior.

jonlu.ca/anubis now returns Cloudflare 403, so the source finds
nothing. anubisdb.com serves the same API and returns results.

Closes #1808
@coderabbitai

coderabbitai Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

The Anubis source now requests subdomains from anubisdb.com instead of jonlu.ca. An associated test comment documents the prior Cloudflare failures and endpoint move.

Changes

Anubis endpoint migration

Layer / File(s) Summary
Update Anubis endpoint
pkg/subscraping/sources/anubis/anubis.go, pkg/passive/sources_wo_auth_test.go
The Anubis request uses the new endpoint, and the ignored-source comment reflects the endpoint change and prior failures.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

A rabbit hopped past jonlu’s gate,
Where Cloudflare made the answers wait.
To AnubisDB the query flew,
Returning to its burrow new.
“One small URL,” the rabbit cheered,
“And fewer 403s to be feared!”

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: switching the Anubis subdomain API endpoint.
Linked Issues check ✅ Passed The PR replaces the failing jonlu.ca endpoint with anubisdb.com, matching the fix requested in issue #1808.
Out of Scope Changes check ✅ Passed The only changes are the endpoint update and a matching test comment, both directly related to the reported bug.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
pkg/passive/sources_wo_auth_test.go (1)

35-35: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Re-enable Anubis coverage after endpoint verification.

The comment documents the migration, but keeping "anubis" in ignoredSources means TestSourcesWithoutKeys still 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

📥 Commits

Reviewing files that changed from the base of the PR and between d0ea102 and bb1a835.

📒 Files selected for processing (2)
  • pkg/passive/sources_wo_auth_test.go
  • pkg/subscraping/sources/anubis/anubis.go

@dogancanbakir
dogancanbakir merged commit 146a9fb into projectdiscovery:dev Jul 28, 2026
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Issue] Anubisdb source producing 0 results and returning 403

2 participants