ExecuteWithCallback
: Callback does not fire if UseOutputWriter
is configured
#4329
Labels
Milestone
ExecuteWithCallback
: Callback does not fire if UseOutputWriter
is configured
#4329
Nuclei version:
github.com/projectdiscovery/nuclei/v3/lib:latest
Current Behavior:
When
NewNucleiEngine
is configured withUseOutputWriter
the callback function withinExecuteWithCallback
never fires.Expected Behavior:
On detection of a result, the callback function fires, irrespective of
OutputWriter
configurationSteps To Reproduce:
Example: Configured with
OutputWriter
- Callback functionFoundResult
does not executeExample: No
OutputWriter
- Callback functionFoundResult
executes on each resultWorkaround
Potential workaround by not defining
NewStandardWriter
and reimplementing the conversion to JSONL to save to disk - However, this would then not log errors to theErrorLogFile
available inNewStandardWriter
optionsThe text was updated successfully, but these errors were encountered: