Skip to content

Instantly share code, notes, and snippets.

@teamday
Created August 26, 2018 13:02
Show Gist options
  • Save teamday/16d312ccb6984901a7f0efed26416de2 to your computer and use it in GitHub Desktop.
Save teamday/16d312ccb6984901a7f0efed26416de2 to your computer and use it in GitHub Desktop.
section .data
child db "/bin/sh", 0
global _start
section .text
_start:
mov rdi, child
lea rsi, [rsp + 8]
mov rdx, 0
mov rax, 59
syscall
mov rax, rdi
mov rax, 60
syscall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment