nuclei 'stats' build : scan events + chart utils #5032
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
types.Options
withpayload-concurrency
andprobe-concurrency
(cc: @Ice3man543 , @ShubhamRasal )-tags=stats
and executed on targets , it will create a directory in current working directory with patternnuclei-stats-xxxx
,scan-charts
cmd / utility that visualizes by generating static html using apache e-chartsUsage
step 1)
make build-stats
-> creates newnuclei-stats
binarystep 2) run create binary on target[s]
./nuclei-stats -u http://honey.scanme.sh -c 300 -stats
step 3)
make scan-charts
-> create newscan-charts
binarystep 4) pass newly created directory to scan-charts and it will start a minimal html server which has 4 different types of charts based on logged events from previous scan
Note
stats ( aka events) are not logged and the logic related to that is also not present in default build of nuclei , to enable this functionality one needs to pass
stats
tag when installing or buildinggo build -tags=stats -o "nuclei-stats" cmd/nuclei/main.go