linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "\"Jørgen P. Tjernø\"" <jorgen@devsoft.no>
To: linux-c-programming@vger.kernel.org
Subject: execve-type memory-based function, possible?
Date: Mon, 23 Oct 2006 11:19:58 +0200	[thread overview]
Message-ID: <453C893E.9060901@devsoft.no> (raw)

Hi!

I've recently been toying with methods for copy-protection and other 
esoteric subjects, for academic and hobby purposes, and I haven't found 
much info on this subject.

I want to see if it's possible (from userspace) to load and execute an 
ELF-binary based on a memory-buffer, i.e. load, relocate, etcetera (then 
execute) a program that's stored in memory.

I can't find any readily available options, I've toyed a bit with shmem 
(to get an fd) and fexecve, but haven't gotten far. I've briefly looked 
at the execve-code in the kernel.

So I'm curious; does anyone have any experience or suggestions on this 
subject? Is it at all possible to do the operations via usermode? I've 
toyed with creating copy-protection-schemes and binary packers and such 
under Win32, where it's possible, but I have no experience on the 
subject under Linux (or found any documentation on anyone else doing so).

Any papers, links, source-file-references etcetera would be appreciated. :-)

-- 
Kindest regards / Med vennlig hilsen,
  Jørgen P. Tjernø
  <jorgen@devsoft.no>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2006-10-23  9:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-23  9:19 "Jørgen P. Tjernø" [this message]
2006-10-23 10:20 ` execve-type memory-based function, possible? "Jørgen P. Tjernø"
2006-10-23 11:33   ` Steve Graegert

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=453C893E.9060901@devsoft.no \
    --to=jorgen@devsoft.no \
    --cc=linux-c-programming@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;
as well as URLs for NNTP newsgroup(s).