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
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