Parte 4

1
2
frida-boot:~/code$ cp ../software/crypt.c .
frida-boot:~/code$ gcc crypt.c -o crypt
1
./crypt
1
2
3
onEnter: function(args){ 
console.log(hexdump(args[0]));
}
1
2
3
4
test_pin(0x7ffd83bf4952)
0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
7ffd83bf4952 31 32 33 34 0a 00 00 00 00 00 00 00 00 00 10 62 1234...........b
7ffd83bf4962 44 16 d4 55 00 00 0a 5d 75 49 de 7f 00 00 58 4a D..U...]uI....XJ
1
2
3
4
5
6
onEnter: function(args) {
console.log("test_pin(" + args[0].readCString().trim() + ")")
}

test_pin(1234)
=> ret: 0x0

Hecho!!!, tenemos el pin.