From: Jim Nelson <james4765@verizon.net>
To: A M <alim1993@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: [OT]Re: Accessing program counter registers from within C or Aseembler.
Date: Tue, 16 Nov 2004 18:15:51 -0500 [thread overview]
Message-ID: <419A8A27.3040102@verizon.net> (raw)
In-Reply-To: <20041116212015.32217.qmail@web51901.mail.yahoo.com>
A M wrote:
> Hello,
>
> Does anybody know how to access the address of the
> current executing instruction in C while the program
> is executing?
>
> Also, is there a method to load a program image from
> memory not a file (an exec that works with a memory
> address)? Mainly I am looking for a method that brings
> a program image into memory modify parts of it and
> start the in-memory modified version.
>
> Can anybody think of a method to replace a thread
> image without replacing the whole process image?
>
> Thanks,
>
> Ali
>
The Shellcoder's Handbook is probably the best book out there on the kind of stuff
you're talking about. Just be prepared - it's written on a rather advanced level.
prev parent reply other threads:[~2004-11-16 23:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-16 21:20 Accessing program counter registers from within C or Aseembler A M
2004-11-16 21:33 ` Jan Engelhardt
2004-11-16 21:33 ` Valdis.Kletnieks
2004-11-18 10:28 ` Jan Engelhardt
2004-11-18 12:28 ` Pawel Sikora
2004-11-18 15:09 ` Accessing program counter registers from within C or Assembler A M
2004-11-16 21:37 ` Accessing program counter registers from within C or Aseembler Chris Friesen
2004-11-16 21:49 ` linux-os
2004-11-16 23:15 ` Jim Nelson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=419A8A27.3040102@verizon.net \
--to=james4765@verizon.net \
--cc=alim1993@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox