mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Linux ELF Implementation
@ 2002-09-01 22:26 dirty boy
  2002-09-02  4:07 ` Ralf Baechle
  0 siblings, 1 reply; 4+ messages in thread
From: dirty boy @ 2002-09-01 22:26 UTC (permalink / raw)
  To: linux-kernel

hey people :)

i would be greatful if one of you knowledgeable people could settle a bet 
for me...

im learning about the ELF specification with a friend of mine, were hoping 
to get a better understanding of how these things work, and a wild idea 
occurred to us - would it be possible to create a valid ELF executable from 
purely printable ASCII characters ?

by that i mean, you would be able to literally cat > a.out and enter your 
executable from the keyboard! it wouldnt have todo anything, just return 
0...

the file wouldnt have to be portable, only the fields that the kernel is 
going to notice would have to be present, so long as it executes!

im convinced the answer is no - but my friend says it is, he says hes seen 
it done in PE format ( although we cant find it on the web ) and therefore 
theres no reason why it couldnt be done in ELF.

Thanks  so much!!

[ please cc me if possible, im not a subscriber and will save me waiting for 
the responses to show up on google! ]

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Linux ELF Implementation
  2002-09-01 22:26 Linux ELF Implementation dirty boy
@ 2002-09-02  4:07 ` Ralf Baechle
  2002-09-02  4:57   ` Thunder from the hill
  0 siblings, 1 reply; 4+ messages in thread
From: Ralf Baechle @ 2002-09-02  4:07 UTC (permalink / raw)
  To: dirty boy; +Cc: linux-kernel

On Sun, Sep 01, 2002 at 10:26:10PM +0000, dirty boy wrote:

> im learning about the ELF specification with a friend of mine, were hoping 
> to get a better understanding of how these things work, and a wild idea 
> occurred to us - would it be possible to create a valid ELF executable from 
> purely printable ASCII characters ?
> 
> by that i mean, you would be able to literally cat > a.out and enter your 
> executable from the keyboard! it wouldnt have todo anything, just return 
> 0...
> 
> the file wouldnt have to be portable, only the fields that the kernel is 
> going to notice would have to be present, so long as it executes!
> 
> im convinced the answer is no - but my friend says it is, he says hes seen 
> it done in PE format ( although we cant find it on the web ) and therefore 
> theres no reason why it couldnt be done in ELF.

There answer is no; the ELF magic at the begin of an ELF file contains
a non-printable character.

  Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Linux ELF Implementation
  2002-09-02  4:07 ` Ralf Baechle
@ 2002-09-02  4:57   ` Thunder from the hill
  2002-09-02  6:12     ` Chris Wedgwood
  0 siblings, 1 reply; 4+ messages in thread
From: Thunder from the hill @ 2002-09-02  4:57 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: dirty boy, linux-kernel

Hi,

On Mon, 2 Sep 2002, Ralf Baechle wrote:
> There answer is no; the ELF magic at the begin of an ELF file contains
> a non-printable character.

...and yes if you write a program which concatenates half-based characters 
to a full base, the only thing that hurts is that you have to write at 
least twice as much...

			Thunder
-- 
--./../...-/. -.--/---/..-/.-./..././.-../..-. .---/..-/.../- .-
--/../-./..-/-/./--..-- ../.----./.-../.-.. --./../...-/. -.--/---/..-
.- -/---/--/---/.-./.-./---/.--/.-.-.-
--./.-/-.../.-./.././.-../.-.-.-


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Linux ELF Implementation
  2002-09-02  4:57   ` Thunder from the hill
@ 2002-09-02  6:12     ` Chris Wedgwood
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Wedgwood @ 2002-09-02  6:12 UTC (permalink / raw)
  To: Thunder from the hill; +Cc: Ralf Baechle, dirty boy, linux-kernel

On Sun, Sep 01, 2002 at 10:57:59PM -0600, Thunder from the hill wrote:

    ...and yes if you write a program which concatenates half-based
    characters to a full base, the only thing that hurts is that you
    have to write at least twice as much...

uudecode doesn't count

the answer is no


  --cw

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-09-02  6:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-01 22:26 Linux ELF Implementation dirty boy
2002-09-02  4:07 ` Ralf Baechle
2002-09-02  4:57   ` Thunder from the hill
2002-09-02  6:12     ` Chris Wedgwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®