Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
12 views

Docker File

Uploaded by

mimarliyes
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Docker File

Uploaded by

mimarliyes
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

#airgeddon Dockerfile

#Base image
FROM kalilinux/kali-rolling:latest

#Credits & Data


LABEL \
name="airgeddon" \
author="v1s1t0r <v1s1t0r.1s.h3r3@gmail.com>" \
maintainer="OscarAkaElvis <oscar.alfonso.diaz@gmail.com>" \
description="This is a multi-use bash script for Linux systems to audit
wireless networks."

#Env vars
ENV AIRGEDDON_URL="https://github.com/v1s1t0r1sh3r3/airgeddon.git"
ENV HASHCAT2_URL="https://github.com/v1s1t0r1sh3r3/hashcat2.0.git"
ENV DEBIAN_FRONTEND="noninteractive"

#Update system
RUN apt update

#Set locales
RUN \
apt -y install \
locales && \
locale-gen en_US.UTF-8 && \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
echo 'LANG="en_US.UTF-8"' > /etc/default/locale && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8

#Env vars for locales


ENV LANG="en_US.UTF-8"
ENV LANGUAGE="en_US:en"
ENV LC_ALL="en_US.UTF-8"

#Install airgeddon essential tools


RUN \
apt -y install \
gawk \
iw \
aircrack-ng \
xterm \
iproute2 \
pciutils \
procps \
tmux

#Install airgeddon internal tools


RUN \
apt -y install \
ethtool \
usbutils \
rfkill \
x11-utils \
wget \
ccze \
systemd \
x11-xserver-utils
#Install update tools
RUN \
apt -y install \
curl \
git

#Install airgeddon optional tools


RUN \
apt -y install \
crunch \
hashcat \
mdk3 \
mdk4 \
hostapd \
lighttpd \
iptables \
nftables \
ettercap-text-only \
bettercap \
isc-dhcp-server \
dnsmasq \
reaver \
bully \
pixiewps \
hostapd-wpe \
asleap \
john \
openssl \
hcxtools \
hcxdumptool \
beef-xss \
tshark \
tcpdump

#Env var for display


ENV DISPLAY=":0"

#Create volume dir for external files


RUN mkdir /io
VOLUME /io

#Set workdir
WORKDIR /opt/

#airgeddon install method 1 (only one method can be used, other must be commented)
#Install airgeddon (Docker Hub automated build process)
RUN mkdir airgeddon
COPY . /opt/airgeddon

#airgeddon install method 2 (only one method can be used, other must be commented)
#Install airgeddon (manual image build)
#Uncomment git clone line and one of the ENV vars to select branch (master->latest,
dev->beta)
#ENV BRANCH="master"
#ENV BRANCH="dev"
#RUN git clone -b ${BRANCH} ${AIRGEDDON_URL}

#Remove auto update


RUN sed -i 's|AIRGEDDON_AUTO_UPDATE=true|AIRGEDDON_AUTO_UPDATE=false|'
airgeddon/.airgeddonrc

#Force use of iptables


RUN sed -i 's|AIRGEDDON_FORCE_IPTABLES=false|AIRGEDDON_FORCE_IPTABLES=true|'
airgeddon/.airgeddonrc

#Make bash script files executable


RUN chmod +x airgeddon/*.sh

#Downgrade Hashcat
RUN \
git clone ${HASHCAT2_URL} && \
cp /opt/hashcat2.0/hashcat /usr/bin/ && \
chmod +x /usr/bin/hashcat

#Clean packages
RUN \
apt clean && \
apt autoclean && \
apt autoremove -y

#Clean files
RUN \
rm -rf /opt/airgeddon/imgs > /dev/null 2>&1 && \
rm -rf /opt/airgeddon/.github > /dev/null 2>&1 && \
rm -rf /opt/airgeddon/.editorconfig > /dev/null 2>&1 && \
rm -rf /opt/airgeddon/CONTRIBUTING.md > /dev/null 2>&1 && \
rm -rf /opt/airgeddon/CODE_OF_CONDUCT.md > /dev/null 2>&1 && \
rm -rf /opt/airgeddon/pindb_checksum.txt > /dev/null 2>&1 && \
rm -rf /opt/airgeddon/Dockerfile > /dev/null 2>&1 && \
rm -rf /opt/airgeddon/binaries > /dev/null 2>&1 && \
rm -rf /opt/hashcat2.0 > /dev/null 2>&1 && \
rm -rf /opt/airgeddon/plugins/* > /dev/null 2>&1 && \
rm -rf /tmp/* > /dev/null 2>&1 && \
rm -rf /var/lib/apt/lists/* > /dev/null 2>&1

#Expose BeEF control panel port


EXPOSE 3000

#Create volume for plugins


VOLUME /opt/airgeddon/plugins

#Start command (launching airgeddon)


CMD ["/bin/bash", "-c", "/opt/airgeddon/airgeddon.sh"]

You might also like