Replies: 1 comment
-
I opened a PR with a proposed change here: #2291 The PR allows a developer who is using Nuclei embedded to implement their own |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Nuclei embedded as a lib, where I provide my own implementation of the output.Writer to collect all of the
ResultEvent
s andInternalEvent
s.In the case where the hostname is not resolvable or reachable or times out, no function in the
writer
is called at all. In my embedded usecase, I'd very much like to see if the reason a particular host was not scanned.As an example, errors are already returned from the various Dial* functions in fastdialer:
NoAddressFoundError
CouldNotConnectError
... but do not propagate up into the
output.Writer
. It would help me to know if the reason a host lacks an event is due to unresolvable, unreachable, timeout, etc.I'm not sure the best way to achieve this. Perhaps another
output.Writer
callback function? Maybe include the error somewhere in theInternalEvent
that is passed to theoutput.Writer
'sWriteFailure
callback function?Thanks for considering!
Beta Was this translation helpful? Give feedback.
All reactions