-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Docker
Below, there are docker run commands as example (for Linux and Mac OSX. Not tested yet in Windows). The image is going to be automatically downloaded from airgeddon's Dockerhub/airgeddon's Dockercloud and then a Docker container will be be run launching automatically airgeddon
script inside the container:
Linux
docker run --rm -ti --name airgeddon --net=host --privileged -p 3000:3000 -v /path/to/some/dir/on/your/host:/io v1s1t0r1sh3r3/airgeddon
Parameters explanation:
-
--rm
-> Ephemeral containter. It will be removed on exit. -
-ti
-> Attach pseudo-TTY terminal to the container as interactive. -
--name airgeddon
-> Name for the container. -
--net=host
-> Is needed to have access to the host network interfaces inside the container. -
--privileged
-> Needed to have permissions over network interfaces (mode switching). -
-p 3000:3000
-> Open port to access to BeEF control panel from the host. -
-v /path/to/some/dir/on/your/host:/io
-> It maps a directory from host to the container. Useful to use external files like dictionaries or whatever. -
v1s1t0r1sh3r3/airgeddon
-> Is the name and tag of the image.v1s1t0r1sh3r3/airgeddon
is the stable version and is the same asv1s1t0r1sh3r3/airgeddon:latest
. Alternatively you can usev1s1t0r1sh3r3/airgeddon:beta
orv1s1t0r1sh3r3/airgeddon:alpha
for development versions.
Mac OSX
docker run --rm -ti --name airgeddon --net=host --privileged -p 3000:3000 -v /path/to/some/dir/on/your/host:/io -e DISPLAY=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}') v1s1t0r1sh3r3/airgeddon
Mac OSX Parameters explanation:
-
--rm
-> Ephemeral containter. It will be removed on exit. -
-ti
-> Attach pseudo-TTY terminal to the container as interactive. -
--name airgeddon
-> Name for the container. -
--net=host
-> Is needed to have access to the host network interfaces inside the container. -
--privileged
-> Needed to have permissions over network interfaces (mode switching). -
-p 3000:3000
-> Open port to access to BeEF control panel from the host. -
-v /path/to/some/dir/on/your/host:/io
-> It maps a directory from host to the container. Useful to use external files like dictionaries or whatever. -
-e DISPLAY=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
-> It overwrites the needed var to connect to local X Window system (It's understood you installed XQuartz for mac). This is not needed for Linux because the Dockerfile already has set DISPLAY=:0 as default which is valid for Linux. -
v1s1t0r1sh3r3/airgeddon
-> Is the name and tag of the image.v1s1t0r1sh3r3/airgeddon
is the stable version and is the same asv1s1t0r1sh3r3/airgeddon:latest
. Alternatively you can usev1s1t0r1sh3r3/airgeddon:beta
orv1s1t0r1sh3r3/airgeddon:alpha
for development versions.
General Tips
Don't forget to replace "/path/to/some/dir/on/your/host" with a path of an existing directory of your choice on your host machine. That directory will be the "input/output" point for the script. For example, if you place a dictionary.txt file there, inside the script you must access to it as "/io/dictionary.txt". If you capture a trophy or a Handshake file, save it at "/io/" dir to access it from the host.
The default language for docker image is English. Once inside, it can be changed as normal using menu option for that.
If you prefer to build your own image, there is a Dockerfile present in the project.
Linux Tips
Evil Twin attacks are using hostapd
to create fake AP which usually are in conflict with network-manager
. Usually (in native mode) airgeddon
manages all of this stuff to solve process conflicts, but when launched in a Docker container is not possible because the conflicting network-manager is on the Linux host. So, before launching any Evil Twin Attack, be sure of killing conflicting processes or disabling/stopping network-manager
if you have it installed on Linux host or you'll get an error like this:
Configuration file: /tmp/ag.hostapd.conf
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data: Interface wlan0 wasn't started
The easiest way is to launch on host this command:
airmon-ng check kill
-> This will kill conflicting processes
Or if you prefer, you can directly disable network-manager
. To do this there are several ways. Depending of your Linux distribution the command can change. Some of them:
service network-manager stop
-> Valid for Kali, Backbox, Ubuntu, Debian, Raspbian, Parrot and Cyborg.
service NetworkManager stop
-> Valid for SuSE, CentOS, Fedora, Gentoo and Red Hat.
systemctl stop NetworkManager.service
-> Valid for Arch, BlackArch and OpenMandriva.
The goal is to see at hostapd
window something like this:
Configuration file: /tmp/ag.hostapd.conf
Using interface wlan0 with hwaddr 00:11:22:33:44:55 and ssid "airgeddon-test"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
Mac OSX Tips
You'll need a X window system running on your Mac OSX. You can install XQuartz, and after installing it, be sure of allowing connections from network clients in preferences as shown on next image:
After that, you'll need to disable access control or add your ip to the authorized clients list:
xhost +
-> To disable completely the restriction.
Or the more recommended:
xhost $(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
-> To allow only local ip, this is more restrictive and secure.
Content & Features
Requirements
- Requirements
- Compatibility
- Essential Tools
- Optional Tools
- Update Tools
- Internal Tools
- Known Incompatibilities
Getting Started
Learning
Project & Development
- Plugins system
- Supported Languages
- Contributing & Code of Conduct
- Merchandising Online Shop
- Changelog
- Disclaimer & License
- Contact
Acknowledgments & References