How to install Fluxion in Linux Mint or Ubuntu

Fluxion is a program to audit wireless Wi-Fi networks. It uses social engineering instead of brute-force. Fluxion is a successor of well-known linset.

This guide will show installation process of Fluxion on Linux Mint or Ubuntu.

The application has required dependencies. Some of them can be installed from system repositories. Dependencies, which are absent in repositories, we should install from sources. After you execute every command from this guide, you will get workable Fluxion with all necessary dependencies.

We are updating the package cache:

sudo apt update

Install git package:

sudo apt install git

We need aircrack-ng suit and mdk3. aircrack-ng is present in Linux Mint and Ubuntu repositories. But the version of aircrack-ng in repositories is old. I recommend you to install aircrack-ng from sources.

Create directory for our purpose:

mkdir bin
cd bin

Attention, this step is optional, it is needed to install the latest version of aircrack-ng. If you are satisfied with the version from the repository, skip this step.

Remove very old aircrack-ng from default repository, install aircrack-ng dependencies, download aircrack-ng source, compile and install aircrack-ng

sudo apt remove aircrack-ng
sudo apt install autoconf automake libpcre3-dev libnl-3-dev libsqlite3-dev libssl-dev ethtool build-essential g++ libnl-genl-3-dev libgcrypt20-dev libtool python3-distutils
sudo apt install -y pkg-config
git clone https://github.com/aircrack-ng/aircrack-ng.git
cd aircrack-ng/
autoreconf -i
./configure --with-experimental --with-ext-scripts
make
sudo make install
sudo airodump-ng-oui-update
# up
cd ..

========= END OF OPTIONAL STEP =========

Download mdk3 source, compile and install mdk3

sudo apt-get install git build-essential
git clone https://github.com/charlesxsh/mdk3-master.git
cd mdk3-master
make
sudo make install
# up
cd ..

Download coWPAtty source, compile and install coWPAtty

sudo apt install libpcap-dev
wget http://www.willhackforsushi.com/code/cowpatty/4.6/cowpatty-4.6.tgz
tar xvzf cowpatty-*.tgz
cd cowpatty*
make
sudo make install
# up
cd ..

Cleaning:

rm -rf mdk3-master/ aircrack-ng/ cowpatty-*

Fluxion installation:

git clone https://github.com/FluxionNetwork/fluxion
cd fluxion/
sudo ./fluxion.sh

At the first start, the program will install all necessary dependencies.

To be able perform Wi-Fi audit successfully, you need to have special Wi-Fi adapter, fox example Alfa AWUS052NH or Panda Wireless PAU09 N600.

Recommended for you:

16 Comments to How to install Fluxion in Linux Mint or Ubuntu

  1. neo says:

    how to reverse all of this?

    • Alex Alex says:
      rm -rf ~/bin
      sudo apt-get remove isc-dhcp-server lighttpd macchanger php php-cgi hostapd nmap hostapd pyrit git aircrack-ng build-essential
      sudo apt autoremove
      
  2. Alex Alex says:

    The guide was updated for Fluxion 4.

  3. AThariq says:
    sudo ./fluxion.sh 
    Aborted, xterm test session failed. 

    How To Fix It?

    • Alex Alex says:

      What is your OS? Do you use headless system (without graphical environment)? Or maybe you connect to the system via SSH?
      Execute in the console:

      xdpyinfo

      What does it output?

  4. al says:

    Last night i've been success for this tutorial and the fluxion 4 installed, but when i open that in diferrent time a fluxion cameback to 2 version .. tell me why ? it is cause i update the software or no ?

    I'm sorry for bad language

    • Alex Alex says:

      Hello! I suppose you installed Fluxion twice in different directories. So the second time you ran an old fluxion instance. To run the fresh fluxion instance try the commands:

      cd ~/bin/fluxion/
      sudo ./fluxion.sh
      
      • al says:

        yes , i forget there is different directories . first root and no root..

        on my fluxion show 'cowpatty' , it can't be installed .. i try update and download from sourceforge.. have you a link from github, other command or references about that ?

        • Alex Alex says:

          Thank you for your report about the new dependency. I will make tests and fix this guide later, when I have free time.

        • Alex Alex says:

          Hello! I have updated the guide. To install coWPAtty:

          sudo apt install libpcap-dev
          wget http://www.willhackforsushi.com/code/cowpatty/4.6/cowpatty-4.6.tgz
          tar xvzf cowpatty-*.tgz
          cd cowpatty*
          make
          sudo make install
          
  5. R says:

    Woow Its Work, Thanks

  6. aldinson says:

    make has an error.

    Traceback (most recent call last):
      File "setup.py", line 4, in <module>
        from distutils.core import setup
    ModuleNotFoundError: No module named 'distutils.core'
    Makefile:827: recipe for target 'all-local' failed
    make[3]: *** [all-local] Error 1
    make[3]: Leaving directory '/home/aldinson/bin/aircrack-ng/scripts/airdrop-ng'
    Makefile:559: recipe for target 'all-recursive' failed
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory '/home/aldinson/bin/aircrack-ng/scripts/airdrop-ng'
    Makefile:626: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/aldinson/bin/aircrack-ng/scripts'
    Makefile:585: recipe for target 'all-recursive' failed
    make: *** [all-recursive] Error 1
    
    • Alex Alex says:

      Hello! Thank you for the report! yes It is necessary to install the package:

      sudo apt install python3-distutils

      I have already fixed the guide.

  7. lokesh says:

    i followed all your steps.

    but is still says cowpatty is missing

  8. fethi says:

    hello how are you today

    i have problem with fluxiion Aborted, X (graphical) session unavailable

Leave a Reply

Your email address will not be published.