Skip to content
Snippets Groups Projects
elise's avatar
elise authored
f6a5c270
Name Last commit Last update
paf
readme.md
requirements.txt

PAF

GendarReveal, also known as PAF (Pre-Analyse Forensique in french), is a tool to quickly analyze devices such as machines or disks.

Launch

Make sure your you have Qt requirements installed (it may required root privilege)

apt list --installed | grep qt5

If you have a big output it should be ok, otherwise

apt install qt5-default
git clone https://gitlab.esiea.fr/paf/gendareveal.git
cd gendareveal
pip3 install -r requirements.txt

or

python3 -m pip install -r requirements.txt

During execution, you may be asked to restart the application with administrator privileges, that's why you should also install the python modules for the administrator, at your convenience

sudo pip3 install -r requirements.txt
cd paf
python3 main.py

Troubleshoot

Ca marche pas? pourtant, chez moi ca marche

No such file or directory: 'config/assets/languages/en.json'

python3 paf/main.py 
#Traceback (most recent call last):
#  File "[REDACTED]/paf/main.py", line 5, in <module>
#    loadConfig()
#  File "[REDACTED]/paf/config/config.py", line 44, in loadConfig
#    with open(filePath,"w") as f:
#FileNotFoundError: [Errno 2] No such file or directory: 'config/assets/languages/en.json'

you forgot the last step, you should be located here: ./paf

ls
#add_plugins.sh  **config**  core  informations.txt  plugins
#main.py         **pafUI**   setup.py 

ImportError : libGL.so

cannot open shared object file: No such file or directory

python3 main.py
#Traceback (most recent call last):
#  File "[REDACTED]/paf/main.py", line 1, in <module>
#    from pafUI.ui import launch
#  File "[REDACTED]/paf/pafUI/ui.py", line 2, in <module>
#    from pafUI.uiClass import uiClass
#  File "[REDACTED]/paf/pafUI/uiClass.py", line 7, in <module>
#    from PyQt5.QtWidgets import (
# ImportError: libGL.so.1: cannot open shared object file: No such file or directory
apt install libgl1-mesa-glx

Qt Platform plugin

no Qt Platform plugin could be intialized the application start but is then aborted

#qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
#This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

#Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

#Aborted

Ask to install this package: qt5-assistant, and apt will suggest a lot of new packages to install, which you will need

sudo apt-get install qt5-assistant

Update version Python

La version Python doit être supérieure ou équivalente à python 3.10. Pour vérifier votre version python tapez :

python - - version

Pour installer python3.9 et le mettre par défaut lorsque vous tapez python3 pour une exécution :

sudo apt update 
sudo apt install python3.9
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.[old-version] 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2

Vérifier les status des versions :

sudo update-alternatives --config python3

Vous pouvez supprimer l’ancienne version

sudo rm /usr/bin/python3

Puis remplacer par la version récente

sudo ln -s python3.9 /usr/bin/python3

Vous pouvez ensuite vérifier que python3.9 est bien utilisé par défaut

python3 --version

Terminal qui ne s’ouvre plus suite à l’upgrade de la version python

Si votre terminal refuse de s’ouvrir après avoir redémarré la machine, Appuyez simultanément sur les touches

ctrl + alt + F3 

Rentrez votre username et votre password. Puis tapez

Sudo nano /usr/bin/gnome-terminal 

Et modifiez la première ligne.

La première ligne doit avoir la version courante de python que vous utilisez. Ici nous utilisons la version python3.9.5, donc on remplace python3 par python3.9 sur la première ligne du fichier. De même si vous avez la version python3.8.5, vous devez écrire python3.8. Surtout sauvegardez bien le fichier après avoir tapé ctrl +X.

Terminal qui ne s’ouvre plus suite à l’installation d’un nouveau paquet

Vous devez supprimer ce paquet

apt uninstall « nom du paquet »

Puis réalisez un snapshot de la VM, afin de sauvegarder l’état ou le terminal s’ouvre correctement avant de reprendre votre installation.

Failed to build PyQt5-sip

Exécutez :

python3 -m pip install - - upgrade pip 
Puis python3 -m pip install pyqt5

Problème pour l'installation d'aspose

Si vous rencontrez ce message d'erreur, tapez :

export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1