16 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
Mzack9999 00d0977963 Adding Screenshot support (#1097)
* Adding Screenshot support

* adding headless body

* moving example into compilable file

* updating docs

* enabling store response with screenshot

* fixing output dir path

* fixing mod

* using native leakless

* splitting response+screenshot folders

* better handling json output

* readme update

* rel => abs path

* Added chromium into docker

* “Wipe them out. All of them.” – Darth Sidious

* utils bump

* go mod tidy

---------

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2023-04-27 01:07:06 +05:30
vrenzolaverace 686a2cced8 Update helpers libraries #850 (#851)
Use utils helpers libraries (#850)
2022-11-07 01:52:47 +05:30
forgedhallpass c48909f64f Minor fixes and improvements (#726)
* Added .idea to .gitignore

* Updated the README

* Added more verbose information on preset extractors

* removing deprecated ioutil

Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
2022-08-17 03:16:06 +04:00
mzack 1b89056d8a Adding max recursion level for self-dos on recursive load function 2021-10-16 14:37:54 +02:00
mzack 6804cda5e4 using new line as split token for data from file 2021-08-23 01:22:56 +02:00
mzack 7a59d6702b Improving cli parsing for Allow/Deny option 2021-08-22 21:07:23 +02:00
Mzack9999 810ebf8035 adding glob support 2021-04-28 14:43:44 +02:00
Mzack9999 cbe59db84b fixing lint errors 2020-12-20 17:14:07 +01:00
Mzack9999 2e5e78ffb1 [Feature] Adding multiple path support 2020-12-20 02:38:43 +01:00
Víctor Zamanillo 968262d967 Fixed a delay due to calling stat.Mode() twice 2020-09-29 10:22:46 +02:00
Víctor Zamanillo 47b70b9fb0 Fixed method signature 2020-09-28 12:39:33 +02:00
Víctor Zamanillo 6bde867d08 Handle data from char device on stdin
Fixes #96
2020-09-28 12:37:44 +02:00
Miguel Ángel Jimeno e648a161ac all: remove unneeded if/else statements in boolean return methods
Signed-off-by: Miguel Ángel Jimeno <miguelangel4b@gmail.com>
2020-08-25 20:35:59 +02:00
Mzack9999 98c203fa69 updating output flags 2020-07-30 23:01:48 +02:00
bauthard e974bb52e5 Initial commit 2020-05-29 09:37:55 +00:00