From 02d19684796f9efcb06efd1b31e8537fd95ef2ad Mon Sep 17 00:00:00 2001 From: heqnx Date: Tue, 20 May 2025 16:15:06 +0300 Subject: removed and updated files --- README.md | 6 +- generate-html.sh | 64 --------- pandoc/add-target-blank.lua | 7 - pandoc/assets/MorePerfectDOSVGA.ttf | Bin 78252 -> 0 bytes pandoc/assets/background.webm | Bin 2956357 -> 0 bytes pandoc/template.html | 261 ------------------------------------ 6 files changed, 1 insertion(+), 337 deletions(-) delete mode 100755 generate-html.sh delete mode 100644 pandoc/add-target-blank.lua delete mode 100644 pandoc/assets/MorePerfectDOSVGA.ttf delete mode 100644 pandoc/assets/background.webm delete mode 100644 pandoc/template.html diff --git a/README.md b/README.md index 9c5330e..2b1f4fa 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,12 @@ GitHub CVE Proof of Concept scraper, deployed with GitHub actions to fetch and clone any newly published CVE PoCs matching the format of `cve-`, into the `pocs/` directory. -Cloned repositories are not added as submodules and a workflow step renames all `.git` directories into `.git.bak`; this can be reverted to inspect commit history. - -You can find the live version hosted through GitHub Pages at [https://cve.heqnx.com](https://cve.heqnx.com) and a simple RSS feed at [https://cve.heqnx.com/feed.xml](https://cve.heqnx.com/feed.xml) +You can find the live version hosted at [https://heqnx.com/cve](https://heqnx.com/cve) and a simple RSS feed at [https://heqnx.com/cve/feed.xml](https://heqnx.com/cve/feed.xml) ## Run it yourself Compile `cve-poc-mon` from the `src/` directory with either `go build`, `make` for all targets, or `make ` for a specific target (e.g., `make linux-amd64`). -Set up your own GitHub Actions workflow; check [.github/workflows/cve-poc-mon.yaml](.github/workflows/cve-poc-mon.yaml) to see how it runs in this repo. - ## Cleanup steps for multiple binary blobs commited - check blobs diff --git a/generate-html.sh b/generate-html.sh deleted file mode 100755 index 1faeaf4..0000000 --- a/generate-html.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash - -usage() { - printf "%s\n" \ - "generate html page for available pocs" \ - "usage: $(basename ${0}) -o -p " - exit 1 -} - -while getopts "o:p:h" opts; do - case "${opts}" in - o) output="${OPTARG}";; - p) pocs="${OPTARG}";; - h) usage;; - *) usage;; - esac -done - -if test "${output}" && test "${pocs}"; then - date=$(date -u "+%Y-%m-%d %H:%M:%S") - mkdir -p "${output}" &>/dev/null - - if test -d pandoc/assets; then - cp -r pandoc/assets "${output}" - else - printf "%s\n" "[err] pandoc/assets/ dir not found" - exit 1 - fi - - if command -v pandoc &>/dev/null; then - count=$(cat "${pocs}/README.md" | wc -l) - size=$(du -sh "${pocs}" | awk '{print $1}') - if (tac "${pocs}/README.md" | pandoc \ - -s \ - --toc \ - --metadata "title=cve proof of concepts" \ - --metadata "date=${date} utc" \ - --metadata "rss_url=https://cve.heqnx.com/feed.xml" \ - --metadata "count=${count}" \ - --metadata "size=${size}" \ - --template pandoc/template.html \ - --lua-filter=pandoc/add-target-blank.lua \ - -o "${output}/index.html"); then \ - printf "%s\n" "[inf] successfully generated html" - else - printf "%s\n" "[err] error generating html" - fi - - if command -v tidy &>/dev/null; then - if tidy --indent yes --wrap 0 -m --quiet yes --indent-spaces 2 --tidy-mark no "${output}/index.html"; then - printf "%s\n" "[inf] prettified html" - else - printf "%s\n" "[err] failed to prettify html" - fi - else - printf "%s\n" "[warn] tidy not found, skipping html prettify" - fi - else - printf "%s\n" "[err] pandoc not found" - exit 1 - fi -else - usage -fi diff --git a/pandoc/add-target-blank.lua b/pandoc/add-target-blank.lua deleted file mode 100644 index 6061f76..0000000 --- a/pandoc/add-target-blank.lua +++ /dev/null @@ -1,7 +0,0 @@ -function Link(elem) - if not elem.attributes.target then - elem.attributes.target = "_blank" - elem.attributes.rel = "noopener" - end - return elem -end diff --git a/pandoc/assets/MorePerfectDOSVGA.ttf b/pandoc/assets/MorePerfectDOSVGA.ttf deleted file mode 100644 index bf70112..0000000 Binary files a/pandoc/assets/MorePerfectDOSVGA.ttf and /dev/null differ diff --git a/pandoc/assets/background.webm b/pandoc/assets/background.webm deleted file mode 100644 index 641f400..0000000 Binary files a/pandoc/assets/background.webm and /dev/null differ diff --git a/pandoc/template.html b/pandoc/template.html deleted file mode 100644 index 191de87..0000000 --- a/pandoc/template.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - cve-poc-mon - - - -
- -
- -
-

$title$

- - -
-
- $body$ -
- - - -- cgit v1.2.3