aboutsummaryrefslogtreecommitdiff
path: root/inf/gen_pwnage.js
blob: f1c4a7690f00b76c2483616746382fa94cdbd3fa (plain)
1
2
3
4
5
6
7
8
9
10
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);