Skip to content

Commit

Permalink
Using blackarch repo instead of yay
Browse files Browse the repository at this point in the history
  • Loading branch information
mach1el committed Jul 10, 2020
1 parent c73c01f commit e1bdd70
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 31 deletions.
84 changes: 54 additions & 30 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,43 +1,67 @@
FROM archlinux:latest

WORKDIR /tmp/
RUN curl -O https://blackarch.org/strap.sh
RUN chmod +x strap.sh
RUN ./strap.sh

WORKDIR /root/
RUN echo '[multilib]' >> /etc/pacman.conf
RUN echo 'Include = /etc/pacman.d/mirrorlist' >> /etc/pacman.conf
RUN pacman -Syu --needed --noconfirm
RUN pacman -S base base-devel --needed --noconfirm

RUN pacman -Sy --noconfirm net-tools zip unrar sslsplit sqlmap john hydra\
zsh git wget vim nano gdb python python-pip python2 python2-pip rpcbind\
binutils openssl libffi python2-paramiko python-paramiko mlocate\
nmap nikto openssh sshpass openvpn samba smbclient openldap\
metasploit exploitdb mitmproxy binwalk gnu-netcat

RUN wget https://raw.githubusercontent.com/samba-team/samba/master/examples/smb.conf.default -O /etc/samba/smb.conf

RUN wget https://raw.githubusercontent.com/evyatarmeged/stegextract/master/stegextract -O /usr/bin/stegextract &&\
chmod +x /usr/bin/stegextract

RUN wget https://raw.githubusercontent.com/AonCyberLabs/PadBuster/master/padBuster.pl -O /usr/bin/padbuster &&\
chmod +x /usr/bin/padbuster
RUN pacman -Syy --noconfirm \
base \
base-devel \
zip \
unrar \
sslsplit \
sqlmap \
john \
hydra \
zsh \
git \
wget \
vim \
nano \
gdb \
python \
python-pywinrm \
python-pip \
python2 \
python2-pip \
rpcbind \
binutils \
openssl \
libffi \
mlocate \
nmap \
nikto \
openssh \
sshpass \
samba \
smbclient \
openldap \
metasploit \
mitmproxy \
binwalk \
gnu-netcat \
evil-winrm \
padbuster \
wfuzz \
dirb \
gobuster \
enum4linux \
stegsolve \
steghide

RUN git clone https://github.com/danielmiessler/SecLists.git /usr/share/seclists
RUN wget https://raw.githubusercontent.com/evyatarmeged/stegextract/master/stegextract -O /usr/bin/stegextract \
&& chmod +x /usr/bin/stegextract

RUN gem install evil-winrm
RUN pip install impacket stegcracker shodan BeautifulSoup4 -U --force-reinstall

RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

RUN chmod 640 /etc/sudoers && echo '%wheel ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && chmod 440 /etc/sudoers && useradd -m -pyay -G wheel yay
RUN rm -rf /tmp/yay &&\
sudo -u yay git clone https://aur.archlinux.org/yay.git /tmp/yay &&\
cd /tmp/yay &&\
pacman -Syy &&\
yes | sudo -u yay makepkg -sci &&\
cd /root/
RUN wget https://raw.githubusercontent.com/samba-team/samba/master/examples/smb.conf.default -O /etc/samba/smb.conf

RUN sudo -u yay yay -S --overwrite='*' smbmap enum4linux stegsolve steghide perl-image-exiftool masscan dirbuster dirb jre11-openjdk --noconfirm
RUN go get github.com/OJ/gobuster
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

COPY .zshrc /root/
ENV PATH="${PATH}:/root/.gem/ruby/2.7.0/bin:/root/go/bin"
CMD ["/bin/zsh"]
CMD ["/bin/zsh"]
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Arch pentest docker
![License](https://img.shields.io/github/license/mach1el/docker-archsec?color=red&style=plastic) ![Version](https://img.shields.io/github/v/release/mach1el/docker-archsec?style=plastic)

This docker image was created to build minial and important tools which needed to pentest and pratice CTF.Based on [Arch linux](https://www.archlinux.org/) and using [BlackArch's](https://blackarch.org/) repo to install the tools.

### Build the image
git clone https://github.com/t7hm1/arch-pentest-docker.git && cd arch-pentest-docker/
git clone https://github.com/mach1el/docker-archsec.git && cd docker-archsec/
docker image build -t archsec .

### Run the image
Expand Down

0 comments on commit e1bdd70

Please sign in to comment.