Open randolphcyg opened 11 months ago
If call defer interactClient.Close()
,results []*output.ResultEvent
will be empty when the second sacan ends;
If not call defer interactClient.Close()
,the upper function will not wait for all the results output;
I do not known what factor affects.
I just want to get the ummary output of a scan, so I can record the vulnerability with it's taskID field.
Has this problem been solved?
When Nuclei is called multiple times as a go service, outputWriter.WriteCallback only outputs the result of the request after the first service start
I refer to the v2/examples/simple.go file, encapsulate the logic of calling the nuclei engine, and use the NewMockOutputWriter of the testutils package, but only after the service starts, the first call will write the scan result to outputWriter.WriteCallback. Through debug , each call run the engine. execute, but the second call will not output the result, I do not know how to solve it.
Nuclei version:
latest version: 2.9.8
Code:
Running log:
Debug:
only the first call print nuclei log [[INF] Using Interactsh Server: oast.live], after debug, confirm each call will run into engine.Execute, now i have no idea..