Open sullo opened 2 years ago
@sullo since nuclei have -stats
option which outputs similar information on default or custom intervals, do you think we wanted to print the same information upon keypress as default?
It was something supported initially before we moved to a dedicated option.
I'd second @sullo that this would be helpful. For instance, if you start a scan thinking it will be fast so you don't include -stats but it ends up taking a long time, it would be nice to be able to get the status by pressing a key instead of canceling the scan and starting it over with -stats to see what the estimated time to completion is.
I want to re-cast my vote for bringing back the original static progress bar which was present in the original builds of Nuclei way back in the day. I still don't understand the reasoning for ditching something that worked great and looked nice for something that fills the screen up with noise...
https://www.pixelstech.net/article/1596946473-A-simple-example-on-implementing-progress-bar-in-GoLang https://golangexample.com/go-simple-progress-bar-writing-to-output/
I'd second @sullo that this would be helpful. For instance, if you start a scan thinking it will be fast so you don't include -stats but it ends up taking a long time, it would be nice to be able to get the status by pressing a key instead of canceling the scan and starting it over with -stats to see what the estimated time to completion is.
Starting over isn't necessary as -resume
exists for a reason. 👍🏻
Oh yeah, duh. Regardless, it'd still be useful to have some sort of way to get the progress without including the flag. The progress bar you mentioned would probably be better than a key interrupt.
The progress bar was indeed very nice. Anyway, it brought in a lot of problems since it was interfering with stdin/stdout, leading to destructive effects on data processing and usage of the tool within pipelines. Two options are now available:
Without enabling debug mode, it would be nice to obtain status of the scan by pressing a key in the terminal where nuclei is running.
This is supported by both nmap and nikto by pressing spacebar.
nmap:
nikto:
This will help with long-running or seemingly never ending scans where you are not sure if it has completely stopped or the target(s) is just slow. It will help make an informed decision on whether or not to cancel.