frida hook js 如何遍历输出map
查看源码得知某入参为map类型,但是直接输出会显示[object Object],可用迭代器来遍历map集合输出
var class0 = Java.use("com.xxxx.xx") class0.xxx.implementation = function (map) { var result = ""; var keyset = map.keySet(); var it = keyset.iterator(); while(it.hasNext()){ var keystr = it.next().toString(); var valuestr = map.get(keystr).toString(); result += valuestr; } send(result); return this.xxx(map); }