aboutsummaryrefslogtreecommitdiff
path: root/inf/gen_pwnage.js
diff options
context:
space:
mode:
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);