>
> For comparison, if I specify the bash shell in a shell script and make it
> executable, I can use any name or extension that I want and the file will
> remain executable and if I issue the command ./command.whatever it will
> still execute.

On a side note, you can register unknown binary formats under Linux also.
You'll need to enable the "Kernel Support for MISC Binaries" under the
kernel config. You can then register the binary type with the kernel and
specify an interpreter program.

This leads to the interesting Linux virus. If you feel left out you too
can join the millions of Windows users who are being deluged with virii.
To do this, you'll need to rebuild your kernel to include
CONFIG_BINFMT_MISC. Next, you'll need to grab the header bytes of a file,
a jpeg say, then construct a string no larger than 255 characters with
this header information and name of an appropriate application. Next, gain
root access to be able to write to /proc then write your string to
/proc/sys/binfmt_misc/register. At this point you'll be able to execute a
jpeg containing, who knows, a malicious string disguised as some picture
file. To be able to propagate the virus automatically as your Windows
brethren can requires the "honor principle". I.e., you'd have to manually
forward the trojaned jpeg and the instructions above and make sure the
Linux-using recipient performs the steps.

See, you can have Linux virii after all. :D

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to