frida的js脚本处理正则的一个小坑

frida的server模式需要python支持,所以js脚本中的正则需要多一次转义

比如匹配"/proc/{数字pid}"

server:

paramPath.match("/proc/\\\\d+")

gadget:

paramPath.match("/proc/\\d+")

所以使用了正则的话,不能直接复制脚本到另一种模式下运行

posted @ 2019-05-24 16:17  带狗狗带  Views(890)  Comments(0Edit  收藏  举报