Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>please check</p> <pre><code>http://sourceforge.net/projects/html5remote/ </code></pre> <p>In this project I played around with patchElf, LD_PRELOAD and LD_LIBRARY_PATH.</p> <p>There are some tricks to make relative paths working. After some experiments I came to the conclusion that patching the target binary is not necessary because the ld.so can be used to load the target program directly from the command line, ex:</p> <p><strong>$ /lib64/ld-linux-x86-64.so.2 [OPTION]... EXECUTABLE-FILE [ARGS-FOR-PROGRAM...]</strong></p> <p>In this case the interpreter written in the elf header of the target binary is ignored, ex:</p> <p><strong>$ ldd /usr/bin/mysql</strong></p> <pre><code> linux-vdso.so.1 =&gt; (0x00007fff3fde0000) libpthread.so.0 =&gt; /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f72f89ea000) libreadline.so.6 =&gt; /lib/x86_64-linux-gnu/libreadline.so.6 (0x00007f72f87a8000) libz.so.1 =&gt; /lib/x86_64-linux-gnu/libz.so.1 (0x00007f72f8590000) libdl.so.2 =&gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f72f838c000) libm.so.6 =&gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007f72f8090000) libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007f72f7cd0000) /original/path/to/ld.so (0x00007f72f9187000) ** ignored ** libtinfo.so.5 =&gt; /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f72f7aa9000) </code></pre> <p>The option:</p> <p><strong>--library-path</strong></p> <p>tells to the ld.so loader where to search for the shared libraries (ex: libc.so, etc..)</p> <p>I hope this can help :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload