IDAPthon 钩子问题
来源:互联网 发布:软件开发技术 编辑:程序博客网 时间:2024/06/08 00:16
各位密友,这几天在逆向一个东西,使用了IDAPython的钩子,但是没有成功!仔细翻阅了python灰帽子,无果!请帮忙看看问题出在哪里,万分感谢!
环境:IDA 6.1 , 某 Android 程序
脚本如下:
from idaapi import *
from idc import *
count = 0
class DumpHook(DBG_Hooks):
def dbg_bpt (self,tid,ea):
global count
count += 1;
print "[*] Hit: 0x%08x the %d time\n" % (ea, count)
data = "\xBE\x91\x0A\xF3\x9A\x26\xA4\xA9\x92\xC6\xFD\x01\xA1\x43\xED\x19"
dbg_write_memory(GetRegValue("r7"), data)
return 1
try:
if debugger:
print("Removing previous hook ...")
debugger.unhook()
except:
pass
AddBpt (0x8050a42e)
SetBptAttr(0x8050a42e, BPTATTR_FLAGS, 0x0)
print "[*] set hook OK...\n"
debugger = DumpHook()
debugger.hook()
运行脚本,只显示了[*] set hook OK...
Removing previous hook ...[*] set hook OK...
尝试了N次,只有一次打印了"[*] Hit: 0x%08x the %d time\n"
不知道是我没用对还是 idapython不支持android??
环境:IDA 6.1 , 某 Android 程序
脚本如下:
from idaapi import *
from idc import *
count = 0
class DumpHook(DBG_Hooks):
def dbg_bpt (self,tid,ea):
global count
count += 1;
print "[*] Hit: 0x%08x the %d time\n" % (ea, count)
data = "\xBE\x91\x0A\xF3\x9A\x26\xA4\xA9\x92\xC6\xFD\x01\xA1\x43\xED\x19"
dbg_write_memory(GetRegValue("r7"), data)
return 1
try:
if debugger:
print("Removing previous hook ...")
debugger.unhook()
except:
pass
AddBpt (0x8050a42e)
SetBptAttr(0x8050a42e, BPTATTR_FLAGS, 0x0)
print "[*] set hook OK...\n"
debugger = DumpHook()
debugger.hook()
运行脚本,只显示了[*] set hook OK...
Removing previous hook ...[*] set hook OK...
尝试了N次,只有一次打印了"[*] Hit: 0x%08x the %d time\n"
不知道是我没用对还是 idapython不支持android??
0 0
- IDAPthon 钩子问题
- 关于svn钩子的问题
- 钩子
- 钩子
- 钩子
- 钩子
- 钩子
- 钩子
- 钩子
- 钩子
- 钩子
- 钩子
- 钩子
- 钩子
- 钩子
- 钩子
- 实现鼠标钩子遇到的一个问题
- dotNet C# 下的全局钩子问题
- 设计模式(五)
- qt输入法SYSZUXpinyin移植
- cocos2dx Android.mk
- mysql基本操作
- Hibernate4.3.1 org.hibernate.service.jta.platform.spi.JtaPlatform 异常解决
- IDAPthon 钩子问题
- 午马今日出殡 妻女书信寄情:今生难放下
- udhcpd.conf配置文档参考--修改网卡设备名interface wlan1 以及最后的网卡固定ip就可以
- UVa 111 - History Garding
- hdu2433 spfa+mark[x][u][v]优化
- 浅谈排序算法之归并排序
- 中文倒序输出问题
- 2013年下半年总结
- ubuntu 多余内核清理