19 Commits

Author SHA1 Message Date
Doğan Can Bakır 98e6af00f0 Merge remote-tracking branch 'origin/dev' into pr-2462
# Conflicts:
#	runner/runner_test.go
2026-05-06 16:22:17 +03:00
Mzack9999 7d765f4372 adding ip aware dedup 2026-03-22 13:59:22 +01:00
Mzack9999 3adf9cef13 fixing output writing 2026-03-22 13:35:16 +01:00
Mzack9999 2e901d06e9 adding tests 2026-03-20 23:51:54 +01:00
Adel Assakaf fa950239f2 fix: prevent data loss on interrupt by implementing graceful shutdown 2026-02-05 05:03:40 +01:00
Mzack9999 048c43f2d0 Merge branch 'dev' into pr/2226 2026-01-09 20:48:49 +04:00
majiayu000 7cfcff31be fix: probe-all-ips now works correctly when URL contains port
Use URL.Hostname() instead of URL.Host to extract the hostname for DNS
resolution. This ensures the port number is not included in the DNS
query when probing all IPs for a URL like http://example.com:8080.

Fixes #2346

Signed-off-by: majiayu000 <1835304752@qq.com>
2026-01-02 11:59:10 +08:00
Mzack9999 63130de68c Merge branch 'dev' into pr/2226 2025-10-20 23:41:58 +04:00
NoahO ee6a467cbb Change tests to a table format 2025-08-14 15:24:40 +07:00
NoahO 5bc9fc6cb2 test: add comprehensive test cases for combined Allow/Deny flag usage
- Add test cases for simultaneous use of -allow and -deny flags
  - Validate deny rules take precedence over allow rules
  - Test multiple allow/deny ranges with overlapping scenarios
  - Ensure IPs outside allow ranges are blocked when allow list exists
2025-08-05 14:55:16 +07:00
NoahO 93e9581d40 fix: integrate Allow and Deny flags with NetworkPolicy validation
- Add missing flag integration in createNetworkpolicyInstance()
  - Fixes broken IP filtering where -allow and -deny flags were ignored
  - Add test coverage for Allow/Deny flag validation

  The NetworkPolicy instance was created without the Allow/Deny flag values,
  causing all IP filtering to be bypassed regardless of command-line flags
2025-08-05 14:38:54 +07:00
jhjang 3cac13432e fix: prevent response file overwrite when -sd flag is used 2025-07-31 15:15:19 +09:00
Dwi Siswanto de6e7e67eb test(runner): add TestRunner_CSVRow case
Signed-off-by: Dwi Siswanto <git@dw1.io>
2025-04-17 07:28:57 +07:00
Kian-Meng Ang f08a003d29 Fix typos
Found via `codespell -L ines,te,ue,occured,ans`
2025-03-11 00:04:31 +08:00
Dogan Can Bakir 2f16a472f5 filter out near duplicate responses (#1951)
* filter out near duplicate responses

* use ACR cache

* lint + msg

* skip asn

* optional asn

* more opt

* Update runner.go

---------

Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2024-10-21 03:29:20 +05:30
Aviv Keller c72d98628e Introducing CanHaveTitleTag Function for MIME Type Validation (#1608)
* chore(deps): bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#1493)

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump github.com/cloudflare/circl from 1.3.3 to 1.3.7 (#1526)

Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.3 to 1.3.7.
- [Release notes](https://github.com/cloudflare/circl/releases)
- [Commits](https://github.com/cloudflare/circl/compare/v1.3.3...v1.3.7)

---
updated-dependencies:
- dependency-name: github.com/cloudflare/circl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump github.com/quic-go/quic-go from 0.37.4 to 0.37.7 (#1531)

Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.37.4 to 0.37.7.
- [Release notes](https://github.com/quic-go/quic-go/releases)
- [Changelog](https://github.com/quic-go/quic-go/blob/master/Changelog.md)
- [Commits](https://github.com/quic-go/quic-go/compare/v0.37.4...v0.37.7)

---
updated-dependencies:
- dependency-name: github.com/quic-go/quic-go
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update Title Extraction

* Make Requsted Changes

* Import slices

* optional asn

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
2024-03-23 21:47:40 +05:30
Mzack9999 43b4f5d2c9 Improving split with URLs (#1009) 2023-03-05 14:10:54 +05:30
Shubham Rasal 18896fb9d9 resolve issue 837 failing test (#838)
Removed the failing asn IP count test case
2022-10-27 13:57:40 +02:00
Shubham Rasal bab68a487f AS input support +asnmap integration (#821)
* Add asnmap integration

- Use PD's asnmap lib to get asn details

* Add AS input support [WIP]

* Add AS input support

- Add AS Number input support
- Update README.md to add AS input example
- Add test cases to test `targets()` function
- Refactor target function remove if-else with switch case

* Resolve merge conflicts

* Replace - with _ in asnResponse for json

* Replace - with _ in asnResponse for csv
2022-10-20 17:54:52 +05:30