mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Russell Miller <rmiller@duskglow.com>
To: linux-kernel@vger.kernel.org
Subject: [slightly ot] ELF loader process
Date: Fri, 17 Dec 2004 22:12:56 -0600	[thread overview]
Message-ID: <200412172212.56546.rmiller@duskglow.com> (raw)

Hi, I have a question that isn't directly kernel related, but I can't seem to 
find a good forum to ask this question, so feel free to point me to a more 
appropriate place.  Also, this is pretty deep in the linux internals...

I'm trying to reverse engineer a trojan that some idiot left on a machine 
after cracking it.  I've run readelf.  It states that the entry point is:

  Entry point address:               0x804b06c

But that address seems to not be mapped anywhere in the executable.  There is:

  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x00406c 0x0804c06c 0x0804c06c 0x001d4 0x00338 RW  0x1000

which is exactly 0x1000 above the entry point address.  0x0804c06c is also the 
location of the _start symbol.

So, my question is (for any of you that will be willing to humor me and answer 
the question even though it's a little unrelated):  Why does the entry point 
address not match the _start symbol?  And if this is truly an error, what 
would happen if you tried to run the binary under linux?

Thanks.  You can feel free to email me privately with an answer if you don't 
want to post it here.

--Russell

-- 

Russell Miller - rmiller@duskglow.com - Le Mars, IA
Duskglow Consulting - Helping companies just like you to succeed for ~ 10 yrs.
http://www.duskglow.com - 712-546-5886

                 reply	other threads:[~2004-12-18  4:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200412172212.56546.rmiller@duskglow.com \
    --to=rmiller@duskglow.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

Powered by JetHome