honey_pot
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| honey_pot [2025/04/03 07:26] – créée root | honey_pot [2025/11/17 09:00] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 26: | Ligne 26: | ||
| === 3.3. Installation Cowrie === | === 3.3. Installation Cowrie === | ||
| <code bash> | <code bash> | ||
| + | cd / | ||
| git clone https:// | git clone https:// | ||
| - | cd cowrie | + | cd /home/cowrie/cowrie/ |
| python3 -m venv cowrie-env | python3 -m venv cowrie-env | ||
| source cowrie-env/ | source cowrie-env/ | ||
| Ligne 36: | Ligne 37: | ||
| === 3.4. Configuration === | === 3.4. Configuration === | ||
| <code bash> | <code bash> | ||
| - | cp etc/ | + | cp / |
| - | nano etc/ | + | nano / |
| </ | </ | ||
| **Options clés** : | **Options clés** : | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| * Activer '' | * Activer '' | ||
| Ligne 55: | Ligne 56: | ||
| Pour écouter sur le port 22 : | Pour écouter sur le port 22 : | ||
| <code bash> | <code bash> | ||
| - | sudo iptables -t nat -A PREROUTING -p tcp --dport 22 -j REDIRECT --to-port 2222 | ||
| sudo apt install iptables-persistent | sudo apt install iptables-persistent | ||
| sudo netfilter-persistent save | sudo netfilter-persistent save | ||
| + | sudo iptables -t nat -A PREROUTING -p tcp --dport 22 -j REDIRECT --to-port 2222 | ||
| </ | </ | ||
| Ligne 67: | Ligne 68: | ||
| <code bash> | <code bash> | ||
| - | ===== 5. Optionnel : Service Systemd | + | ===== 5. Optionnel : Exécuter Cowrie comme un service |
| - | <file / | + | |
| + | Créez un service systemd pour que Cowrie démarre automatiquement : | ||
| + | <code> | ||
| + | sudo nano / | ||
| + | </ | ||
| + | Ajoutez cette configuration : | ||
| + | <file> | ||
| [Unit] | [Unit] | ||
| Description=Cowrie SSH Honeypot | Description=Cowrie SSH Honeypot | ||
| After=network.target | After=network.target | ||
| - | |||
| [Service] | [Service] | ||
| User=cowrie | User=cowrie | ||
| + | TP14 Honeypot et SNORT page 5/6 | ||
| WorkingDirectory=/ | WorkingDirectory=/ | ||
| ExecStart=/ | ExecStart=/ | ||
| Restart=always | Restart=always | ||
| - | |||
| [Install] | [Install] | ||
| WantedBy=multi-user.target | WantedBy=multi-user.target | ||
| </ | </ | ||
| + | Puis activez et démarrez le service : | ||
| Activation : | Activation : | ||
| <code bash> | <code bash> | ||
honey_pot.1743665175.txt.gz · Dernière modification : (modification externe)
