Install Fluxion and Dependencies in Kali Linux

Beginner
Practice Now

Introduction

Fluxion is a security auditing and social-engineering research tool. It is a popular tool used in penetration testing to assess the security of Wi-Fi networks.

In this lab, you will learn how to install Fluxion and its required dependencies on a Kali Linux system. The process involves updating the system's package lists, installing prerequisite software like git, cloning the Fluxion repository from GitHub, and finally, running the installation script. By the end of this lab, you will have a fully functional Fluxion setup, ready for use.

Update Kali Linux Package Lists

In this step, you will update the package lists for your Kali Linux system. This is a crucial first step before installing any new software, as it ensures that you are getting the latest available versions of packages and their dependencies from the configured repositories.

All commands in this lab will be executed in the terminal. Your default working directory is ~/project.

Execute the following command to update the package lists:

sudo apt update

The sudo command grants administrative privileges, which are necessary for managing system packages. The apt update command fetches the latest package information from all configured sources.

You will see output similar to the following, indicating that the package lists are being updated:

Hit:1 http://kali.download/kali kali-rolling InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

Install Git and Other Prerequisite Packages

In this step, you will install git and aircrack-ng. git is a version control system that is required to download the Fluxion source code from its GitHub repository. aircrack-ng is a suite of tools for auditing wireless networks and is a core dependency for Fluxion.

Run the following command to install git and aircrack-ng. The -y flag automatically confirms the installation, so you won't be prompted.

sudo apt install -y git aircrack-ng

After the command completes, you will see output indicating that the packages have been successfully installed.

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
git is already the newest version (1:2.39.2-1.1).
aircrack-ng is already the newest version (1:1.7-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Note: If the packages are already installed, the system will inform you that you are on the newest version, as shown in the example output.

Clone the Fluxion Repository from GitHub

Now that git is installed, you can use it to clone (download) the Fluxion repository. This command will create a new directory named fluxion inside your current ~/project directory and download all the necessary files into it.

Make sure you are in the ~/project directory. Then, run the following command:

git clone https://github.com/FluxionNetwork/fluxion.git

You will see output showing the cloning process:

Cloning into 'fluxion'...
remote: Enumerating objects: 10335, done.
remote: Counting objects: 100% (10335/10335), done.
remote: Compressing objects: 100% (2935/2935), done.
remote: Total 10335 (delta 7219), reused 10183 (delta 7103), pack-reused 0
Receiving objects: 100% (10335/10335), 5.78 MiB | 5.31 MiB/s, done.
Resolving deltas: 100% (7219/7219), done.

After the command finishes, you can verify that the directory was created by using the ls command.

ls

You should see the fluxion directory listed in the output.

In this step, you will navigate into the fluxion directory that you just cloned. All subsequent commands for running and installing Fluxion must be executed from within this directory.

Use the cd (change directory) command to move into the fluxion directory:

cd fluxion

Your terminal prompt should update to show that you are now inside /home/labex/project/fluxion. To see the contents of this directory, you can use the ls -l command:

ls -l

You will see a list of files and directories. Notice the fluxion.sh file, which is the main script you will run in the next step.

total 308
-rwxr-xr-x 1 labex labex 299331 Jan 1 00:00 fluxion.sh
drwxr-xr-x 2 labex labex   4096 Jan 1 00:00 attacks
drwxr-xr-x 2 labex labex   4096 Jan 1 00:00 sites
...

Run the Fluxion Installer Script

Finally, you will run the main Fluxion script. On its first run, this script automatically checks for all required dependencies. If any are missing, it will prompt you to install them.

From within the fluxion directory, execute the script with sudo privileges:

sudo ./fluxion.sh

The script requires sudo because it needs to install software and manage network interfaces. When you run it, it will perform a dependency check. If dependencies are missing, you will see a prompt like this:

[!] Some dependencies are missing, do you want to install them?
[1] Yes
[2] No

To proceed with the installation, type 1 and press Enter. The script will then use apt to install all the necessary tools.

Once all dependencies are installed, the script will clear the screen and display the main Fluxion menu. Reaching this menu signifies that the installation was successful. For the purpose of this lab, you can now exit the script by pressing Ctrl+C.

Summary

Congratulations! You have successfully installed Fluxion and all its dependencies on your Kali Linux system.

In this lab, you have learned how to:

  • Update your system's package lists using sudo apt update.
  • Install prerequisite packages like git and aircrack-ng.
  • Clone a software repository from GitHub using the git clone command.
  • Navigate the file system and run an installation script.
  • Complete the Fluxion dependency installation process.

Your Fluxion instance is now ready to be used for authorized security auditing and research.