-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Markdown Export Sorting #3961
Merged
ehsandeep
merged 3 commits into
projectdiscovery:dev
from
kchason:3596-markdown-export-sorting
Jul 21, 2023
Merged
Markdown Export Sorting #3961
ehsandeep
merged 3 commits into
projectdiscovery:dev
from
kchason:3596-markdown-export-sorting
Jul 21, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Documentation has been updated in projectdiscovery/nuclei-docs#162 |
tarunKoyalwar
approved these changes
Jul 20, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm !
$ MARKDOWN_EXPORT_SORT_MODE="severity" ./nuclei -l targets.txt -c 2000 -me data -stats
__ _
____ __ _______/ /__ (_)
/ __ \/ / / / ___/ / _ \/ /
/ / / / /_/ / /__/ / __/ /
/_/ /_/\__,_/\___/_/\___/_/ v2.9.9
projectdiscovery.io
[INF] Current nuclei version: v2.9.9 (latest)
[INF] Current nuclei-templates version: v9.5.8 (latest)
[INF] New templates added in latest release: 113
[INF] Templates loaded for current scan: 6424
[INF] Targets loaded for current scan: 2
[INF] Templates clustered: 1179 (Reduced 2240 Requests)
[mismatched-ssl-certificate] [ssl] [low] scanme.sh:443 [CN: scanme]
[ssl-issuer] [ssl] [info] scanme.sh:443 [pd]
[self-signed-ssl] [ssl] [low] scanme.sh:443
[weak-cipher-suites:tls-1.0] [ssl] [medium] scanme.sh:443 [[tls10 TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA]]
[INF] Using Interactsh Server: oast.me
[weak-cipher-suites:tls-1.1] [ssl] [medium] scanme.sh:443 [[tls11 TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA]]
[ssl-issuer] [ssl] [info] hackerone.com:443 [DigiCert Inc]
[ssl-dns-names] [ssl] [info] hackerone.com:443 [hackerone.com,www.hackerone.com,api.hackerone.com]
[0:00:05] | Templates: 6424 | Hosts: 2 | RPS: 178 | Matched: 7 | Errors: 760 | Requests: 893/19486 (4%)
[xss-deprecated-header] [http] [info] https://hackerone.com [1; mode=block]
tarunKoyalwar
added
the
Type: Enhancement
Most issues will probably ask for additions or changes.
label
Jul 20, 2023
thank you @kchason for adding this. |
ehsandeep
approved these changes
Jul 21, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Addresses #3596 by adding support for a
MARKDOWN_EXPORT_SORT_MODE
environment variable when the-me
/-markdown-export
is present. This allows the following options:template
sorts all markdown report files into a subdirectory based on the template IDseverity
sorts all markdown report files into a subdirectory based on the severity of the templatehost
sorts all markdown report files into a subdirectory based on the hostname of the findingAny other value keeps all markdown report files in the same root directory specified by the
-me
/-markdown-export
flag.In all cases, the
index.md
is at the root of the markdown export directory, and relative links are updated to include subdirectory paths if appropriate.Checklist