mirror of
https://github.com/Kkevsterrr/geneva
synced 2025-01-07 01:15:09 +01:00
18 lines
944 B
Docker
18 lines
944 B
Docker
FROM python:3.6-stretch
|
|
# Set the root password in the container so we can use it
|
|
RUN echo "root:Docker!" | chpasswd
|
|
RUN apt-get -y update
|
|
RUN apt-get -y install libnetfilter-queue-dev iptables tcpdump netcat net-tools git graphviz openssh-server
|
|
# Enable root SSH login for client testing
|
|
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
RUN sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config
|
|
|
|
# SSH login fix. Otherwise user is kicked off after login
|
|
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
|
|
|
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install tshark
|
|
ENV PATH="/usr/sbin:${PATH}"
|
|
RUN pip install netfilterqueue requests dnspython anytree graphviz netifaces paramiko tld docker scapy==2.4.3 psutil
|
|
ENTRYPOINT ["/bin/bash"]
|