Hacker News new | past | comments | ask | show | jobs | submit login

gdb /Applications/iTunes.app/Contents/MacOS/iTunes

(gdb) fb ptrace

(gdb) run

[ breaks at ptrace ]

(gdb) return

[ type 'y' to return to the parent, skipping the call ]

pirate your music or whatever you wanted to do.

I'm not sure who this was supposed to prevent from doing what, although I'm sure that it wouldn't be in there if there wasn't a contractual obligation to do something for the people providing them with content.




If you skip the ptrace call, you can't "pirate your music or whatever you wanted to do". The whole point of running GDB is to call ptrace.


You're not skipping gdb's ptrace, you're skipping when iTunes calls it. iTunes calls ptrace() with PT_DENY_ATTACH to disallow gdb from attaching to it, which this method easily skips to let you attach to iTunes without any issues.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: