SAE4.01
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Eloan ANDRÉ 97c2dd0dbc
decoder propre
2 years ago
Documentation Ajouter 'Documentation/Compte rendus/CR-07-03-2023.md' 2 years ago
src decoder propre 2 years ago
.gitignore ADD gitignore 2 years ago
README.md Mise à jour de 'README.md' 2 years ago

README.md

Détection d'intrusion

Utilisation

Install

// Install d'outil
python -m pip install pipenv

// Install module
pip install typer
pip install scapy
pip install pymodbus

// Mise à jour
pipenv update

// Lancement du shell pipenv
pipenv shell

Côté BDD

Il faudra que vous connectiez à votre BDD PostgreSQL. Exécuter le script Table.sql qui se trouve dans src avec la commande ci-dessous.

\i /YOUR_PATH/Detection_d_intrusion/src/Table.sql

Si jamais vous vous retrouvez à devoir partager votre BDD il faudra exécuter la commande ci-dessous.

GRANT ALL ON <nom_table> TO <nom_utilisateur_à_ajouter>;
GRANT CONNECT ON DATABASE dblodufour1 TO <nom_utilisateur_à_ajouter>;

Pour se connecter à la BDD d'une autre personne pensée bien à mettre le nom de sa database. Ici, c'est dblodufour1

psql -h londres -d <nom_DataBase> -U <votre_nom_utilisateur> -W

ATTENTION londres est un serveur héberger dans l'infrastructure de notre établissement universitaire.

Lancement

il faut lancé 3 terminal pipenv pour :

./start_server.sh
./start_client.sh
sudo python3 ./decoder.py

Notre configuration

  • Python (3.9)
  • PostgreSQL
  • pip (22.0.2)
  • pymodbus (3.1.3)

Développeurs