shell code to execute /bin/sh command ,which opens a shell.
27 Bytes.
to open sh shell or in other words, inject it to setuid binary
then gain root access after successful injection.
most common use of shell codes is when you find a point can be exploited to perform buffer overflow then
inject shell code into stack by exploit this point or function
like gets function ic C.
works on Linux x86_32 only
push "/bin/sh" string into stack
then, store esp register value in ebx register
then, store 11 in eax,0 in ecx and edx
finally, do a execv syscall