cleanup
This commit is contained in:
36
2026/cscg/pwn/string-saas/Dockerfile
Normal file
36
2026/cscg/pwn/string-saas/Dockerfile
Normal file
@@ -0,0 +1,36 @@
|
||||
FROM ubuntu:jammy-20240125@sha256:bcc511d82482900604524a8e8d64bf4c53b2461868dac55f4d04d660e61983cb
|
||||
|
||||
ADD --chmod=0755 --checksum=sha256:4c97fd03a3b181996b1473f3a99b69a1efc6ecaf2b4ede061b6bd60a96b9325a \
|
||||
https://raw.githubusercontent.com/reproducible-containers/repro-sources-list.sh/v0.1.0/repro-sources-list.sh \
|
||||
/usr/local/bin/repro-sources-list.sh
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,target=/var/cache/apt,sharing=locked \
|
||||
--mount=type=cache,target=/var/lib/apt,sharing=locked \
|
||||
/usr/local/bin/repro-sources-list.sh && \
|
||||
apt-get update && apt-get install -y \
|
||||
make xz-utils gcc unzip file sudo
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ADD --chmod=0666 --checksum=sha256:4300f2fbc3996bc389d3c03a74662bfff3106ac1930942c5bd27580c7ba5053d \
|
||||
https://yx7.cc/code/ynetd/ynetd-0.1.2.tar.xz \
|
||||
/app/ynetd-0.1.2.tar.xz
|
||||
|
||||
RUN tar -xJf /app/ynetd-0.1.2.tar.xz && cd ynetd-0.1.2 && make
|
||||
|
||||
ADD --chmod=0600 getflag.c .
|
||||
ADD --chmod=0755 run.sh .
|
||||
COPY Makefile string-saas.c .
|
||||
RUN make string-saas getflag
|
||||
RUN rm getflag.c string-saas.c
|
||||
|
||||
RUN sha256sum string-saas
|
||||
RUN echo 62350b02e19b9535e3e8e7e34792ac4c2cd1f86bc8563a9b6c4d24305ab48331 string-saas | sha256sum --check
|
||||
|
||||
RUN mkdir /app/tmp
|
||||
RUN chmod 777 /app/tmp
|
||||
|
||||
EXPOSE 1024
|
||||
CMD [ "/app/ynetd-0.1.2/ynetd", "-si", "y", "-so", "y", "-se", "y", \
|
||||
"-p", "1024", "-d", "/app", "/app/string-saas" ]
|
||||
Reference in New Issue
Block a user