├── How to install fluxion ├── README.md ├── incase ├── get-pip.py ├── install pyrit without pip or apt-get install pyrit └── tests │ ├── PYRIT-TODO.txt │ ├── pyrit-readme.txt │ └── test.sh ├── install.sh └── uninstall.sh /How to install fluxion: -------------------------------------------------------------------------------- 1 | git clone https://github.com/wi-fi-analyzer/fluxion 2 | next repository 3 | git clone https://github.com/FluxionNetwork/fluxion 4 | apt install dhcpd lighttpd php-cgi 5 | apt install isc-dhcp-server 6 | apt-get install mdk3 7 | apt-get install mdk4 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # Please let me know if the script works 3 | send me an email at mrhashman6@gmail.com 4 | # Whats new 5 | * added install.sh script to make it easier for people 6 | * much faster installation 7 | * Install.sh now warns you if you don't run it as root 8 | * Uninstall.sh used to remove some dependences used for installation of pyrit. 9 | * Automates more things for the user 10 | * video coming soon proof of concept 11 | 12 | 19 | # cloning the github repository and installation 20 | ```sh 21 | git clone https://github.com/hacker3983/pyrit-installer && cd pyrit-installer && sudo bash install.sh 22 | ``` 23 | 24 | now after boom pyrit will be installed then we can install fluxion 25 | # watch some of my youtube videos, like and subscribe to my channel and turn on the post notification 26 | [https://www.youtube.com/watch?v=tiVC4VlK-ls](https://www.youtube.com/watch?v=tiVC4VlK-ls) 27 | -------------------------------------------------------------------------------- /incase/install pyrit without pip or apt-get install pyrit: -------------------------------------------------------------------------------- 1 | cd /etc/apt 2 | ls 3 | apt.conf.d listchanges.conf sources.list sources.list.d 4 | auth.conf.d preferences.d sources.list~ trusted.gpg.d 5 | nano sources.list 6 | GNU nano 4.9.2 sources.list 7 | # 8 | 9 | # deb cdrom:[Kali GNU/Linux 2020.1rc4 _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200124-09> 10 | 11 | #deb cdrom:[Kali GNU/Linux 2020.1rc4 _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200124-09:> 12 | 13 | deb http://http.kali.org/kali kali-rolling main non-free contrib 14 | # deb-src http://http.kali.org/kali kali-rolling main non-free contrib 15 | 16 | # This system was installed using small removable media 17 | # (e.g. netinst, live or single CD). The matching "deb cdrom" 18 | # entries were disabled at the end of the installation process. 19 | # For information about how to configure apt package sources, 20 | # see the sources.list(5) manual. 21 | deb http://ftp.debian.org/debian/ stretch main contrib non-free 22 | copy and paste deb http://ftp.debian.org/debian/ stretch main contrib non-free in the sources.list file and save it and run the rest of the commands 23 | 1. deb http://ftp.debian.org/debian/ stretch main contrib non-free 24 | 2. sudo apt-get update 25 | 3. sudo apt-get upgrade 26 | 4. sudo apt-get install python2.7-dev libssl-dev zlib1g-dev libpcap-dev 27 | 5. apt-get install libpcap-dev 28 | 6. apt-get remove --purge pyrit 29 | 7. rm -r /usr/local/lib/python2.7/dist-packages/cpyrit/ 30 | 8. sudo pip install psycopg2 31 | 9. sudo pip install scapy 32 | 10. sudo apt-get install python-scapy 33 | 11. git clone https://github.com/JPaulMora/Pyrit.git 34 | 12. cd Pyrit 35 | 13. python setup.py clean 36 | 14. python setup.py build 37 | 15. sudo python setup.py install 38 | 39 | if you don't have pip2 or python2 do this 40 | cd /etc/apt 41 | ls 42 | apt.conf.d listchanges.conf sources.list sources.list.d 43 | auth.conf.d preferences.d sources.list~ trusted.gpg.d 44 | nano sources.list 45 | GNU nano 4.9.2 sources.list 46 | # 47 | 48 | # deb cdrom:[Kali GNU/Linux 2020.1rc4 _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200124-09> 49 | 50 | #deb cdrom:[Kali GNU/Linux 2020.1rc4 _Kali-last-snapshot_ - Official amd64 DVD Binary-1 with firmware 20200124-09:> 51 | 52 | deb http://http.kali.org/kali kali-rolling main non-free contrib 53 | # deb-src http://http.kali.org/kali kali-rolling main non-free contrib 54 | 55 | # This system was installed using small removable media 56 | # (e.g. netinst, live or single CD). The matching "deb cdrom" 57 | # entries were disabled at the end of the installation process. 58 | # For information about how to configure apt package sources, 59 | # see the sources.list(5) manual. 60 | deb http://ftp.debian.org/debian/ stretch main contrib non-free 61 | copy and paste deb http://ftp.debian.org/debian/ stretch main contrib non-free in the sources.list file and save it and run the rest of the commands 62 | 1. deb http://ftp.debian.org/debian/ stretch main contrib non-free 63 | 2. sudo apt-get update 64 | 3. sudo apt-get upgrade 65 | 4. sudo apt-get install python2.7-dev libssl-dev zlib1g-dev libpcap-dev 66 | 5. apt-get install libpcap-dev 67 | 6. apt-get remove --purge pyrit 68 | 7. rm -r /usr/local/lib/python2.7/dist-packages/cpyrit/ 69 | 8. sudo apt-get install python-scapy 70 | 9. git clone https://github.com/JPaulMora/Pyrit.git 71 | 10. cd Pyrit 72 | 11. python setup.py clean 73 | 12. python setup.py build 74 | 13. sudo python setup.py install 75 | Hi 76 | -------------------------------------------------------------------------------- /incase/tests/PYRIT-TODO.txt: -------------------------------------------------------------------------------- 1 | XTERM - /usr/bin/xterm 2 | NMAP - /usr/bin/nmap 3 | AIRCRACK-NG - /usr/bin/aircrack-ng 4 | AIREPLAY-NG - /usr/sbin/aireplay-ng 5 | AIRMON-NG - /usr/sbin/airmon-ng 6 | AIRODUMP-NG - /usr/sbin/airodump-ng 7 | AWK - /usr/bin/awk 8 | CURL - /usr/bin/curl 9 | IWCONFIG - /usr/sbin/iwconfig 10 | MACCHANGER - /usr/bin/macchanger 11 | OPENSSL - /usr/bin/openssl 12 | UNZIP - /usr/bin/unzip 13 | RFKILL - /usr/sbin/rfkill 14 | STRINGS - /usr/bin/strings 15 | FUSER - /usr/bin/fuser 16 | PHP-CGI - /usr/bin/php-cgi 17 | [~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~] 18 | [ ] 19 | [ FLUXION 2 < Fluxion Is The Future > ] 20 | [ ] 21 | [~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~] 22 | 23 | aircrack-ng.....OK! 24 | aireplay-ng.....OK! 25 | airmon-ng.......OK! 26 | airodump-ng.....OK! 27 | awk.............OK! 28 | curl............OK! 29 | dhcpd...........Not installed (isc-dhcp-server) 30 | hostapd.........Not installed 31 | iwconfig........OK! 32 | lighttpd........Not installed 33 | macchanger......OK! 34 | mdk3............Not installed 35 | nmap............OK! 36 | php-cgi.........Not installed 37 | pyrit...........Not installed 38 | python..........OK! 39 | unzip...........OK! 40 | xterm...........Not installed 41 | openssl.........OK! 42 | rfkill..........OK! 43 | strings.........OK! 44 | fuser...........OK! 45 | # Fix Installing python2.7-dev, libssl-dev, zlib1g-dev, and libpcap-dev 46 | sudo apt purge libpython2* 47 | sudo apt install python 48 | # Fix pip install psycopg2 49 | sudo apt install libpq-dev 50 | -------------------------------------------------------------------------------- /incase/tests/pyrit-readme.txt: -------------------------------------------------------------------------------- 1 | Took me [1h 29min 26s] to complete the update and upgrade 2 | -------------------------------------------------------------------------------- /incase/tests/test.sh: -------------------------------------------------------------------------------- 1 | source="deb http://ftp.debian.org/debian/ stretch main contrib non-free" 2 | path="/etc/apt/sources.list" 3 | found=0 4 | while read line; do 5 | if [ "$line" == "$source" ] 6 | then 7 | found=1 8 | echo "Source found in sources.list" 9 | break 10 | fi 11 | done < $path 12 | 13 | if [ $found != 1 ] 14 | then 15 | echo "Source not found in sources.list" 16 | echo "adding $source in sources list" 17 | echo $source >> $path 18 | fi 19 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | packages_list=(aircrack-ng aireplay-ng airmon-ng airodump-ng awk curl hostapd iwconfig lighttpd 2 | macchanger mdk3 unzip xterm openssl rfkill strings fuser) 3 | function pkgscheck_flux() { 4 | for pkg in "${packages_list[@]}" 5 | do 6 | echo -e "\033[1m\033[34m[\033[31m+\033[34m] Checking for $pkg\033[0m" 7 | if ! hash $pkg 2>/dev/null; then 8 | echo -e "\033[1m\033[31mNot Found\033[0m" 9 | apt-get install $pkg -y 10 | else 11 | echo -e "\033[1m\033[32mFound\033[0m" 12 | fi 13 | done 14 | echo -e "\033[1m\033[34m[\033[31m+\033[34m] Checking for dhcpd\033[0m" 15 | if ! hash dhcpd 2>/dev/null; then 16 | echo -e "\033[1m\033[31mNot Found\033[0m" 17 | echo -e "\033[1mInstalling \033[31mdhcpd\033[0m" 18 | apt-get install isc-dhcp-server -y 19 | else 20 | echo -e "\033[1m\033[32mFound\033[0m" 21 | fi 22 | } 23 | # Check for source in sources.list if not adds it to the sources.list 24 | username=$(whoami) 25 | if [ $username != "root" ]; then 26 | echo -e "\033[1m\033[31mPlease run this script as the user root try doing sudo bash install.sh" 27 | exit 28 | fi 29 | echo -e "\033[1m\033[34m[\033[31m+\033[34m] Checking for source in sources.list" 30 | source="deb http://ftp.debian.org/debian/ stretch main contrib non-free" 31 | path="/etc/apt/sources.list" 32 | found=0 33 | while read line; do 34 | if [ "$line" == "$source" ]; then 35 | found=1; 36 | echo -e "\033[1m\033[32mFound\033[0m" 37 | break 38 | fi 39 | done < $path 40 | 41 | if [ $found != 1 ]; then 42 | echo -e "\033[1m\033[31mNot Found \033[0m";echo "Adding $source to $path";echo $source >> $path; 43 | fi 44 | 45 | git="/usr/bin/git" 46 | python="/usr/bin/python" 47 | piperror="/usr/bin/python2: No module named pip" 48 | pip=$(python2 -m pip 2>&1) 49 | nmap="/usr/bin/nmap" 50 | phpcgi="/usr/bin/php-cgi" 51 | echo -e "\033[1m\033[34m[\033[31m+\033[34m] Checking for git" 52 | if [ -x $git ]; then 53 | echo -e "\033[1m\033[32mFound\033[0m" 54 | else 55 | echo -e "\033[1m\033[31mNot Found\033[0m" 56 | echo -e "\033[1mInstalling \033[31mgit\033[0m" 57 | apt-get install git -y 58 | fi 59 | echo -e "\033[1m\033[34m[\033[31m+\033[34m] Checking for python2" 60 | if [ -f $python ]; then 61 | echo -e "\033[1m\033[32mFound\033[0m" 62 | else 63 | echo -e "\033[1m\033[31mNot Found\033[0m" 64 | echo -e "\033[1mInstalling \033[31mpython2\033[0m" 65 | apt-get install python2 -y 66 | fi 67 | echo -e "\033[1m\033[34m[\033[31m+\033[34m] Checking for python2-pip" 68 | if [ "$pip" != "$piperror" ]; then 69 | echo -e "\033[1m\033[32mFound\033[0m" 70 | else 71 | echo -e "\033[1m\033[31mNot Found\033[0m" 72 | echo -e "\033[1mInstalling \033[31mpython2-pip\033[0m" 73 | #curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py 74 | python2 incase/get-pip.py 75 | fi 76 | echo -e "\033[1m\033[34m[\033[31m+\033[34m] Checking for nmap" 77 | if [ -f $nmap ]; then 78 | echo -e "\033[1m\033[32mFound\033[0m" 79 | else 80 | echo -e "\033[1m\033[31mNot Found\033[0m" 81 | echo -e "\033[1mInstalling \033[31mnmap\033[0m" 82 | apt-get install nmap -y 83 | fi 84 | echo -e "\033[1m\033[34m[\033[31m+\033[34m] Checking for php-cgi" 85 | if [ -f $phpcgi ]; then 86 | echo -e "\033[1m\033[32mFound\033[0m" 87 | else 88 | echo -e "\033[1m\033[31mNot Found\033[0m" 89 | echo -e "\033[1mInstalling \033[31mphp-cgi\033[0m" 90 | apt-get install php-cgi -y 91 | fi 92 | # Install Fluxion Dependencies 93 | pkgscheck_flux 94 | echo -e "\033[1m\033[34mUpdating \033[33mand \033[34mUpgrading\033[0m" 95 | # apt-get update -y && apt-get upgrade -y 96 | apt-get purge libpython2* -y && apt-get install python -y 97 | echo -e "\033[1mReinstalling \033[31mpython2\033[0m" 98 | apt-get install python2 -y 99 | echo -e "\033[1mInstalling \033[31mpython2.7-dev, \033[31mlibssl-dev\033[0m, \033[31mzlib1g-dev\033[0m, and \033[31mlibpcap-dev\033[0m" 100 | apt-get install python2.7-dev libssl-dev zlib1g-dev libpcap-dev -y 101 | echo -e "\033[1mRemoving \033[31mpyrit\033[0m" 102 | apt-get remove --purge pyrit && rm -r /usr/local/lib/python2.7/dist-packages/cpyrit/ 103 | echo -e "\033[1mInstalling \033[31mlibpq-dev\033[0m" 104 | apt-get install libpq-dev -y 105 | echo -e "\033[1mInstalling \033[31msetuptools, \033[31mpsycopg2 \033[0mand \033[31mscapy\033[0m" 106 | pip install setuptools psycopg2 scapy && apt-get install python-scapy -y 107 | echo -e "\033[1m\033[32mDownloading \033[31mPyrit\033[0m" 108 | printf '\033]2;Downloading Pyrit\a' 109 | 110 | # Install Pyrit 111 | if [ ! -d Pyrit ]; then 112 | git clone https://github.com/JPaulMora/Pyrit 113 | fi 114 | sed -i "s/COMPILE_AESNI/COMPILE_AESNIX/" Pyrit/cpyrit/_cpyrit_cpu.c 115 | cd Pyrit && python2 setup.py clean && python2 setup.py build && python2 setup.py install 116 | 117 | echo -e "\033[1m\033[31mInstallation finished\033[0m" 118 | printf '\033]2; Installation finished\a' 119 | -------------------------------------------------------------------------------- /uninstall.sh: -------------------------------------------------------------------------------- 1 | username=$(whoami) 2 | if [ $username != "root" ];then 3 | echo -e "\033[1m\033[31mPlease run this script as the user root try doing sudo bash install.sh" 4 | exit 5 | fi 6 | echo -e "\033[1m\033[34mRemoving \033[31mmdk3\033[0m" 7 | apt-get remove mdk3 --purge --autoremove -y 8 | echo -e "\033[1m\033[34mRemoving \033[31mdhcpd\033[0m" 9 | apt-get remove isc-dhcp-server --purge --autoremove -y 10 | echo -e "\033[1m\033[34mRemoving \033[31mphp-cgi\033[0m" 11 | apt-get remove php-cgi --purge --autoremove -y 12 | echo -e "\033[1m\033[34mRemoving \033[31mlighttpd\033[0m" 13 | apt-get remove lighttpd --purge --autoremove -y 14 | echo -e "\033[1m\033[34mRemoving \033[31mhostapd\033[0m" 15 | apt-get remove hostapd --purge --autoremove -y 16 | echo -e "\033[1m\033[34mSucessfully uninstalled dependencies for pyrit" 17 | --------------------------------------------------------------------------------