14 Commits
Author SHA1 Message Date
x-stp 3206a8b244 fix(netlas): close body on err path, drop unreachable status checks
Addresses CodeRabbit review.
2026-04-18 15:37:55 +02:00
x-stp c61d1e9be6 fix(chinaz): accept empty arrays, check ValueType over truthiness
Addresses CodeRabbit review: jsoniter's ToBool returns false for empty arrays as well as missing keys, so a valid response with ContributingSubdomainList: [] would incorrectly trip the shape-mismatch branch. Switch to ValueType() != ArrayValue; the iteration loop handles empty arrays naturally (0 results, no error emitted).
2026-04-18 15:29:57 +02:00
Pepijn van der Stap 664f5b740f Merge branch 'dev' into fix/mortal-combat-round-one 2026-04-18 14:57:34 +02:00
x-stp b9ef679344 fix(chinaz): check ReadAll err, report shape mismatch instead of stale nil
Two bugs in one spot: io.ReadAll's error was never checked, so a partial/empty body fell into the else branch unnoticed; and that else branch emitted Error: err where err was whatever ReadAll returned — almost always nil. The real signal ("response didn't contain Result.ContributingSubdomainList") was lost. Check ReadAll up front and synthesize a real error for the shape-mismatch case. Also flattens the happy path.
2026-04-18 14:55:16 +02:00
x-stp 01569ae344 fix(c99): surface transport errors to results channel
Same bug as shodan: SimpleGet error path returned without sending an Error result. Emit it and increment s.errors.
2026-04-18 14:55:16 +02:00
x-stp 9760a965dd fix(shodan): surface transport errors to results channel
On session.SimpleGet failure the source returned without emitting an Error result, so stats under-reported and callers saw a silent zero. Emit the error and bump s.errors like every other source does.
2026-04-18 14:55:16 +02:00
x-stp 75f3c283f0 fix(intelx): remove dead read after decoder drained body
jsoniter.NewDecoder(resp.Body).Decode(...) drains the body, so the subsequent io.ReadAll read 0 bytes and its error branch was unreachable. Delete the dead read and drop the now-unused io import.
2026-04-18 14:55:16 +02:00
x-stp 14103b5433 fix(hackertarget): drop duplicate apikey query param 2026-04-18 14:50:35 +02:00
Pepijn van der Stap d58cda0aec Merge branch 'dev' into fix/netlas-community-cap 2026-04-18 14:42:13 +02:00
x-stp 7fc6da453d fix(netlas): cap dl size to Community limits.
Widens two 429-only branches to any non-200, moves status status check before ReadAll, and addresses "ressponse" typos; no compat breaking introductions; see #1765.
2026-04-18 14:37:51 +02:00
x-stp d6282b0a89 refactor(submd): extract ctx-aware send helpers, flatten Run() 2026-04-13 13:45:46 +02:00
x-stp 9ea2b18e41 fix(submd): guard non-200 response, ctx-aware error send 2026-04-13 08:54:58 +02:00
x-stp c64aa32dbd Merge branch 'dev' of github.com:x-stp/subfinder into feat/submd-dev
# Conflicts:
#	pkg/passive/sources.go
#	pkg/passive/sources_test.go
2026-04-09 09:29:37 +02:00
x-stp ae1c9a6e32 feat: intro sub.md passive sub dm source
Works anonymously out of the box; can work with api for more parallel req
2026-04-09 08:32:04 +02:00