Implementing the PT_DENY_ATTACH anti-piracy code

后端 未结 1 411
春和景丽
春和景丽 2021-01-02 14:36

I\'ve been tryign to implement the following anti piracy code from this wiki: http://theiphonewiki.com/wiki/index.php?title=Bugging_Debuggers

But despite following i

相关标签:
1条回答
  • 2021-01-02 15:05

    The code is functioning as intended. That said, I should tell you that you're wasting your time. This approach will only work if gdb and the attacker/programmer are cooperative. The whole point of tools like gdb is that they are extremely versatile and if a simple "bug" like this stopped them dead in their tracks, someone would fix it very quickly. :)

    As described on this page, you can just do the following from within gdb:

    (gdb) break ptrace
    commands 1
        return
        continue
    end
    
    0 讨论(0)
提交回复
热议问题