Hi,
When installing firecrack on Kali Linux 2.6, iv'e encountered many problems, however I will explain you how to solve them.
First of all I couldn't open firecrack.py with python 3 which wasn't able to read the file's encoding. I also have python 2 installed on my machine so I tried to open the file with this version, but I was getting an error message "no module named mechanize".
The problem is that when executing requirements.txt, everything was okay because Python 3 has the mechanize module, but since we want to open the file with Python 2, we gotta install it also on this version. First of all, if you are using pip3 version as I was, you need to download pip2.
1) Check if your default python version is 2 :
$ python --version
Mine was python 2 even if I have version 3 installed, because it has a better compatibility with my system. If you get the version 3, you need to change the default version (google this part on your own).
Hi, When installing firecrack on Kali Linux 2.6, iv'e encountered many problems, however I will explain you how to solve them.
First of all I couldn't open firecrack.py with python 3 which wasn't able to read the file's encoding. I also have python 2 installed on my machine so I tried to open the file with this version, but I was getting an error message "no module named mechanize".
The problem is that when executing requirements.txt, everything was okay because Python 3 has the mechanize module, but since we want to open the file with Python 2, we gotta install it also on this version. First of all, if you are using pip3 version as I was, you need to download pip2.
1) Check if your default python version is 2 :
$
python --version
Mine was python 2 even if I have version 3 installed, because it has a better compatibility with my system. If you get the version 3, you need to change the default version (google this part on your own).
2) Install pip 2 :
$
sudo apt update
$sudo apt upgrade
(optional but recommended) $sudo apt install python-pip
As I repeat, if you don't have python 2 as the default version, you will get the same issue.
3) Install the mechanize module for Python 2 :
$
sudo pip2 install mechanize
4) Install the requests module for Python 2 (also missing) :
$
sudo pip2 install requests
5) You should be able to open Firecrack. Make sure that you cloned the repository properly.
$
cd Firecrack
(or the correct path/to/the/folder) $sudo chmod +x firecrack.py
$python2 firecrack.py
Done! I hope this helped you :)