aboutsummaryrefslogtreecommitdiff
path: root/inf/gen_pwnage.js
diff options
context:
space:
mode:
authorspv <spv@spv.sh>2025-05-04 20:12:34 -0400
committerspv <spv@spv.sh>2025-05-04 20:12:34 -0400
commite2d1d18715a7c5b80cce02a96b09a5d57de38072 (patch)
tree59ff2ca2227675aaf4173ec4b6c521fff31532ed /inf/gen_pwnage.js
flawless victory
Diffstat (limited to 'inf/gen_pwnage.js')
-rwxr-xr-xinf/gen_pwnage.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/inf/gen_pwnage.js b/inf/gen_pwnage.js
new file mode 100755
index 0000000..f1c4a76
--- /dev/null
+++ b/inf/gen_pwnage.js
@@ -0,0 +1,11 @@
+#!/usr/bin/env node
+
+const zlib = require('zlib')
+const fs = require('fs')
+
+const payload = Buffer.from(fs.readFileSync(process.argv[2])).toString("base64");
+const wrapper = fs.readFileSync("mal/wrapper.js", "utf8").replace("{}", payload);
+
+console.error(`crc32: ${zlib.crc32(wrapper)}`);
+
+console.log(wrapper);