์์ ๋ง๋ ๋ฌธ์ ์ ๋ํ ๋์ปคํ์ผ์ ์ ์ํด๋ณด์.
๋ฌด์ฌํ ์ต์ค๊ฐ ๋๋ฉด ์ข๊ฒ ๋ค..
port์ฃผ์๋ 2331๋ก ์ค์ ํ๋ค.
Dockerfile
FROM ubuntu:18.04
RUN dpkg --add-architecture amd64
RUN apt update
RUN apt install -y xinetd
ENV TERM=linux
RUN useradd egg
ADD xinetd /etc/xinetd.d/
ADD share /home/egg
RUN chmod 460 /home/egg/*
RUN chown injection:root /home/egg/*
RUN chmod +x /home/egg/egg
RUN chmod +x /home/egg/run.sh
CMD ["/usr/sbin/xinetd","-dontfork"]
docker-compose.yml
version: '3'
services:
ctf:
build: .
ports:
- "2331:2331"
xinetd
service ctf
{
disable = no
type = UNLISTED
wait = no
server = /home/egg/run.sh
socket_type = stream
protocol = tcp
user = user
port = 2331
flags = REUSE
}
'DreamHack' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
POX ๋ฌธ์ ๋์ปค ํ์ผ ์ ์ - exploitMe (0) | 2022.10.07 |
---|---|
POX ๋ฌธ์ ์ ์ ๋ฐ ํ์ด - Rotten EGG filter (0) | 2022.10.03 |
[Heap Exploit] UAF (Use-After-Free) (0) | 2022.05.18 |