Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuclei 'stats' build : scan events + chart utils #5032

Merged
merged 4 commits into from
Apr 16, 2024
Merged

Conversation

tarunKoyalwar
Copy link
Member

@tarunKoyalwar tarunKoyalwar commented Apr 11, 2024

Proposed Changes

  • updates default types.Options with payload-concurrency and probe-concurrency (cc: @Ice3man543 , @ShubhamRasal )
  • simply put this pr adds all utilities / tools based on experimental scan events => https://github.com/tarunKoyalwar/nuclei-charts
  • when nuclei is built with -tags=stats and executed on targets , it will create a directory in current working directory with pattern nuclei-stats-xxxx ,
  • this directory can then be passed to scan-charts cmd / utility that visualizes by generating static html using apache e-charts

Usage

step 1) make build-stats -> creates new nuclei-stats binary
step 2) run create binary on target[s]

 ./nuclei-stats -u http://honey.scanme.sh -c 300 -stats 

step 3) make scan-charts -> create new scan-charts binary
step 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

$ ./scan-charts -dir nuclei-stats-20240411171731                                            
[+] Scan Info
  - Name: nuclei-stats
  - Target Count: 1
  - Template Count: 7853
  - Template Concurrency: 300
  - Payload Concurrency: 25
  - Retries: 1
  - Total Events: 12774

⇨ http server started on [::]:9000

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 building

go build -tags=stats -o "nuclei-stats" cmd/nuclei/main.go

@tarunKoyalwar tarunKoyalwar self-assigned this Apr 11, 2024
@tarunKoyalwar tarunKoyalwar changed the title template stats nuclei 'stats' build : scan events + chart utils Apr 11, 2024
@tarunKoyalwar tarunKoyalwar marked this pull request as ready for review April 11, 2024 14:44
@ehsandeep ehsandeep merged commit ea2e13a into dev Apr 16, 2024
12 checks passed
@ehsandeep ehsandeep deleted the template-stats branch April 16, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants