| apps | ||
| source | ||
| utils | ||
| .gitignore | ||
| config.py | ||
| main.py | ||
| parse.js | ||
| README.md | ||
| requirements.txt | ||
Welcome to arida 👋
基于
FastAPI实现的Frida-RPC工具,只需开发好相对应app的Frida-Js脚本,即可自动生成相应的基于FastAPI的Frida-RPC工具
🏠 Homepage
✨ Demo
Do By You Self!
实现原理
Python执行PyexecJs通过Js的AST树结构获取Frida-Js脚本中rpc.exports的方法以及对应方法的参数个数,根据方法名和参数个数通过types.FunctionDef从Python AST字节码来动态生成新的Function对象,并且结合pydantic的create_model自动生成的参数模型注册到FastAPI的路由系统中,实现Frida-RPC的功能。
核心功能
-
对接多个
App的RPC接口暴露 -
自动转化
Js export方法变成接口 -
自动生成接口文档
Install
1. git clone git@github.com:lateautumn4lin/arida.git
2. conda create -n arida python==3.8
3. conda install --yes --file requirements.txt
Usage
1. uvicorn main:app --reload
2. watch 127.0.0.1:8000/docs
eg:
Run tests
uvicorn main:app --reload
eg:
参考资料
-
https://www.cnblogs.com/olivetree123/p/5067685.html(python动态创建函数)
-
http://blog.soliloquize.org/2016/07/06/Python%E5%8A%A8%E6%80%81%E5%88%9B%E5%BB%BA%E5%87%BD%E6%95%B0/
-
https://github.com/xonsh/xonsh/pull/3304/files(python AST解析参考)
Author
👤 Lateautumn4lin
- Website: https://cloudcrawler.club/
- Github: @Lateautumn4lin
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2020 Lateautumn4lin.
This project is 暂无 licensed.
This README was generated with ❤️ by readme-md-generator


