Last active
August 26, 2015 18:59
-
-
Save SafeEval/0af2db0c837528d44493 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
; callpop_x86-intel.s - call/pop buffer reference example. | |
[SECTION .text] | |
global _start | |
_start: | |
jmp short load ; jump to call | |
shellcode: | |
pop ebx ; save the string address | |
nop | |
mov long eax,1 | |
int 0x80 ; exit syscall | |
load: | |
call shellcode ; push string address and jump | |
db 'ABCDEFG' ; buffer | |
db 0 ; null terminator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment