9 Commits

Author SHA1 Message Date
Kral d0081af3ec fix: improve error handling and fix bugs (#2499)
* code quality: improve error handling and fix bugs

- Fix bug: return err instead of closeErr in DecodeData error path (httpx.go)
- Improve error handling for strconv.Atoi calls in multiple locations
- Change hammingDistanceThreshold from var to const since it's never modified
- Fix redundant return statement in ListFilesWithPattern
- Improve port parsing to handle empty port strings explicitly

* runner: keep input counters incrementing under -skip-dedupe

Revert the defensive strconv.Atoi guard around the SkipDedupe branches:
values stored in r.hm are always integer strings written by this same
code path, so the parseErr/cnt>0 check is unreachable in practice, and
when taken literally it skipped the numHosts/numTargets increment for
duplicate inputs.

---------

Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
2026-05-20 06:41:57 +02:00
Kian-Meng Ang f08a003d29 Fix typos
Found via `codespell -L ines,te,ue,occured,ans`
2025-03-11 00:04:31 +08:00
Ice3man 674b792770 Fixed connection pooling with cancelable timeout (#763) 2022-09-15 22:57:26 +05:30
Ice3man 90a32dd65f Added connection pooling for jarm conn + fastdialer (#707)
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
2022-07-25 18:40:06 +05:30
Its Hex ! 8d0a34f28a Update go.mod (#689)
* Exposing regex matches to json output (#668)

* Update runner.go

Fix regex json output.

* small refactor

Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>

* Update go.mod

* fixing jarm-go reference

* removing redundant declaration

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: Dothelm <49758889+st3rv04ka@users.noreply.github.com>
Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
2022-07-11 03:09:43 +05:30
Mzack9999 dfab811ff9 removing redundant regex (#676) 2022-07-05 23:37:08 +05:30
Sami ccf0c9ddc5 Issue 549 jarm algorithm (#567)
* jarm hash

* lint error fix

* remove default jarm value if jarm not calculated

* jarm cli boolean flag

* removed unused hash type

* readme update

* example update

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
2022-04-08 18:50:03 +05:30
Sami 03ded973d8 hash improvement (#528)
* hash improvement

* mmh3 conversion to int32

* misc update

Co-authored-by: sandeep <sandeep@projectdiscovery.io>
2022-03-01 12:05:06 +05:30
M09Ic e2b0c1683b Add hash flag, to support multi body hash type. (#517)
* Add hashes flag, to support multi body hash type. issue:489 and issue:488

* go mod update

* Add hash type validate for -hash flag

Co-authored-by: sandeep <sandeep@projectdiscovery.io>
Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
2022-02-15 17:32:33 +05:30