Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

frida.PermissionDeniedError #14

Open
SuperYogurt opened this issue Aug 6, 2020 · 10 comments
Open

frida.PermissionDeniedError #14

SuperYogurt opened this issue Aug 6, 2020 · 10 comments

Comments

@SuperYogurt
Copy link

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

怎么解决

@wholegale39
Copy link

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

@SuperYogurt
Copy link
Author

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

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

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

@wholegale39
Copy link

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提示命令不存在,需要怎么操作?望大佬解答一下

@hluwa
Copy link
Owner

hluwa commented Aug 11, 2020

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

@wholegale39
Copy link

@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

@towy
Copy link

towy commented Oct 9, 2020

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

@SuperYogurt
Copy link
Author

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

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

@vividmuse
Copy link

vividmuse commented Oct 27, 2020

@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)) 提示这个错误

@machao629
Copy link

这个问题有解决方案吗

@machao629
Copy link

各位大佬

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants