Frida Java基础类型
1、Java中 Int类型var Integerclass = Java.use("java.lang.Integer");
var myint = Integerclass.$new(1440);
2、Java中 Long类型
var Longclass = Java.use("java.lang.Long");
var myint = Longclass.$new(27893952512)
3、Java中 ByteArray类型
js传给python写法如下:
// js中send(byte[]数组)
def on_message(message, data):
if message['type'] == 'send':
data = message['payload']
for i in range(len(data)):
data = data & 0xff
open("tmp",'wb').write(bytearray(data))
else:
pass
python传给js写法如下:
var a = Java.array('byte', [ 0xac,0x37,0x43,0x4f,0xaf,0xa8]);
4、Java.openClassFile("/data/local/tmp/gson.dex").load();
var gson = Java.use("com.google.gson.Gson");
var Jgson = gson.$new();
Jgson.toJson(tmp)
页:
[1]