# Installing AaFi

Guide how to install AaFi dependencies.

## Installing AaFi

![](https://user-images.githubusercontent.com/49574294/113787890-780fe080-9701-11eb-9af6-4813a7985928.png)

For a more in depth installation please check out the [Wiki](https://docs.aafi.xyz)

## Installing Wordlist for Cracking Module

Wordlists for Cracking: [Wordlists](https://www.mediafire.com/folder/e8ltrg1zo3oy9/Wordlists)

### Installing Dependencies

To install the required dependencies simply manually install them from here or use the automatic install script `./install.sh` that is included with the install package of AaFi.

| Dependency                                   | Command                                       |
| -------------------------------------------- | --------------------------------------------- |
| Updating Repos and Updating Operating System | `sudo apt-get upgrade && sudo apt-get update` |
| hostapd-wpe                                  | `sudo apt-get install hostapd-wpe -y`         |
| mdk3                                         | `sudo apt-get install mdk3 -y`                |
| aircrack-ng                                  | `sudo apt-get install aircrack-ng -y`         |
| network-manager                              | `sudo apt-get install network-manager -y`     |
| macchanger                                   | `sudo apt-get install macchanger -y`          |

### Chmod AaFi Shell Script

After installing AaFi from the Github Repository go to the AaFi folder found in the destination you saved the folder. then `cd AaFi` to go to the AaFi folder. After that `chmod +x` the script to make it executable.

![](https://3950384666-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MUzjxXCYeBn0k-73heU%2F-MUzl5pp2cKbD7mttZzZ%2F4OYxi9L7qr.gif?alt=media\&token=fbe32bfb-4d4f-4f24-a842-a820d0ab4fa2)

### Disclaimer:

AaFi was created and is used to educate others please do not use this tool for malicious purposes. Usage of all tools on the repos for attacking targets without prior mutual consent is illegal. It is the end users responsibility to obey the law.


# AaFi Changelogs

Recent updates to AaFi and changes to come.

## Recently Added Features:

| Date                   | Feature                                                |
| ---------------------- | ------------------------------------------------------ |
| ***April 5th, 2021***  | Added Wireless Cracker Module.                         |
| ***March 30th, 2021*** | Rouge/Fake AP Issue Fixed                              |
| ***March 3rd, 2021***  | \[Feature WIP] Adding Rouge/Fake AP.                   |
| ***February, 2021***   | Added the ability to deauth a specific SSID.           |
| ***February, 2021***   | Added the ability to deauth all channels.              |
| ***February, 2021***   | Added the ability to deauth a specific device on a AP. |
| ***February, 2021***   | Added the ability to AP spam.                          |


# Command Modules


# Wireless Cracker

Usage and guide to using Wireless Cracker

## Getting Started:

To get started using the wireless cracker module select the attack you wish to execute.

![](https://3950384666-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MXcMy87n0tNqbhLTS6v%2F-MXcg1y-6UWwBvXMT-8X%2Fimage.png?alt=media\&token=6b2924d2-9512-4483-8131-4fe6f25d83f9)

## Interfaces:

![](https://3950384666-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MXcMy87n0tNqbhLTS6v%2F-MXchT3baODVhWGgjfFT%2Fimage.png?alt=media\&token=73744806-13a7-4517-bd38-152dd5464771)

Depending on the interface you plan to use for the attack in my case `wlan0` and `wlan1` were my options to use. Usually those are the most common interfaces to use and choose from when running any of these attacks in the module.

## Types of Attacks:

* `WPS Attack` -  The attack works by executing a brute-force attack against the WPS PIN.
* `WPA/WPA2 Attack` - Creates a `.cap` file for the user to read with a specific BSSID.&#x20;
* `CAP Bruteforce` - The attack works by executing a brute-force attack against all possible passcodes using a massive wordlist that is provided in the download. However, you can customize the wordlist to make it other wordlists while trying to crack the network.


# Rouge/Fake AP

Usage and guide to using Rouge/Fake AP Module.

## Setting Up Rouge/Fake AP Module:

Just place all files in /var/www/html/, run the command chown `www-data:www-data ./*` (may want to limit it to the html, js, passwords.txt and images if running on a large network) and run: \`\` `sudo ./AaFi.sh wlan1 eth0 [FAKE NETWORK NAME]` then AaFi's fake AP module should work perfectly.

Note: when selecting a Interface Type in the command please select the correct one so the module will work perfectly.

## Usage:

The user **must** start the command with `sudo ./AaFi [Network Interface] [Fake Network Name]` in order to run the command successfully.

## Interface Types:

* `eth0`
* `lo`
* `wlan0`
* `wlan1`

## Which Interface Should I Use?

If you do not know which wireless interface to use initially then running the command `ifconfig` should pull up the interfaces that you have available.

![](https://3950384666-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MUyZKyGFUkuo8s5Ekv6%2F-MUy_gpbKcG2-bR3BW1I%2FefgpPsemlA.gif?alt=media\&token=f94e553c-0a73-40de-9673-92556a687bdd)

However, if you are still confused running the command `sudo airmon-ng` should bring up the best possible interfaces to use when running this command.

![](https://3950384666-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MUyZKyGFUkuo8s5Ekv6%2F-MUy_J_GSSUdX_tcWx51%2FlIbLuQl6o6.gif?alt=media\&token=9d63cf32-e739-40d1-a05a-230fe9143f60)


# Deauth

Usage and guide to using the Deauth Module.

## Starting the Deauth Module:

To start the Deauth Module run the command `sudo ./AaFi.sh`

![](https://3950384666-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MXUUDp-cHfJee4YRITq%2F-MXUaMeAPvXiNCU-NF5U%2FR7eTIS4B8p.gif?alt=media\&token=926aabb5-e002-4b58-a2fa-85434edb1230)

From there you should be greeted with the AaFi Menu Select which deauth attack you wish to choose to execute.

## Types of Deauth Attacks Available:

* Deauth a Specific SSID&#x20;
* Deauth all channels&#x20;
* Deauth a Specific Device on AP&#x20;

## Entering the BSSID:

Upon running the module it will ask you for a BSSID you should be able to find the BSSID listed at the top as shown here. Then enter the BSSID to contine the attack process.

![](https://3950384666-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2Fsync%2F1cffb90f4bd97eaac1a816479a03020fd5171262.png?generation=1617749236392781\&alt=media)


# Fake AP Spammer

Usage and guide to using the Fake AP Spammer Module.

## Choosing Wordlist's of Networks

![](https://3950384666-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MXckVn8hZzY4c0r73OM%2F-MXcnd_HZUBqAGyDnjnq%2Fimage.png?alt=media\&token=08fcec09-045b-4ee3-bf5c-7234d8075785)

* When choosing a wordlist two options are shown. However, when you use a custom wordlist it allows the spamming of one network except it appends a number at the end of the word you choose for the network.&#x20;
* When choosing default wordlist it will output alot of networks from a text file. However, you can make changes to which network is shown on the text file.&#x20;

## Interface Types:

* `eth0`
* `lo`
* `wlan0`
* `wlan1`


# Installing AaFi

Guide how to install AaFi dependencies.

## Installing Dependencies&#x20;

To install the required dependencies simply manually install them from here or use the automatic install script `./install.sh` that is included with the install package of AaFi.

| Dependency                                   | Command                                       |
| -------------------------------------------- | --------------------------------------------- |
| Updating Repos and Updating Operating System | `sudo apt-get upgrade && sudo apt-get update` |
| hostapd-wpe                                  | `sudo apt-get install hostapd-wpe -y`         |
| mdk3                                         | `sudo apt get install mdk3 -y`                |
| aircrack-ng                                  | `sudo apt get install aircrack-ng -y`         |
| network-manager                              | `sudo apt-get install network-manager -y`     |
| macchanger                                   | `sudo apt-get install macchanger -y`          |

## Chmod AaFi Shell Script

After installing AaFi from the Github Repository go to the AaFi folder found in the destination you saved the folder. then  `cd AaFi` to go to the AaFi folder. After that `chmod +x` the script to make it executable.&#x20;

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MUzjxXCYeBn0k-73heU%2F-MUzl5pp2cKbD7mttZzZ%2F4OYxi9L7qr.gif?alt=media\&token=fbe32bfb-4d4f-4f24-a842-a820d0ab4fa2)


# AaFi Changelogs

Recent updates to AaFi and changes to come.

## Recently Added Features:&#x20;

| Date                   | Feature                                                |
| ---------------------- | ------------------------------------------------------ |
| ***April 24th, 2021*** | Added FAQ Page.                                        |
| ***April 5th, 2021***  | Added Wireless Cracker Module.                         |
| ***March 30th, 2021*** | Rouge/Fake AP Issue Fixed                              |
| ***March 3rd, 2021***  | \[Feature WIP] Adding Rouge/Fake AP.                   |
| ***February, 2021***   | Added the ability to deauth a specific SSID.           |
| ***February, 2021***   | Added the ability to deauth all channels.              |
| ***February, 2021***   | Added the ability to deauth a specific device on a AP. |
| ***February, 2021***   | Added the ability to AP spam.                          |


# Command Modules


# Wireless Cracker

Usage and guide to using Wireless Cracker

## Getting Started:

To get started using the wireless cracker module select the attack you wish to execute.&#x20;

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MXcMy87n0tNqbhLTS6v%2F-MXcg2B_Ib3w0z6Zq_0o%2Fimage.png?alt=media\&token=e4f5c008-b66c-44d5-87bb-9c2c33ed99ce)

## Interfaces:&#x20;

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MXcMy87n0tNqbhLTS6v%2F-MXchT3baODVhWGgjfFT%2Fimage.png?alt=media\&token=73744806-13a7-4517-bd38-152dd5464771)

Depending on the interface you plan to use for the attack in my case `wlan0` and `wlan1` were my options to use.  Usually those are the most common interfaces to use and choose from when running any of these attacks in the module.&#x20;

## Types of Attacks:

* `WPS Attack` -  The attack works by executing a brute-force attack against the WPS PIN.
* `WPA/WPA2 Attack` - Creates a `.cap` file for the user to read with a specific BSSID.&#x20;
* `CAP Bruteforce` - The attack works by executing a brute-force attack against all possible passcodes using a massive wordlist that is provided in the download. However, you can customize the wordlist to make it other wordlists while trying to crack the network.

##


# Rouge/Fake AP

Usage and guide to using Rouge/Fake AP Module.

## Setting Up Rouge/Fake AP Module:

\
Just place all files in /var/www/html/, run the command chown `www-data:www-data ./*` (may want to limit it to the html, js, passwords.txt and images if running on a large network) and run: \`\` `sudo ./AaFi.sh wlan1 eth0 [FAKE NETWORK NAME]` then AaFi's fake AP module should work perfectly.&#x20;

Note: when selecting a Interface Type in the command please select the correct one so the module will work perfectly.&#x20;

## Usage:&#x20;

The user **must** start the command with `sudo ./AaFi [Network Interface] [Fake Network Name]` in order to run the command successfully.&#x20;

## Interface Types:&#x20;

* `eth0`
* `lo`
* `wlan0`
* `wlan1`

## Which Interface Should I Use?&#x20;

If you do not know which wireless interface to use initially then running the command `ifconfig` should pull up the interfaces that you have available.&#x20;

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MUyZKyGFUkuo8s5Ekv6%2F-MUy_gpbKcG2-bR3BW1I%2FefgpPsemlA.gif?alt=media\&token=f94e553c-0a73-40de-9673-92556a687bdd)

However, if you are still confused running the command `sudo airmon-ng` should bring up the best possible interfaces to use when running this command.&#x20;

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MUyZKyGFUkuo8s5Ekv6%2F-MUy_J_GSSUdX_tcWx51%2FlIbLuQl6o6.gif?alt=media\&token=9d63cf32-e739-40d1-a05a-230fe9143f60)


# Deauth

Usage and guide to using the Deauth Module.

## Starting the Deauth Module:

To start the Deauth Module run the command `sudo ./AaFi.sh`

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MXUUDp-cHfJee4YRITq%2F-MXUaMeAPvXiNCU-NF5U%2FR7eTIS4B8p.gif?alt=media\&token=926aabb5-e002-4b58-a2fa-85434edb1230)

From there you should be greeted with the AaFi Menu Select which deauth attack you wish to choose to execute.&#x20;

## Types of Deauth Attacks Available:

* Deauth a Specific SSID&#x20;
* Deauth all channels&#x20;
* Deauth a Specific Device on AP&#x20;

## Entering the BSSID:&#x20;

Upon running the module it will ask you for a BSSID you should be able to find the BSSID listed at the top as shown here. Then enter the BSSID to contine the attack process.&#x20;

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MXUcdL9DwVc8g2RUiGn%2F-MXUdQsTy0mZY0RRzGXR%2Fimage.png?alt=media\&token=10e07ad6-0882-4b7e-a38d-ffe9d6d99406)


# Fake AP Spammer

Usage and guide to using the Fake AP Spammer Module.

## Choosing Wordlist's of Networks

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MXckVn8hZzY4c0r73OM%2F-MXcnd_HZUBqAGyDnjnq%2Fimage.png?alt=media\&token=08fcec09-045b-4ee3-bf5c-7234d8075785)

* When choosing a wordlist two options are shown. However, when you use a custom wordlist it allows the spamming of one network except it appends a number at the end of the word you choose for the network.&#x20;
* When choosing default wordlist it will output alot of networks from a text file. However, you can make changes to which network is shown on the text file.&#x20;

## Interface Types:&#x20;

* `eth0`
* `lo`
* `wlan0`
* `wlan1`

## Wordlist Download:

Download: <https://www.mediafire.com/folder/e8ltrg1zo3oy9/Wordlists>


# FAQ

General Questions about AaFi

## What is AaFi?

AaFi is wireless toolkit that makes it easier for the end user to pentest their victim **(with permission)** . It gives the user full control and power with the clean command menu. It is mainly meant for people inside the Cyber Security field to use in a non malicious manner.&#x20;

## Who is AaFi built for?&#x20;

I built AaFi for anyone in the Cyber Security field to use and try out as a tool the audience that im mainly targeting is people using this tool to pentest. AaFi is also open source for anyone who wants to make slight modifications themselves.&#x20;

Github:[ https://github.com/Aayuri/AaFi](https://github.com/Aayuri/AaFi)&#x20;

## What is our goals for AaFi?

What I want my tool AaFi to accompish in the end by being open source anyone can add to the tool. Which means if someone later down the line wants to use this for their capstone or anything alike you can and go off the code I have and build something even better of AaFi. I want to future proof AaFi and keep it updated as much as possible as a ongoing project that continues to evolve overtime.

## What was learned throughout developing AaFi?

For the most part about 90% percent of the things I planned went right as far I foresee this project to go. However, most of the issues that I fixed or changed can be found in [Challenges Working on AaFi](https://docs.aafi.xyz/faq/challenges-working-on-aafi) and [AaFi Changelogs](https://docs.aafi.xyz/aafi-changelogs). My original goal was to create a tool and compile a whole bunch of tools into one package that makes it easier for the user to do. With a couple of issues that were later fixed throughout the process of making this tool. Everything I looked initially at the beginning ended up working out at the end of the project. I learned how to compile shell scripts through this and brushed up my knowledge with python and other languages this tool uses.&#x20;


# Design Progress

## Materials Needed for AaFi:

* Raspberry Pi Zero W
* 32 GB Micro SD Card
* Ethernet/USB HUB HAT Expansion Board for Raspberry Pi 4B/3B+/3B/2B/Zero/Zero W/Zero WH,with RJ45 10/100M Ethernet Port
* Alfa AWUS036NH
* Battery Pack

## \[V1 Design] Orginal Prototype Design of AaFi.&#x20;

Found that USB extension for Raspberry Pi Zero did not work at all. Design was later scrapped early on in development.&#x20;

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MZ55SUgndwqWZTkm3RT%2F-MZ5B76hMsxTcmQRNrXo%2FDesignV1Unused.png?alt=media\&token=b4cb30fb-dc05-407b-983a-0f543d6909d1)

## \[V2 Design Top] Design of AaFi&#x20;

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MZ55SUgndwqWZTkm3RT%2F-MZ5CpYhLD3J03Xk2BQb%2FDesignV2Top.png?alt=media\&token=6f5dd7d8-8ed5-47aa-a5c0-54eff27e9a7f)

## \[V2 Design Side] Design of AaFi&#x20;

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MZ55SUgndwqWZTkm3RT%2F-MZ5DDyAv9ZsnP6XCu6r%2FDesignV2Side.png?alt=media\&token=120eb5c7-0430-4fd2-a66a-ecbb402f789f)

## Final Design of AaFi Side View

Essentially the same design as V2 but added a ethernet hat on to the Raspberry Pi Zero W for ethernet connenctivity.&#x20;

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MZ5EVu7zLy7ihTuUZ6L%2F-MZ5GcMz7r5K_LQamzm4%2F20210424_184346.jpg?alt=media\&token=6bd00eb9-d551-4c79-8764-cc98a21200df)


# Phases / Milestones on AaFi

## Work Breakdown Schedule for AaFi

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MZ5K2aVqlsyR5VAJ6vq%2F-MZ5bnoAMtVjuCqUruBB%2FAcrobat_TSA5rNbiit.png?alt=media\&token=cd91ea52-27ec-47ea-9b29-24b7cf7b2bd8)

## PERT Chart for AaFi

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MZJK9VPKz3-6mkUJjqz%2F-MZJL3Ng5IQJ_3qbScY0%2FAcrobat_F2A5W05NIL.png?alt=media\&token=09767021-c45b-43f7-9891-03b96b02ff9a)

## Gantt Chart for AaFi

![](https://2313937159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MUtge29enKBUN7GNVfu%2F-MZJK9VPKz3-6mkUJjqz%2F-MZJLIAPDcQoXS9DJUzQ%2FAcrobat_kTGrtGSICk.png?alt=media\&token=b6c337e6-2094-4728-8fbf-88a064245319)

## The Plan for AaFi

The plan for developing AaFi was to try to make the user interface as simple as possible first off. At the same time trying to develop at least 3 features to keep the whole project stable as possible. After that I tried to follow everything that I had planned out in the work breakdown schedule. My final plan was to have something that was easy to use for everyone and make this toolkit as user friendly as possible.&#x20;


# Challenges Working on AaFi

## Problems Encountered

One problem that we have encountered as of the first release of AaFi for the [Rouge/Fake AP](https://docs.aafi.xyz/command-modules/rouge-fake-ap) module only Yahoo works as a means of search engine.&#x20;

## Fixed Bugs

* Fixed [Rouge/Fake AP](https://docs.aafi.xyz/command-modules/rouge-fake-ap) not starting by adding a needed depedency in the final build of AaFi.&#x20;
* Added [AaFi Changelogs](https://docs.aafi.xyz/aafi-changelogs) for problems that were fixed along the way and added features.&#x20;


