Add TD5 q3 (first part)
This commit is contained in:
parent
72564e2e2d
commit
4f61441bb9
7 changed files with 229 additions and 0 deletions
|
@ -0,0 +1,20 @@
|
|||
.text
|
||||
.globl _start
|
||||
|
||||
_start:
|
||||
call pwnd
|
||||
.asciz "/tmp/pwn"
|
||||
|
||||
pwnd:
|
||||
# We are on x86_64, we must move 8 bytes up from stack pointer
|
||||
popq %rdi
|
||||
movq $0666, %rsi
|
||||
movq $85, %rax
|
||||
syscall
|
||||
ret
|
||||
|
||||
# exit(42)
|
||||
movq $42, %rdi
|
||||
movq $60, %rax
|
||||
syscall
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue