Initial dump of scripts

This commit is contained in:
2025-09-09 16:49:56 +01:00
parent b828eb88c2
commit 3f9466f287
4 changed files with 186 additions and 0 deletions

14
cc-vulnerabilites Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
recipeList=$(curl https://recipes.coopcloud.tech/recipes.json | jq -r '.[].name' | sed 's/-/ /g')
recipe=$(./bin/gum choose $recipeList)
echo $recipe
vulnlist=$(curl "https://services.nvd.nist.gov/rest/json/cves/2.0?keywordSearch=$recipe&keywordExactMatch")
echo $vulnList | jq -r \
'["date", "id", "description", "score"],
(.vulnerabilities[-10:] | reverse | .[].cve | [
.published,
.id,
(.descriptions[] | select(.lang == "en") | .value),
(.metrics.cvssMetricV31[] | select(.source == "nvd@nist.gov") | .cvssData.baseScore)
]) | @csv' | ./bin/gum table --widths=23,14,60