-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[feature] Add feature to remove timestamp from results #911
Comments
Just in case it takes a few cycles for them to pick up this request, this is an easy post-process fix:
Good luck out there! \m/ |
Thanks for your comment! However, while using this command, the output still remains with the timestamp (and causes anew to fail) |
Yeah, that's my bad, I failed to take into account the date in the timestamp, try this instead:
|
Hello @Tedixx, This can be achieved easily in multiple ways. One would be what @geeknik showed, but the easiest is probably to use: Example outputs: $ cat nucleiOutput-14.txt
[2021-06-16 19:16:22] [wordpress-directory-listing] [http] [info] http://localhost/wp-includes/
[2021-06-16 19:16:26] [tech-detect:wordpress] [http] [info] http://localhost
[2021-06-16 19:16:26] [tech-detect:apache] [http] [info] http://localhost
[2021-06-16 19:16:26] [tech-detect:php] [http] [info] http://localhost
[2021-06-16 19:16:30] [wp-license-file] [http] [info] http://localhost/license.txt
$ cat nucleiOutput-14.txt | sort -k3
[2021-06-16 19:16:26] [tech-detect:apache] [http] [info] http://localhost
[2021-06-16 19:16:26] [tech-detect:php] [http] [info] http://localhost
[2021-06-16 19:16:26] [tech-detect:wordpress] [http] [info] http://localhost
[2021-06-16 19:16:22] [wordpress-directory-listing] [http] [info] http://localhost/wp-includes/
[2021-06-16 19:16:30] [wp-license-file] [http] [info] http://localhost/license.txt
$ cat nucleiOutput-14.txt | cut -f 3- -d' ' | sort
[tech-detect:apache] [http] [info] http://localhost
[tech-detect:php] [http] [info] http://localhost
[tech-detect:wordpress] [http] [info] http://localhost
[wordpress-directory-listing] [http] [info] http://localhost/wp-includes/
[wp-license-file] [http] [info] http://localhost/license.txt
admin@ip-172-31-14-91:/var/lib/jenkins/workspace/test-maste In my opinion it does not worth adding a new flag to achieve this. |
Thanks for your feedback @geeknik and @forgedhallpass . Your commands are helpful and get most of the job done. However, I still feel like the -no-timestamp command is needed due to the following reasons;
This caused that only half of my results were being shown. By introducing a -no-timestamp flag, this error could have been prevented. In my opinion, those two reasons show it is worth adding a new flag. |
As mentioned in my previous comment, the easiest way is just to use p.s. I'd like to take a look at an anonymized outputfile of yours to figure out what the actual problem with my |
It looks like the timestamp information was intended to add into JSON output only - #468 as such we can also consider to remove this information from CLI output to make it automation friendly. |
I hope that means a |
In my opinion, every command would do, as long as nuclei prints output without timestamp (and no additional command is needed). A config approach like @forgedhallpass I will send you the output file later today/tomorrow. |
@Tedixx This flag has been added to disable printing time-stamp information to CLI here b7e3eec, we are also considering having a single CLI flag in the future that can define/control all the information gets printed to CLI, so in that way, users can have complete control over all the fields printed to CLI. |
Thanks a lot! |
Is your feature request related to a problem? Please describe.
Due to the timestamp, it is hard to sort unique vulnerabilities, e.g. with anew.
Describe the solution you'd like
Add flag -no-timestamp flag to remove the timestamp from output
The text was updated successfully, but these errors were encountered: