Skip to content
Permalink
e92cac757b
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
31 lines (19 sloc) 631 Bytes
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"]