Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行提示设备找不到? #4

Closed
shen771 opened this issue Jan 13, 2022 · 7 comments
Closed

运行提示设备找不到? #4

shen771 opened this issue Jan 13, 2022 · 7 comments

Comments

@shen771
Copy link

shen771 commented Jan 13, 2022

$ python camille.py com.tencent.mm -t 3


.o88b. .d8b. .88b d88. d888888b db db d88888b
d8P Y8 d8' 8b 88'YbdP88 88' 88 88 88' 8P 88ooo88 88 88 88 88 88 88 88ooooo 8b 88~~~88 88 88 88 88 88 88 88~~~~~ Y8b d8 88 88 88 88 88 .88. 88booo. 88booo. 88. Y88P' YP YP YP YP YP Y888888P Y88888P Y88888P Y88888P

        https://github.com/zhengjim/camille

[*] hook error
device not found

但是执行frida-ps -U 是可以查看进程的
设备是pixel 安卓8.1.0的版本

@zhengjim
Copy link
Owner

adb shell进去看下 frida-server服务还在嘛?

@shen771
Copy link
Author

shen771 commented Jan 13, 2022

frida-server在的,magisk的hide也关掉了

@zhengjim
Copy link
Owner

那直接在目录下运行这个能hook嘛?
frida -U -l script.js -f com.tencent.mm --no-pause

@shen771
Copy link
Author

shen771 commented Jan 13, 2022

可以的,屏幕上微信也启动了

$ frida -U -l script.js -f com.tencent.mm --no-pause
____
/ _ | Frida 15.1.1 - A world-class dynamic instrumentation toolkit
| (| |
> _ | Commands:
/
/ |_| help -> Displays the help system
. . . . object? -> Display information about 'object'
. . . . exit/quit -> Exit
. . . .
. . . . More info at https://frida.re/docs/home/
Spawning com.tencent.mm...
Spawned com.tencent.mm. Resuming main thread!
[Pixel::com.tencent.mm]->

@zhengjim
Copy link
Owner

zhengjim commented Jan 13, 2022

那应该没问题才对,有点奇怪。或者你试试创建个py文件。

import frida

print(frida.get_local_device())
print(frida.get_usb_device())
print(frida.get_remote_device())

运行下看看这些值。

@shen771
Copy link
Author

shen771 commented Jan 13, 2022

$ python test.py com.tencent.mm -t 3
Device(id="local", name="Local System", type='local')
Traceback (most recent call last):
File "C:\Users\admin\camille\test.py", line 4, in
print(frida.get_usb_device())
File "C:\Users\admin\AppData\Roaming\Python\Python39\site-packages\frida_init_.py", line 89, in get_usb_device
return get_device_matching(lambda d: d.type == 'usb', timeout, **kwargs)
File "C:\Users\admin\AppData\Roaming\Python\Python39\site-packages\frida_init_.py", line 97, in get_device_matching
return get_device_manager().get_device_matching(predicate, timeout, **kwargs)
File "C:\Users\admin\AppData\Roaming\Python\Python39\site-packages\frida\core.py", line 26, in wrapper
return f(*args, **kwargs)
File "C:\Users\admin\AppData\Roaming\Python\Python39\site-packages\frida\core.py", line 58, in get_device_matching
return Device(self._impl.get_device_matching(lambda d: predicate(Device(d)), raw_timeout))
frida.InvalidArgumentError: device not found

@zhengjim
Copy link
Owner

你将程序106行的get_usb_device 换成get_remote_device试试 。或者改get_usb_device(timeout= 1000)。

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

No branches or pull requests

2 participants