hook

runwu2204 Lv6

2024 RCTF writeup by Arr3stY0u (qq.com)

dir和help可以查看导出的对象

1
2
3
4
5
6
7
8
9
10
11
import check_secret
help(check_secret)
#可通过hook对应的返回值和参数,查看对应进行的操作
def hook(func,name):
def func_hook(a,b):
res=func(a,b)
print(f"0x{a:>08x} {name} 0x{b:>08x}=0x{res:>08x}")
return res
return func_hook
for i in check_secret.map.keys():
check_secret.map[i]=hook(check_secret.map[i],i)
  • 标题: hook
  • 作者: runwu2204
  • 创建于 : 2024-06-27 16:58:37
  • 更新于 : 2024-06-27 22:56:32
  • 链接: https://runwu2204.github.io/2024/06/27/Re/语言逆向/pyd/hook/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论
目录
hook