Changes

56 bytes added ,  03:39, 26 November 2016
Line 44: Line 44:  
=== Using libcompel.a library ===
 
=== Using libcompel.a library ===
   −
In libcompel.a there's currently only one way to load the blob into victim task, it's called 'c-header'. So first you should make a header out of you .po file
+
Currently there is only one way to load the blob into victim task using libcompel.a, called ''c-header''. First you should make a header out of you .po file:
   −
<pre>
+
compel hgen -f parasite.po -v parasite_relocs -p parasite_sym -s parasite_blob -r parasite_nr_gotpcrel -u compel/include/uapi/ -o parasite.h
compel hgen -f parasite.po -v parasite_relocs -p parasite_sym -s parasite_blob -r parasite_nr_gotpcrel -u compel/include/uapi/ -o parasite.h
  −
</pre>
     −
The <code>-f</code> option tells which binary to turn into header and <code>-o</code> where to put the result. The rest args are used when filling the blob descriptor, see the [[#Infecting]] section below. After this the <code>parasite.h</code> file should be included into the infecting program and compiled with it.
+
Here the <code>-f</code> option tells which binary to turn into header, and <code>-o</code> option tells where to put the resulting header. The rest of the arguments are used to fill in the blob descriptor, see the [[#Infecting]] section below for details.
 +
 
 +
Once <code>parasite.h</code> file is ready, it should be included into the infecting program source code to be compiled with it.
    
== Running parasite code ==
 
== Running parasite code ==