How to install TAPIRE for Assisting Protocol Inference and Reverse Engineering
First, you need to install netgoblin as tapire dependence:
cd /tmp
git clone https://github.com/conix-security/netgoblin
cd netgoblin
git checkout develop
cd netzob
apt install python3-pip
pip3 install -r requirements.txt
python3 setup.py install
cd /tmp
git clone https://github.com/conix-security/TAPIRE
git checkout develop
pip3 install -r requirements.txt
./tapire.py
Warning: FastBinaryTree not available, using Python version BinaryTree.
Warning: FastAVLTree not available, using Python version AVLTree.
Warning: FastRBTree not available, using Python version RBTree.
Traceback (most recent call last):
File "./tapire.py", line 8, in <module>
from menus.mainmenu import main_menu
File "/home/nboettcher/Downloads/TAPIRE/menus/mainmenu.py", line 5, in <module>
from netzob.all import *
File "/usr/local/lib/python3.6/dist-packages/Netzob-1.0.2-py3.6-linux-x86_64.egg/netzob/all.py", line 36, in <module>
from netzob.Import.all import *
ModuleNotFoundError: No module named 'netzob.Import'
Normally, this error is for different python versions (when you try import python2 modules from python3). In this case, is for a deprecated module.
To solve this error comment red text in the green file.
To solve warnings just execute the following:
python3 -m pip install bintrees --upgrade
Now, if you execute tapir again, probably you will get:
./tapire.py
from scapy.all import *
PIP package scapy-python3 used to provide scapy3k, which was a fork from scapy implementing python3 compatibility since 2016. This package was included in some of the Linux distros under name of python3-scapy. Starting from scapy version 2.4 (released in March, 2018) mainstream scapy supports python3. To reduce any confusion scapy3k was renamed to kamene.
You should use either pip package kamene for scapy3k (see http://github.com/phaethon/kamene for differences in use) or mainstream scapy (pip package scapy, http://github.com/secdev/scapy).
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/scapy/all.py", line 5, in <module>
raise Exception(msg)
Exception:
PIP package scapy-python3 used to provide scapy3k, which was a fork from scapy implementing python3 compatibility since 2016. This package was included in some of the Linux distros under name of python3-scapy. Starting from scapy version 2.4 (released in March, 2018) mainstream scapy supports python3. To reduce any confusion scapy3k was renamed to kamene.
You should use either pip package kamene for scapy3k (see http://github.com/phaethon/kamene for differences in use) or mainstream scapy (pip package scapy, http://github.com/secdev/scapy).
To solve it, reinstall scapy
pip3 uninstall scapy
pip3 install scapy
If you try execute tapire again probably you will get this warning:
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
This means that you have an old verion. To upgrade just execute the following:
pip3 install --upgrade numpy
Enjoy it!
cd /tmp
git clone https://github.com/conix-security/netgoblin
cd netgoblin
git checkout develop
cd netzob
apt install python3-pip
pip3 install -r requirements.txt
python3 setup.py install
cd /tmp
git clone https://github.com/conix-security/TAPIRE
git checkout develop
pip3 install -r requirements.txt
./tapire.py
Warning: FastBinaryTree not available, using Python version BinaryTree.
Warning: FastAVLTree not available, using Python version AVLTree.
Warning: FastRBTree not available, using Python version RBTree.
Traceback (most recent call last):
File "./tapire.py", line 8, in <module>
from menus.mainmenu import main_menu
File "/home/nboettcher/Downloads/TAPIRE/menus/mainmenu.py", line 5, in <module>
from netzob.all import *
File "/usr/local/lib/python3.6/dist-packages/Netzob-1.0.2-py3.6-linux-x86_64.egg/netzob/all.py", line 36, in <module>
from netzob.Import.all import *
ModuleNotFoundError: No module named 'netzob.Import'
Normally, this error is for different python versions (when you try import python2 modules from python3). In this case, is for a deprecated module.
To solve this error comment red text in the green file.
To solve warnings just execute the following:
python3 -m pip install bintrees --upgrade
Now, if you execute tapir again, probably you will get:
./tapire.py
from scapy.all import *
PIP package scapy-python3 used to provide scapy3k, which was a fork from scapy implementing python3 compatibility since 2016. This package was included in some of the Linux distros under name of python3-scapy. Starting from scapy version 2.4 (released in March, 2018) mainstream scapy supports python3. To reduce any confusion scapy3k was renamed to kamene.
You should use either pip package kamene for scapy3k (see http://github.com/phaethon/kamene for differences in use) or mainstream scapy (pip package scapy, http://github.com/secdev/scapy).
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/dist-packages/scapy/all.py", line 5, in <module>
raise Exception(msg)
Exception:
PIP package scapy-python3 used to provide scapy3k, which was a fork from scapy implementing python3 compatibility since 2016. This package was included in some of the Linux distros under name of python3-scapy. Starting from scapy version 2.4 (released in March, 2018) mainstream scapy supports python3. To reduce any confusion scapy3k was renamed to kamene.
You should use either pip package kamene for scapy3k (see http://github.com/phaethon/kamene for differences in use) or mainstream scapy (pip package scapy, http://github.com/secdev/scapy).
To solve it, reinstall scapy
pip3 uninstall scapy
pip3 install scapy
If you try execute tapire again probably you will get this warning:
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xb
This means that you have an old verion. To upgrade just execute the following:
pip3 install --upgrade numpy
Enjoy it!
Comments
Post a Comment