ํฌํธ ์ฃผ์๋ 2115๋ก ํด์ฃผ์๋ค.
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/exme
RUN chmod 460 /home/exme/*
RUN chown injection:root /home/exme/*
RUN chmod +x /home/exme/exme
RUN chmod +x /home/exme/run.sh
CMD ["/usr/sbin/xinetd","-dontfork"]
docker-compose.yml
version: '3'
services:
ctf:
build: .
ports:
- "2115:2115"
xinetd
service ctf
{
disable = no
type = UNLISTED
wait = no
server = /home/exme/run.sh
socket_type = stream
protocol = tcp
user = user
port = 2115
flags = REUSE
}
'DreamHack' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
POX ๋ฌธ์ ๋์ปค ํ์ผ ์ ์ - Rotten EGG filter (0) | 2022.10.07 |
---|---|
POX ๋ฌธ์ ์ ์ ๋ฐ ํ์ด - Rotten EGG filter (0) | 2022.10.03 |
[Heap Exploit] UAF (Use-After-Free) (0) | 2022.05.18 |