-
Retour de flamme SSH
Bonjour, je suis en DUT info et dans ma classe à chaque tp, certaines personnes se connectent en ssh sur le machines des autres pour les ralentir (c'est marrant deux secondes, ça devient très vite lourd)
J'aimerai créer un script qui me protège de ça. Je voudrais bloquer les connexions ssh qui se connectent sur ma machine ,récupérer les adresses IP puis à mon tour, me connecter sur leurs machines et les faire planter avec un fork bomb( rien de malveillant bien sur, c'est uniquement pour calmer les petits malins)
On m'a dit que c'était simple à faire mais je ne vois pas du tout comment m'y prendre ... :)
Si vous avez des suggestions je suis preneur !
-
Bonjour,
Juste par curiosité tu as des droits d'administrateur sur ta machine?
-
Non, on a juste le droit de se connecter en ssh sur d'autres machines de la salle
-
1) Sans droits administrateur, tu peux pas faire grand chose
2) faire planter une machine qui n'est pas la tienne, c'est interdit
3) un fork bomb, je pense pas que ça marche sur les systèmes modernes, voir ulimit
-
- change le mot de passe de ton compte utilisateur
-
Salut,
Regarde qui se connecte sur ta machine (sous linux, la commande w devraient suffire) et demande lui d'arrêter. Si ça ne suffit pas prévient le responsable réseau ou de la formation.
Je te déconseille fortement de te faire justice toi-même car ce genre de bétises peut aller loin, genre plainte, exclusion voire interdiction d'examen.