<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lib-des-gnux/templates/shellcode/examples, branch master</title>
<subtitle>Library of GNU Exploitation</subtitle>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/lib-des-gnux/'/>
<entry>
<title>shellcode: Add sample for connecting a TCP socket</title>
<updated>2023-01-15T15:12:48+00:00</updated>
<author>
<name>Malfurious</name>
<email>m@lfurio.us</email>
</author>
<published>2023-01-15T14:29:14+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/lib-des-gnux/commit/?id=1418eaf3054967f1d9856279f1988279c1009ba1'/>
<id>1418eaf3054967f1d9856279f1988279c1009ba1</id>
<content type='text'>
This sample can be used to create a reverse shell when combined with the
shell64 sample:

    cat examples/{tcp64,shell64}.asm &gt;code.asm
    make
    ...

Signed-off-by: Malfurious &lt;m@lfurio.us&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This sample can be used to create a reverse shell when combined with the
shell64 sample:

    cat examples/{tcp64,shell64}.asm &gt;code.asm
    make
    ...

Signed-off-by: Malfurious &lt;m@lfurio.us&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>shellcode: Update /bin/sh shellcodes</title>
<updated>2023-01-15T15:12:48+00:00</updated>
<author>
<name>Malfurious</name>
<email>m@lfurio.us</email>
</author>
<published>2023-01-15T13:06:42+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/lib-des-gnux/commit/?id=f21e743212f02dbfb560fa74d983a7e156722d11'/>
<id>f21e743212f02dbfb560fa74d983a7e156722d11</id>
<content type='text'>
The shell-spawning shellcodes are rewritten to address the following
concerns:

    - The array parameters to execve are now set properly, to valid
      arrays on the stack, instead of NULL pointers.

    - The cdq instruction is no longer used to sign-extend the rax
      register, since it has not been producing the expected results in
      gdb.

    - Labels, sections, and other file metadata are removed in order to
      support concatenation of shellcode samples to make more complex
      code.

Signed-off-by: Malfurious &lt;m@lfurio.us&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The shell-spawning shellcodes are rewritten to address the following
concerns:

    - The array parameters to execve are now set properly, to valid
      arrays on the stack, instead of NULL pointers.

    - The cdq instruction is no longer used to sign-extend the rax
      register, since it has not been producing the expected results in
      gdb.

    - Labels, sections, and other file metadata are removed in order to
      support concatenation of shellcode samples to make more complex
      code.

Signed-off-by: Malfurious &lt;m@lfurio.us&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>shellcode: Move example code to a new directory</title>
<updated>2023-01-15T15:12:48+00:00</updated>
<author>
<name>Malfurious</name>
<email>m@lfurio.us</email>
</author>
<published>2022-12-24T12:50:44+00:00</published>
<link rel='alternate' type='text/html' href='http://normalmode.org/malf/lib-des-gnux/commit/?id=c41649b5077eb3e0d66043658df8bccbdfef0f1a'/>
<id>c41649b5077eb3e0d66043658df8bccbdfef0f1a</id>
<content type='text'>
This is mainly done to keep the top working directory (where the
Makefile lives) cleaner.

Signed-off-by: Malfurious &lt;m@lfurio.us&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is mainly done to keep the top working directory (where the
Makefile lives) cleaner.

Signed-off-by: Malfurious &lt;m@lfurio.us&gt;
</pre>
</div>
</content>
</entry>
</feed>
