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
rm 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:

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

  1. neo says:

    how to reverse all of this?

    • 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 says:

    The guide was updated for Fluxion 4.

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

    How To Fix It?

    • 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?

      • Toti Pham says:

        Mine

        xdpyinfo xdpyinfo: unable to open display "0.0".

      • Anonymous says:

        mine 

        name of display:    :0
        version number:    11.0
        vendor string:    The X.Org Foundation
        vendor release number:    11906000
        X.Org version: 1.19.6
        maximum request size:  16777212 bytes
        motion buffer size:  256
        bitmap unit, bit order, padding:    32, LSBFirst, 32
        image byte order:    LSBFirst

        …………………

        ……..

        ….

  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 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 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 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 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

  9. faisal rathore says:
    /bin/cowpatty-4.6# make
    cc -pipe -Wall -DOPENSSL  -O2 -g3 -ggdb   -c -o md5.o md5.c
    md5.c:20:10: fatal error: openssl/md5.h: No such file or directory
     #include <openssl/md5.h>
              ^~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [: md5.o] Error 1
    
  10. Hasan says:

    How can i fix the "route" missing in fluxion..The program cant fix or download the dependence as there is a bug saying "No internet connect" where  i'm connected to  my home wifi…well i manually fixed all except "route" dependence …hope to get a wise suggestion…thanks

  11. Mike004 says:

    Hello everybody,
    I am a Beginner.
    I was able to install anything on fluxion except "php-cgi" I try to install it via "sudo apt install php7.2-cgi" but there is an error message
    Errors occurred at
    "Php7.2-common
     macchanger
     php7.2-readline
     php7.2-cli
     php7.2-json
     php7.2-cgi
     ISC DHCP server
     php7.2-opcache "

    What can I do? How can I install "php-cgi" on fluxion? I would be very happy about a help. Many thanks in advance.

     

  12. shuje71 says:

    i'cant install 7zr dépendence

  13. Anonymous says:

    src/easside-ng/easside-ng.c:40:10: fatal error: zlib.h: No such file or directory
     #include <zlib.h>
              ^~~~~~~~
    compilation terminated.
     

  14. zeas says:

    zlib.h not found during make in ubuntu 18.04

    • Alex says:

      The file is included in linux-headers package.

      locate zlib.h
      /usr/src/linux-headers-5.0.0-32/include/linux/zlib.h
      /usr/src/linux-headers-5.0.0-32-generic/include/config/jffs2/zlib.h
      /usr/src/linux-headers-5.0.0-32-generic/include/config/squashfs/zlib.h
      /usr/src/linux-headers-5.0.0-32-generic/include/config/ubifs/fs/zlib.h

      In the last Ubuntu versions this package is pre-installed. So, just install linux-headers for your current kernel:

      sudo apt install linux-headers-`uname -r`
      
  15. Sarang P N says:

    When cd cowpatty* is entered in terminal, '-bash: cd: too many arguments' is shown. How to fix this to go to the next step ?

  16. subham says:

    hey

    coWPAtty  is not working. please help me .

    Error code is

    subham@subham-Inspiron-3521:~/bin$ cd cowpatty*
    bash: cd: too many arguments

     

  17. will says:

    how to install pyrit is the single module that i haven t install?

     

  18. sadia says:

    shall it be same procedure for parrot OS 4.9

Leave a Reply to Mike004 Cancel reply

Your email address will not be published. Required fields are marked *