2205 Commits

Author SHA1 Message Date
Tarun Koyalwar 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
Dogan Can Bakir 6c1e5384f5 Merge pull request #1663 from tb0hdan/dev
New source: DomainsProject
2025-11-04 12:39:53 +03:00
Bohdan Turkynewych 3ba0a308fa Add domainsproject to sources tests 2025-10-20 16:47:21 -04:00
Bohdan Turkynewych c1b64d8735 CR fixes 2025-10-20 16:36:48 -04:00
Bohdan Turkynewych 02ea9f8e45 New source: DomainsProject 2025-10-20 16:29:34 -04:00
Mzack9999 2ba3645542 Merge pull request #1660 from projectdiscovery/1659_add_api_key_support
add api key support
2025-10-20 14:36:52 +04:00
Mzack9999 3d6441b216 Merge pull request #1662 from projectdiscovery/1661_remove_hunter
remove hunter
2025-10-20 14:22:22 +04:00
Doğan Can Bakır bc7edda8b6 remove hunter 2025-10-20 11:31:10 +03:00
Doğan Can Bakır 61bc082d5d add api key support 2025-10-20 11:27:24 +03:00
Dogan Can Bakir 7396f0db4b Merge pull request #1647 from projectdiscovery/add_onhype
add onhype
2025-10-20 10:50:29 +03:00
Dogan Can Bakir a8e87b73e1 Merge pull request #1657 from projectdiscovery/1639_add_windvane
add windvane
2025-10-20 10:50:07 +03:00
Mzack9999 26a221fffe using json marshal 2025-10-19 15:03:08 +04:00
Doğan Can Bakır 8117b1acf3 add windvane 2025-10-16 14:56:57 +03:00
dependabot[bot] c47f852d47 chore(deps): bump github.com/nwaples/rardecode/v2
Bumps [github.com/nwaples/rardecode/v2](https://github.com/nwaples/rardecode) from 2.0.0-beta.4.0.20241112120701-034e449c6e78 to 2.2.0.
- [Commits](https://github.com/nwaples/rardecode/commits/v2.2.0)

---
updated-dependencies:
- dependency-name: github.com/nwaples/rardecode/v2
  dependency-version: 2.2.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-11 00:37:31 +00:00
Dogan Can Bakir 1af75eb76a Merge pull request #1652 from mukesh-dream11/fix-onresult
Return enumerated subdomain results in realtime
2025-10-02 14:10:07 +03:00
Doğan Can Bakır 7823d41dd1 fix typo 2025-10-02 13:35:06 +03:00
Doğan Can Bakır d236bba3dd fix lint err 2025-10-02 13:32:23 +03:00
Doğan Can Bakır 648f1e1311 fix pagination 2025-10-02 13:27:42 +03:00
Mukesh Sai Kumar 50bbe41385 Add missing domain field 2025-10-01 22:23:24 +05:30
Mukesh Sai Kumar 7e6ad51181 Handle case when RemoveWildcard is true 2025-10-01 21:32:23 +05:30
Mukesh Sai Kumar 2097be5c70 Call ResultCallback sooner 2025-10-01 21:07:10 +05:30
Dogan Can Bakir fa6ceaaf53 Merge branch 'dev' into add_onhype 2025-10-01 13:57:22 +03:00
Dogan Can Bakir f5fe4f8875 Merge pull request #1640 from projectdiscovery/dev
v2.9.0
v2.9.0
2025-09-26 13:19:29 +03:00
Mzack9999 1464ef085c Merge pull request #1650 from projectdiscovery/1648_add_env_var_support
add env var support for config files
2025-09-24 21:01:36 +02:00
Mzack9999 c292a9c595 ignoring flaky threatcrowd 2025-09-24 20:44:14 +02:00
Mzack9999 68a34884ab latest osx 2025-09-24 20:23:39 +02:00
Mzack9999 e9338c217b using envutil 2025-09-24 20:19:34 +02:00
Doğan Can Bakır 20682b595a update README 2025-09-24 13:52:17 +03:00
Doğan Can Bakır 0ed6faf8f2 add env var support for config files 2025-09-24 13:46:52 +03:00
Doğan Can Bakır e5bcc681d1 add onhype 2025-09-22 16:00:01 +03:00
Dogan Can Bakir 45fac83294 Merge branch 'main' into dev 2025-09-16 14:36:56 +03:00
Doğan Can Bakır 92ee44cb13 bump version 2025-09-16 14:27:54 +03:00
Mzack9999 4f6ed773de Merge pull request #1638 from projectdiscovery/dependabot/go_modules/github.com/ulikunitz/xz-0.5.14
chore(deps): bump github.com/ulikunitz/xz from 0.5.12 to 0.5.14
2025-09-12 17:15:28 +02:00
Mzack9999 d29e24f913 bump 2025-09-12 16:39:43 +02:00
dependabot[bot] 5d50a55a12 chore(deps): bump github.com/ulikunitz/xz from 0.5.12 to 0.5.14
Bumps [github.com/ulikunitz/xz](https://github.com/ulikunitz/xz) from 0.5.12 to 0.5.14.
- [Commits](https://github.com/ulikunitz/xz/compare/v0.5.12...v0.5.14)

---
updated-dependencies:
- dependency-name: github.com/ulikunitz/xz
  dependency-version: 0.5.14
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-28 19:43:21 +00:00
Dogan Can Bakir b47737d710 Merge pull request #1630 from tekkamanendless/fix-netlas-panic
Prevent a netlas nil pointer dereference
2025-08-26 11:30:33 +03:00
Douglas Danger Manley c7a32307aa Merge branch 'dev' into fix-netlas-panic 2025-08-15 11:34:58 -04:00
Douglas Danger Manley f0ec4032b2 Fix the build-test action (#1631)
This fixes the `build-test` action by restoring the `examples`
working directory.  This was incorrectly removed in the previous
commit.
2025-08-15 19:43:22 +05:30
Douglas Danger Manley ae80ddae61 Prevent a netlas nil pointer dereference
This uses two _different_ variables for the two _different_ HTTP
requests, since two `defer` functions referenced the same `resp`
variable.

This setup could cause a nil pointer dereference in the following
scenario:
1. The first request succeeds (a `defer` on `resp` is added).
2. The second request fails (which sets `resp` to nil, and then
   the first `defer` attempts to reference `resp.Body`).

This change prevents that by not reusing the same variable for
the second request.
2025-08-13 09:13:33 -04:00
Doğan Can Bakır 31d55080dc minor 2025-07-23 19:08:43 +03:00
Doğan Can Bakır f786099a2e remove debug code 2025-07-23 19:08:24 +03:00
Doğan Can Bakır e3af027548 add api key support for hackertarget 2025-07-23 19:06:56 +03:00
Dogan Can Bakir 8feb51ff7f Merge pull request #1621 from emmanuel-ferdman/dev
docs: update main.go reference
2025-07-22 17:21:47 +03:00
Emmanuel Ferdman f45039b014 docs: update main.go reference
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-07-21 06:03:04 -07:00
Dogan Can Bakir 5b5486ca71 Merge pull request #1612 from driftnet-io/feat/add-driftnet
Adds the "driftnet" source.
2025-07-21 13:05:18 +03:00
dependabot[bot] a071cc2994 chore(deps): bump golang.org/x/oauth2 from 0.11.0 to 0.27.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.11.0 to 0.27.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.11.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-version: 0.27.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-18 17:57:17 +00:00
ben dcc7f4b3cd move 204 check to be consistent with other sources 2025-07-17 13:03:58 +01:00
ben b2f1963756 url escape as requested 2025-07-17 12:58:45 +01:00
ben e10fc7f9d7 fix for race 2025-07-17 12:57:29 +01:00
ben ed66a7d04e revert change for NoContent 2025-07-17 12:51:22 +01:00