Skip to content

Commit

Permalink
Merge pull request #78 from v1s1t0r1sh3r3/docker
Browse files Browse the repository at this point in the history
Docker into dev v6.2
  • Loading branch information
v1s1t0r1sh3r3 authored Apr 16, 2017
2 parents fb18f29 + 9e4ff75 commit d057e48
Show file tree
Hide file tree
Showing 21 changed files with 326 additions and 329 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
###6.2
- Docker support added
- Default save path system detecting if executed in Docker container

###6.12
- Fixed bug on network detection
- Fixed bug causing strange behaviour on some Linux handling optional_tools array
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
Hi there! We are thrilled that you would like to contribute to this project. Your help is essential for keeping it great.

When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.
email, or any other method with the owners of this repository before making a change.
If an issue is opened and more info is needed, `airgeddon` staff will request it. If there is no answer in 10 days, the issue will be closed.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Expand Down Expand Up @@ -128,7 +129,7 @@ available at [http://contributor-covenant.org/version/1/4][Version]

## Donate

If you enjoyed the script, feel free to donate. Invite me to a coffee through Paypal or send me a fraction of a bitcoin:
If you enjoyed the script, feel free to donate. Support the project through Paypal or sending a fraction of a bitcoin:

<table>
<tr>
Expand Down
161 changes: 161 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
#airgeddon Dockerfile

#Base image
FROM kalilinux/kali-linux-docker:latest

#Credits & Data
LABEL \
name="airgeddon" \
author="v1s1t0r <[email protected]>" \
maintainer="OscarAkaElvis <[email protected]>" \
description="This is a multi-use bash script for Linux systems to audit wireless networks."

#Url env vars
ENV AIRGEDDON_URL="https://github.com/v1s1t0r1sh3r3/airgeddon.git"
ENV BULLY_URL="https://github.com/v1s1t0r1sh3r3/bully.git"
ENV HASHCAT2_URL="https://github.com/v1s1t0r1sh3r3/hashcat2.0.git"

#Update system
RUN \
apt-get update

#Set locales
RUN \
apt-get -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-get -y install \
gawk \
net-tools \
wireless-tools \
iw \
aircrack-ng \
xterm

#Install airgeddon internal tools
RUN \
apt-get -y install \
ethtool \
pciutils \
rfkill \
x11-utils

#Install update tools
RUN \
apt-get -y install \
curl \
git

#Install airgeddon optional tools
RUN \
apt-get -y install \
crunch \
hashcat \
mdk3 \
hostapd \
lighttpd \
iptables \
ettercap-text-only \
sslstrip \
isc-dhcp-server \
dsniff \
reaver \
bully \
pixiewps \
expect

#Install needed Ruby gems
RUN \
apt-get -y install \
beef-xss \
bettercap

#Env var for display
ENV DISPLAY=":0"

#Create dir for external files
RUN \
mkdir /io

#Set workdir
WORKDIR /opt/

#airgeddon install method 1 (only one method can be used, other must be commented)
#Install airgeddon (Dockerhub 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 one of the three to select branch (master->latest, dev->beta, docker->alpha)
#ENV BRANCH="master"
#ENV BRANCH="dev"
#ENV BRANCH="docker"
#RUN \
# git clone -b ${BRANCH} ${AIRGEDDON_URL}

#Remove auto update
RUN \
sed -i 's|auto_update=1|auto_update=0|' airgeddon/airgeddon.sh

#Make bash script files executable
RUN \
chmod +x airgeddon/*.sh

#Prepare packages to upgrade Bully
RUN \
apt-get -y install libssl1.0-dev \
build-essential \
libpcap-dev

#Upgrade Bully
RUN \
git clone ${BULLY_URL} && \
cd /opt/bully/src && \
make && \
make install && \
cp /usr/local/bin/bully /usr/bin/ && \
chmod +x /usr/bin/bully

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

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

#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/CONTRIBUTING.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/bully > /dev/null 2>&1 && \
rm -rf /opt/hashcat2.0 > /dev/null 2>&1 && \
rm -rf /tmp/* > /dev/null 2>&1

#Expose port
EXPOSE 3000

#Entrypoint
CMD ["bash", "-c", "/opt/airgeddon/airgeddon.sh"]
Loading

0 comments on commit d057e48

Please sign in to comment.