Skip to content

Instantly share code, notes, and snippets.

View Cronick's full-sized avatar

Cronick

  • The Control Room
View GitHub Profile
@Cronick
Cronick / peacock.js
Created October 1, 2022 22:07 — forked from xhlove/peacock.js
peacock HMAC key frida hook script, use frida 14.2.18
function jhexdump(array) {
if(!array) return;
console.log("---------jhexdump start---------");
var ptr = Memory.alloc(array.length);
for(var i = 0; i < array.length; ++i)
Memory.writeS8(ptr.add(i), array[i]);
console.log(hexdump(ptr, {offset: 0, length: array.length, header: false, ansi: false}));
console.log("---------jhexdump end---------");
}