[90051] in Cypherpunks

home help back first fref pref prev next nref lref last post

Re: smaller f00f.c

daemon@ATHENA.MIT.EDU (Bryce)
Fri Nov 14 18:06:59 1997

To: Jeff Barber <jeffb@issl.atl.hp.com>
cc: stutz@dsl.org, aba@dcs.ex.ac.uk, cypherpunks@cyberpass.net
In-reply-to: Your message of "Fri, 14 Nov 1997 13:15:10 EST."
             <199711141815.NAA28804@jafar.issl.atl.hp.com> 
Date: Fri, 14 Nov 1997 22:21:23 +0100
From: Bryce <bryce@digicash.com>
Reply-To: Bryce <bryce@digicash.com>


> > > main(i){int(*f)()=&i;i=0xc8c70ff0;f();}
> > > main(i){i=0xc8c70ff0;((int(*)())&i)();}
> > > (*f)();main(i){f=&i;i=0xc8c70ff0;f();}
> > > (*f)()="\360\017\307\310";main(){f();}       /* 38 chars */
> 
> > How about:
> > 
> > long main[]={0xc8c70ff0};
> > 
> > or even
> > 
> > main[]={0xc8c70ff0}; /* 21 chars */
> > 
> > Compiles with gcc, but I haven't tested it.
> 
> No need for an array, so my entry is:
> 
> int main=0xc8c70ff0; /* 20 chars */


On a DOS box, no need to compile.  Cut-n-paste the magic words
into a file.  Name the file "foof.com".  Run it.


4 bytes.  I win.  :-)


Bryce

P.S.  Not original with me.  Attribution lost in the mists of 
comp.sys.intel.


home help back first fref pref prev next nref lref last post