Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
5063-Labs/Overflows/ROP/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
31 lines (19 sloc)
631 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:buster as vulnbuilder | |
RUN apt update && apt install --no-install-recommends -y build-essential | |
WORKDIR /tmp/ | |
ADD Code/ /tmp/ | |
RUN make | |
FROM debian:buster | |
#Install SSH Server | |
RUN apt-get update \ | |
&& apt-get install --no-install-recommends -y \ | |
openssh-server \ | |
&& rm -rf /var/lib/apt/lists/* | |
#Configure SSH (Cant run as Daemon if this doenst exit) | |
RUN mkdir /var/run/sshd | |
RUN useradd -ms /bin/bash editor && echo editor:editor | chpasswd | |
COPY --from=vulnbuilder /tmp/classicRop /home/editor/ropme | |
RUN chmod a+s /home/editor/ropme | |
# PORTS AND BASIC COMMAND | |
EXPOSE 22 | |
CMD ["/usr/sbin/sshd", "-D"] |