6 Commits
Author SHA1 Message Date
Tarun KoyalwarandClaude 3cb054d976 Add wildcard certificate detection in JSON output (#1665)
* Add wildcard certificate detection in JSON output

This commit implements wildcard certificate detection for subdomains that
are covered by wildcard certificates (e.g., *.example.com). When sources
return results containing wildcard patterns, the subdomain is now marked
with a wildcard_certificate field in JSON output mode.

Key changes:
- Added WildcardCertificate field to HostEntry and Result structs
- Detection logic: checks if result.Value contains "*.subdomain" pattern
- Propagates wildcard flag through resolution pipeline
- JSON output includes wildcard_certificate field (omitted if false)
- Updates version to v2.9.1-dev
- Fix .goreleaser.yml 386 architecture quoting
- Add /subfinder to .gitignore

Note: wildcard_certificate field is not included when using -cs flag to
avoid breaking changes to the library API.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix wildcard certificate flag propagation with -nW flag

Fixed a bug where the wildcard_certificate field was being lost when using
the -nW flag (DNS resolution with wildcard filtering). The issue occurred
because when multiple sources find the same subdomain, only the first
occurrence is sent to the resolution pool. If a later source marks the
subdomain as having a wildcard certificate, that information was stored
in uniqueMap but never propagated to foundResults.

Solution: After resolution completes, merge wildcard certificate information
from uniqueMap into foundResults. This ensures that if any source marked a
subdomain as having a wildcard certificate, that flag is preserved in the
final output.

This ensures consistent behavior - wildcard_certificate field appears in
JSON output regardless of whether -nW flag is used.

Validation:
- Without -nW: api.nuclei.sh shows wildcard_certificate:true ✓
- With -nW: api.nuclei.sh shows wildcard_certificate:true ✓

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-05 21:49:07 +05:30
Tarun Koyalwar e24d38b47f bump chaos client to v0.5.2 (#1236) 2024-04-29 23:58:48 +05:30
Tarun Koyalwar 849a0f2471 bump go in dockerFile (#1159) 2024-02-15 01:56:57 +05:30
Tarun Koyalwar d53560526e facebook source pagination fix (#944)
* fix pagination issue in fb

* bump subfinder version
2023-08-17 14:55:50 +05:30
Tarun Koyalwarandsandeep 70d0a5c8ba adds new source facebook (#912)
* add new source: facebook

* misc update

* updated example key format

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2023-07-27 16:41:29 +05:30
Tarun Koyalwar 5be968fcf1 support to load provider keys from env (#868) 2023-06-05 20:21:17 +05:30