Inject python into other processes and implement Hook and active calls, supporting x86 and x64
Project description
原理讲解
功能
将注入Python注入到任意进程后,实现hook和内部函数调用
安装
pip install py-process-hooker==0.1.2
使用
以微信进程为例, 使用Python运行以下代码就会监听并执行当前目录下的py文件。具体看WeChat-PyRobot
from py_process_hooker import inject_python_and_monitor_dir
if __name__ == "__main__":
process_name = "WeChat.exe"
open_console = True
inject_python_and_monitor_dir(process_name, __file__, open_console=open_console)
案例
- 在windows11上编译python
- 将python注入到其他进程并运行
- 注入Python并使用ctypes主动调用进程内的函数和读取内存结构体
- 调用汇编引擎实战发送文本和图片消息(支持32位和64位微信)
- 允许Python加载运行py脚本且支持热加载
- 利用汇编和反汇编引擎写一个x86任意地址hook,实战Hook微信日志
- 封装Detour为dll,用于Python中x64函数 hook,实战Hook微信日志
- 实战32位和64位接收消息和消息防撤回
- 实战读取内存链表结构体(好友列表)
- 做一个僵尸粉检测工具
- 根据bug反馈和建议进行细节上的优化
- 其他功能看心情加
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for py_process_hooker-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb1a3c1e48e44c4189a1002fc48bf50ed7ab9529f32012da1a0306321508ddcc |
|
MD5 | 164e1f717fce4d946ab858c634365909 |
|
BLAKE2b-256 | 4709cbdf90a0812aee59ad826302e7e6d3c60c89c590b34f5393f55c5ec10307 |