Skip to content

Instantly share code, notes, and snippets.

@SafeEval
Last active August 26, 2015 18:59
Show Gist options
  • Save SafeEval/0af2db0c837528d44493 to your computer and use it in GitHub Desktop.
Save SafeEval/0af2db0c837528d44493 to your computer and use it in GitHub Desktop.
; 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