margular / frida-skeleton Goto Github PK
View Code? Open in Web Editor NEW基于frida的安卓hook框架,提供了很多frida自身不支持的功能,将hook安卓变成简单便捷,人人都会的事情
License: MIT License
基于frida的安卓hook框架,提供了很多frida自身不支持的功能,将hook安卓变成简单便捷,人人都会的事情
License: MIT License
frida.enumerate_devices()无法列出usb设备,需要改用frida.get_device_manager().add_remote_device()的方式
需要修改webview的bypass脚本
Margular师傅
你们好,我是 CT Stack 安全社区的运营jarcis。发现您的frida-skeleton等工具非常优质,特邀您加入我们平台。因未找到您的联系方式,所以只能采取这样的形式,非常抱歉。
CT Stack 安全社区隶属于长亭科技,守护安全工具成长,可帮助运营、推广安全工具。每月评选优质工具打造专题月,可为工具量身定制玩法,集中收集工具使用反馈,辅助工具迭代。
如您有意向,可添加社区微信客服(客服号:CTStack)
当前需求,清除手机中的frida进程。
有没有比较好的脚本或合适的adb命令?
谢谢老大解答
你好,马格乐,我最近在使用frida-skeleton hook 某些app的时候,发现会提示两个应用进程名相同的报错,导致hook失败,请优化处理,谢谢
最好多放几张图
adb -s "bcc71b61" shell "su -c iptables -t nat -D OUTPUT -p tcp -j DNAT --to-destination 127.0.0.1:8888" Nothing /system/bin/sh: su: inaccessible or not found
发现提示这个
目前脚本报错只有错误提示信息,难以定位是哪一行导致的错误
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 6: invalid start byte
我使用Windows平台搭建adb及frida环境,而在Windows环境下运行主程序则会提示UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 6: invalid start byte
错误,我将项目文件夹lib.utils.shell.py中修改err = p.stderr.read().decode(encoding="unicode_escape").strip()
后,报错消失,但是又出现新的问题[ERROR] [WatchThread] error occurred when init frida thread: unknown arch:
想求助下如何在Win环境下顺利对进程进行hook呢
你好有本领,我好羡慕
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 6: invalid start byte
python -V
Python 3.8.8
python frida-skeleton.py -vip 8080 launcher3
...
[2021-08-07 19:25:15] [DEBUG] [Project|default] loading script for com.android.launcher3...
Fatal Python error: deallocating None
Python runtime state: initialized
Thread 0x000008c8 (most recent call first):
File "D:\tools\frida-skeleton\lib\utils\shell.py", line 23 in exec
File "D:\tools\frida-skeleton\lib\utils\adb.py", line 33 in unsafe_shell
File "C:\Users\tony\Anaconda3\lib\concurrent\futures\thread.py", line 57 in run
File "C:\Users\tony\Anaconda3\lib\concurrent\futures\thread.py", line 80 in _worker
File "C:\Users\tony\Anaconda3\lib\threading.py", line 870 in run
File "C:\Users\tony\Anaconda3\lib\threading.py", line 932 in _bootstrap_inner
File "C:\Users\tony\Anaconda3\lib\threading.py", line 890 in _bootstrap
Thread 0x00000e40 (most recent call first):
File "D:\tools\frida-skeleton\lib\core\frida_thread.py", line 212 in hook_apps
File "D:\tools\frida-skeleton\lib\core\frida_thread.py", line 80 in run
File "C:\Users\tony\Anaconda3\lib\threading.py", line 932 in _bootstrap_inner
File "C:\Users\tony\Anaconda3\lib\threading.py", line 890 in _bootstrap
Current thread 0x000003c4 (most recent call first):
File "D:\tools\frida-skeleton\lib\utils\adb.py", line 22 in devices
File "D:\tools\frida-skeleton\lib\core\watch_thread.py", line 40 in run
File "C:\Users\tony\Anaconda3\lib\threading.py", line 932 in _bootstrap_inner
File "C:\Users\tony\Anaconda3\lib\threading.py", line 890 in _bootstrap
Thread 0x000012ec (most recent call first):
File "frida-skeleton.py", line 57 in start
File "frida-skeleton.py", line 86 in <module>
比如我使用fiddler,监听的端口为8888,那么我的命令应该是 python frida-skeleton.py -vip 8888 包名 这样子吗
现在是hook所有的设备,在多个设备时,不能hook指定设备,使用存在不方便。麻烦增加hook时可指定设备功能,谢谢。
模拟器是夜神加burp,按照requirements安装的依赖包,
报错如下
[2021-09-02 04:29:42] [DEBUG] [Shell] adb start-server
Traceback (most recent call last):
File "D:\frida-skeleton\frida-skeleton.py", line 86, in
skeleton.start()
File "D:\frida-skeleton\frida-skeleton.py", line 50, in start
Adb.start_server()
File "D:\frida-skeleton\lib\utils\adb.py", line 18, in start_server
return Shell().exec('adb start-server', supress_error=True)
File "D:\frida-skeleton\lib\utils\shell.py", line 20, in exec
p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE, close_fds=True)
File "C:\Users\19804\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\19804\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.