-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add JSON formatting and include CVE Description in JSON output #10
Conversation
Hi @bernard-yip. thanks for your contribution. before starting the review of the PR I'd suggest to add something to make sure
|
Hey @edoardottt , definitely! What distribution is the Linux server (Ubuntu, RHEL, CentOS) and would you prefer the snippet to be in the Suggested snippet: jq --help >/dev/null || sudo apt update -y && sudo apt install -y jq |
I'm not sure this works correctly... why If jq is installed apt is called anyway.. am i wrong? @bernard-yip |
Hi @edoardottt /dev/null redirects the output so that we don't see it since we have no use for it. The command above only performs the |
On my machine it calls apt update and install even if jq is already installed:
|
Urgh my bad, I forgot the parenthesis
|
Hi @bernard-yip ! Sorry for the late response, I've not been very active on GitHub lately. I've created a new branch for development called I don't see any red flag in the code :) If you don't have any addition/deletion to commit, I'll merge this is One more thing: can you confirm that this PR doesn't add the description in the markdown format? Just to be on the same page, since #8 will require new additions. edoardo |
Feel free to merge! You will have to add the check if jq is installed in your update script and it will be good to go. Yes, the PR doesn't add the markdown format. Only the JSON part. |
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
Fixes issues: #4 and #8
Is your feature request related to a problem? Please describe.
When looking for nuclei templates to write, it is frustrating to scour through the list to read the description of each CVE to identify if there's value in writing a nuclei template.
Changes:
scripts/check-missing-templates.sh
scripts/update.sh
to include aall.json
for the JSON output.You will need to install
jq
for the edited script to work.brew install jq
apt install jq
oryum install jq
Let me know if you want any changes and if the script works for you.