Skip to content

Commit

Permalink
Merge branch 'main' into Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
JsphByd authored May 31, 2024
2 parents 7f0a88d + ae10a2e commit c32045e
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "mininet-wifi"]
path = Framework/mininet-wifi
url = https://github.com/JsphByd/mininet-wifi.git
[submodule "Framework/john"]
path = Framework/john
url = https://github.com/openwall/john.git
15 changes: 13 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:24.04 as base

USER root

COPY xhost /usr/bin
COPY xhost /usr/bin/

WORKDIR /wififorge

Expand All @@ -21,14 +21,25 @@ RUN apt install -y \
iputils-ping

RUN git config --global --add safe.directory $PWD
RUN git config --global --add safe.directory $PWD/Framework/john
RUN git submodule init
RUN git submodule update

RUN git config --global --add safe.directory $PWD/Framework/mininet-wifi/hostapd

RUN python3 -m pip config set global.break-system-packages true


RUN chmod +x ./Framework/dependencies.sh
RUN ./Framework/dependencies.sh

RUN ./Framework/mininet-wifi/util/install.sh -Wlnfv
RUN sudo make -C Framework/mininet-wifi install
RUN service openvswitch-switch start
RUN service openvswitch-switch start

#setup john
RUN apt install libssl-dev
RUN ./Framework/john/src/configure
RUN make -C Framework/john/src
RUN make -C Framework/john/src -s clean && make -C Framework/john/src -sj4

9 changes: 0 additions & 9 deletions Framework/NTLM_Hash.py

This file was deleted.

1 change: 1 addition & 0 deletions Framework/john
Submodule john added at d384b5
72 changes: 56 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,78 @@
<img src="https://github.com/her3ticAVI/MiniNet-Framework/blob/main/images/wifi.png" alt="Wi-Fi Forge Banner">
</div>

## FAQS
# Wi-Fi Forge

Wi-Fi Forge provides a safe environment for learning WiFi hacking via [Mininet-Wifi](https://github.com/intrig-unicamp/mininet-wifi/tree/master?tab=readme-ov-file) and [Mininet](https://github.com/mininet/mininet), which creates software defined networks within a single host machine. Wi-Fi Forge provides pre-built labs that can be setup and completed with minimal overhead all from a single laptop without any additional hardware.
Wi-Fi Forge provides a safe and legal environment for learning WiFi hacking. Based on the open source [Mininet-Wifi](https://github.com/intrig-unicamp/mininet-wifi/tree/master?tab=readme-ov-file), this project automatically sets up the networks and tools needed to run a variety of WiFi exploitation labs, removing the need for the overhead and hardware normally required to perform these attacks.

#### Disclaimer/Notes
## Disclaimer/Notes

- Mininet and Wifi Forge only runs on Ubuntu operating systems.
- The installation script will only run on Ubuntu, Debian, or Fedora systems.
- It is suggested to run Wifi Forge on Ubuntu version 14.04 or greater.
- The Wifi Forge installation script may disrupt normal operating system use, it is suggested to use a fresh install or virtual machine
- The Wifi Forge installation script may disrupt normal operating system use, it is suggested to use a fresh install, virtual machine, or build using the provided dockerfile (see Set-Up Guide/Docker)

## Set-Up Guide

Clone the repository
### Docker (recommended)

1. Install Docker
```bash
sudo snap install docker
```

2. Clone the repository
```bash
git clone https://github.com/her3ticAVI/MiniNet-Framework
```

3. Run the Dockerfile (may take up to 10 minutes)
```bash
sudo docker build -t wififorge .
```

4. Start a new container (command should automatically initiate a docker shell)
```bash
sudo docker run --privileged=true -it --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" -v /tmp/.X11-unix:/tmp/.X11-unix:rw -v /sys/:/sys -v /lib/modules/:/lib/modules/ --name mininet-wifi --network=host --hostname mininet-wifi wififorge /bin/bash
```

5. Within docker, initiate the controller to simulate APs
```bash
RUN sudo /usr/share/openvswitch/scripts/ovs-ctl start
```
git clone https://github.com/her3ticAVI/MiniNet-Framework &&
cd MiniNet-Framework/Framework &&

6. Within docker, run WifiForge.py
```bash
sudo python3 Framework/WifiForge.py
```
### Build from Source


NOTE: While the setup script is generally stable, running the auto installer directly on your machine may disrupt your operating system in a way that renders it unusable.

1. Clone the repository
```bash
git clone https://github.com/her3ticAVI/MiniNet-Framework
```

2. Run Wi-Fi Forge to perform first time setup (may take up to 10 minutes)
```bash
cd MiniNet-Framework/Framework
sudo python3 WifiForge.py
```

## Labs and Featured Tools

Wi-Fi Forge provides pre-built labs that cover the following:

- WPA 4 Way Handshakes
- Cracking Wifi Key Encryption
- The tool eaphammer
- WPS Pixie Dust Attacks
- WEP wifi attakcs
- The ARP Spoof tool and downgrading ssl
- The aircrack-ng tool suite
- John the Ripper "JOHN"
- ARP spoofing
- Evil twin
- WEP cracking
- WPA2 cracking
- WPS exploitation

## Links and Further Reading

- https://mininet-wifi.github.io/
- [https://www.hackingarticles.in/wireless-penetration-testing-pmkid-attack/](https://www.hackingarticles.in/wireless-penetration-testing-pmkid-attack/)
- [https://en.wikipedia.org/wiki/IEEE_802.11i-2004](https://en.wikipedia.org/wiki/IEEE_802.11i-2004)
- [https://www.wildwesthackinfest.com](https://www.wildwesthackinfest.com)
Expand All @@ -46,3 +84,5 @@ Wi-Fi Forge provides pre-built labs that cover the following:
- [https://www.aircrack-ng.org/doku.php?id=airodump-ng](https://www.aircrack-ng.org/doku.php?id=airodump-ng)
- [https://www.aircrack-ng.org/doku.php?id=cracking_wpa](https://www.aircrack-ng.org/doku.php?id=cracking_wpa)
- [https://charlesreid1.com/wiki/Aircrack_and_John_the_Ripper](https://charlesreid1.com/wiki/Aircrack_and_John_the_Ripper)


0 comments on commit c32045e

Please sign in to comment.