Aller au contenu

Serveurs temporaires

One-liners pour lancer un serveur HTTP ou SMB éphémère côté attaquant et y servir des outils à télécharger sur la cible : python3 -m http.server, php -S, ruby -run, impacket-smbserver, updog, goshs. Indispensable pour staging et exfiltration en pentest.

Serveur web python3

python3 -m http.server

Serveur web python2.7

python2.7 -m SimpleHTTPServer

Serveur web PHP

php -S 0.0.0.0:8000

Serveur web Ruby

ruby -run -ehttpd . -p8000