首页
社区
课程
招聘
[求助]gdb -p 不了进程,有经验的进来看看。
发表于: 2015-4-27 22:08 6940

[求助]gdb -p 不了进程,有经验的进来看看。

2015-4-27 22:08
6940
/usr/bin/gdb: line 55: awk: command not found
warning: unrecognized host cpusubtype , defaulting to host==armv7.
GNU gdb 6.3.50-20050815 (Apple version gdb-1708 + reverse.put.as patches v0.4) (Mon Apr 16 00:53:47 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "arm-apple-darwin".
/private/var/root/2956: No such file or directory
Attaching to process 2956.
Segmentation fault: 11        --出这个错误

已测试了,其它进程是没问题的。

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 212
活跃值: (86)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
http://bbs.kafan.cn/thread-1794734-1-1.html
2015-4-27 22:16
0
雪    币: 212
活跃值: (86)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
EXPORT _disable_gdb
_disable_gdb
PUSH            {R4,R7,LR}
MOVS            R0, #0  ; path
MOVS            R1, #0xA ; mode
ADD             R7, SP, #4
BLX             _dlopen
MOVW            R1, #(:lower16:(aPtrace - 0x12272)) ; "ptrace"
MOV             R4, R0
MOVT.W          R1, #(:upper16:(aPtrace - 0x12272)) ; "ptrace"
ADD             R1, PC  ; "ptrace"
BLX             _dlsym
MOV             R9, R0
MOVS            R0, #0x1F
MOVS            R1, #0
MOVS            R2, #0
MOVS            R3, #0
BLX             R9
MOV             R0, R4  ; handle
POP.W           {R4,R7,LR}
B.W             _dlclose$shim
; End of function _disable_gdb
找到这段代码了,自己解决了,留贴。
2015-4-27 22:24
0
雪    币: 212
活跃值: (86)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
解决方法可以参考
http://www.yangch.info/?p=1350
2015-4-27 22:39
0
雪    币: 585
活跃值: (568)
能力值: ( LV13,RANK:290 )
在线值:
发帖
回帖
粉丝
5
反调试除了调用ptrace还有其它方法吗?
2015-5-4 16:30
0
游客
登录 | 注册 方可回帖
返回
//