Add jmp to avoid /0
This commit is contained in:
parent
b87162a19b
commit
b3ba6f0a8b
1 changed files with 5 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue