cleaned up and commented code; added routersploit
This commit is contained in:
parent
a51d8fcbb3
commit
71b2cd8ab9
17
Dockerfile
17
Dockerfile
@ -1,10 +1,21 @@
|
|||||||
FROM debian:latest
|
FROM debian:latest
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y curl wget gnupg2
|
RUN apt-get update && apt-get install -y curl wget gnupg2 git python3 python3-pip
|
||||||
|
|
||||||
|
|
||||||
|
# Install metasploit
|
||||||
|
RUN mkdir -p /metasploit
|
||||||
|
WORKDIR /metasploit
|
||||||
|
|
||||||
RUN curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
|
RUN curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
|
||||||
chmod +x ./msfinstall &&\
|
chmod +x ./msfinstall &&\
|
||||||
./msfinstall && \
|
./msfinstall && \
|
||||||
rm ./msfinstall
|
rm -rf /msfinstall
|
||||||
|
|
||||||
RUN useradd nroot && usermod --shell /bin/bash nroot
|
# Install routersploit
|
||||||
|
RUN git clone https://www.github.com/threat9/routersploit /routersploit
|
||||||
|
WORKDIR /routersploit
|
||||||
|
RUN python3 -m pip install -r requirements.txt
|
||||||
|
|
||||||
|
WORKDIR /
|
||||||
|
RUN useradd -m -s /bin/bash nroot
|
||||||
|
Loading…
Reference in New Issue
Block a user