• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing memory of another application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing memory of another application?


  • Subject: Re: Accessing memory of another application?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 13 Aug 2008 15:44:04 +0200


Le 13 août 08 à 15:27, Kyle Sluder a écrit :

On Tue, Aug 12, 2008 at 10:14 PM, Steve Byan <email@hidden> wrote:
Actually, the man-page is incomplete and doesn't tell you how to read and
write another process's memory.

The manpage also fails to mention the undocumented PT_DENY_ATTACH flag that applications can pass to force ptrace to fail to attach. Pro Tools, for example, does this because the "programmers" who wrote it spent twice as much time on the copy protection as on the actual application.

man ptrace:

PTRACE(2) BSD System Calls Manual PTRACE(2)

NAME
     ptrace -- process tracing and debugging

...

PT_DENY_ATTACH
This request is the other operation used by the traced process; it allows a process that is not currently being traced to deny future traces by
its parent. All other arguments are ignored. If the process is currently being traced, it will exit with the exit status of ENOTSUP; other-
wise, it sets a flag that denies future traces. An attempt by the parent to trace a process which has set this flag will result in a segmenta-
tion violation in the parent.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Accessing memory of another application? (From: Josh <email@hidden>)
 >Re: Accessing memory of another application? (From: Steve Byan <email@hidden>)
 >Re: Accessing memory of another application? (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: Accessing memory of another application?
  • Next by Date: Re: Accessing memory of another application?
  • Previous by thread: Re: Accessing memory of another application?
  • Next by thread: Re: Accessing memory of another application?
  • Index(es):
    • Date
    • Thread