hluwa / frida-dexdump

A frida tool to dump dex in memory to support security engineers analyzing malware.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

frida.PermissionDeniedError

SuperYogurt opened this issue · comments

commented

unable to access process with pid 1333 due to system restrictions; try sudo sysctl kernel.yama.ptrace_scope=0, or run Frida as root

怎么解决

我这边APP加固后是双进程,运行python main.py后也是提示frida.PermissionDeniedError: unable to access process with pid 14667 due to system restrictions; try sudo sysctl kernel.yama.ptrace_scope=0, or run Frida as root

有什么办法可以Or, use command arguments这种方式?

commented

我这边APP加固后是双进程,运行python main.py后也是提示frida.PermissionDeniedError:由于系统限制,无法使用pid 14667访问进程;试试看sudo sysctl kernel.yama.ptrace_scope=0,或者以root身份运行Frida

有什么办法可以,或者使用命令参数这种方式?

一样360加固,因该是自己fork了一个子进程。脱壳的话可以用其他方法

Or, use command arguments:

-n: [Optional] Specify target process name, when spawn mode, it requires an application package name. If not specified, use frontmost application.
-p: [Optional] Specify pid when multiprocess. If not specified, dump all.
-f: [Optional] Use spawn mode, default is disable.
-s: [Optional] When spawn mode, start dump work after sleep few seconds. default is 10s.
-d: [Optional] Enable deep search maybe detected more dex, but speed will be slower.
-h: show help.

但是运行frida-dexdump提示命令不存在,需要怎么操作?望大佬解答一下

@wholegale39 python main.py -n com.xxxx.xxx -f

@wholegale39 python main.py -n com.xxxx.xxx -f

感谢,试了上述方法python main.py -p PID可以dump出加固后守护进程dex,不过这里面没有太多业务逻辑,尝试python main.py -p PID业务主进程,就提示return Session(self._impl.attach(self._pid_of(target)))
frida.PermissionDeniedError: unable to access process with pid 31708 due to system restrictions; try sudo sysctl kernel.yama.ptrace_scope=0, or run Frida as root

工具是不是没用了用真机也这样显示

commented

工具是不是没用了用真机也这样显示

你可以尝试切换frida 的版本。我最后就是这样解决的

@wholegale39 python main.py -n com.xxxx.xxx -f

加了-f后还是提示(即便时间设置为1s) frida.PermissionDeniedError: 不启动app的情况下 python main.py -n com.xxxx.xxx [Except] - Unable to inject into process: Cannot found process in
File "main.py", line 161, in choose
raise Exception("Cannot found <{}> process".format(pid)) 提示这个错误

这个问题有解决方案吗

各位大佬