Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Execv /bin/sh

shell code to execute /bin/sh command ,which opens a shell.

Length

27 Bytes.

Why to use

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.

Compatibility

works on Linux x86_32 only

How it works

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

About

shell codes to exploit programs

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages