Skip to content

Instantly share code, notes, and snippets.

@makubi
Last active October 14, 2016 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makubi/837506e7c01f1cfa72a236ba37821471 to your computer and use it in GitHub Desktop.
Save makubi/837506e7c01f1cfa72a236ba37821471 to your computer and use it in GitHub Desktop.
section .text
global _start
_start:
call _lib
jmp _expected
_lib:
push _exploited
ret
_expected:
mov rax, 60
mov rdi, 0
syscall
_exploited:
mov rax, 60
mov rdi, 1
syscall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment