<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN"
[
  <!ENTITY intro SYSTEM "intro.sgml">
  <!ENTITY magic-of-elf SYSTEM "magic_of_elf.sgml">
  <!ENTITY readelf SYSTEM "readelf.sgml">
  <!ENTITY one_step_closer SYSTEM "one_step_closer.sgml">
  <!ENTITY entry_point SYSTEM "entry_point.sgml">

  <!ENTITY % calc SYSTEM "out/calc.sgml">
  %calc;

  <!ENTITY list_linuxdoc
    "http://list.linuxdoc.org/archive/index.htm?1">
  <!ENTITY silvio_cesare "http://www.big.net.au/~silvio">
  <!ENTITY elf_spec_canonical
    "ftp://tsx.mit.edu/pub/linux/packages/GCC/ELF.doc.tar.gz">
  <!ENTITY elf_spec_flat_text
    "http://www.muppetlabs.com/~breadbox/software/ELF.txt">
  <!ENTITY teensy_executables
    "http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html">
]>
<article id="index">

<articleinfo>
  <title>The Linux Virus Writing HOWTO</title>
  <subtitle>
    post-link-time code modification of ELF executables under Linux/i386
  </subtitle>
  <author>
    <firstname>Alexander</firstname>
    <surname>Bartolich</surname>
    <affiliation>
      <address>
	<email>alexander.bartolich@gmx.at</email>
      </address>
    </affiliation>
  </author>

  <revhistory>
    <revision>
      <revnumber>1</revnumber>
      <date>2002-03-09</date>
      <authorinitials>alba</authorinitials>
      <revremark>
	Unfinished excerpt sent to Linux Documentation Project.
      </revremark>
    </revision
    <revision>
      <revnumber>2</revnumber>
      <date>2002-03-11</date>
      <authorinitials>alba</authorinitials>
      <revremark>
	Unfinished excerpt sent to Linux Documentation Project.
	Section "One step closer to the edge" rewritten &amp; finished.
      </revremark>
    </revision
  </revhistory>

  <abstract>
    <para>
      This document describes how to write parasitic file viruses
      infecting ELF executables on Linux/i386. Though it contains
      a lot of source code, no actual virus is included.
    </para>
    <para>
      <emphasis>
	Unfinished snapshot taken on 2002-03-14. Genie escaped the bottle.
      </emphasis>
    </para>
  </abstract>

</articleinfo>

<sect1 id="intro">
  <title>Introduction</title>
  &intro;
</sect1>
<sect1 id="magic-of-elf">
  <title>The magic of the Elf</title>
  &magic-of-elf;
</sect1>
<sect1 id="readelf" xreflabel="readelf">
  <title>readelf</title>
  &readelf;
</sect1>
<sect1 id="one_step_closer" xreflabel="One step closer to the edge">
  <title>One step closer to the edge</title>
  &one_step_closer;
</sect1>
<sect1 id="entry_point" xreflabel="The entry point">
  <title>The entry point</title>
  &entry_point;
</sect1>

</article>
