frida-dexdump icon indicating copy to clipboard operation
frida-dexdump copied to clipboard

frida.PermissionDeniedError

Open SuperYogurt opened this issue 4 years ago • 10 comments

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

怎么解决

SuperYogurt avatar Aug 06 '20 03:08 SuperYogurt

我这边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这种方式?

wholegale39 avatar Aug 11 '20 08:08 wholegale39

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

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

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

SuperYogurt avatar Aug 11 '20 09:08 SuperYogurt

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 avatar Aug 11 '20 09:08 wholegale39

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

hluwa avatar Aug 11 '20 09:08 hluwa

@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

wholegale39 avatar Aug 12 '20 02:08 wholegale39

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

towy avatar Oct 09 '20 04:10 towy

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

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

SuperYogurt avatar Oct 26 '20 01:10 SuperYogurt

@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 <None> process in File "main.py", line 161, in choose raise Exception("Cannot found <{}> process".format(pid)) 提示这个错误

vividmuse avatar Oct 27 '20 20:10 vividmuse

这个问题有解决方案吗

machao629 avatar Jan 24 '21 01:01 machao629

各位大佬

machao629 avatar Jan 24 '21 01:01 machao629