# Reset un mot de passe Windows

# Reset le mot de passe d'un compte Windows

#### 1/ Télécharger une image KALI Linux

#### <span style="font-size: 14pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">2/ Faire une clé USB Bootable avec Kali dessus</span>

- <span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Sur le logiciel ISO2Disc sélectionner l’image KALI LINUX (pref x64)</span>
- <span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Sélectionner “Burn to USB Flash Drive</span>
- <span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Sélectionner la clé USB concerné </span>

<p class="callout warning"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Ne surtout pas sélectionner la partition style (GPT)</span></p>

#### <span style="font-size: 14pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">3/ Boot sur la clé USB</span>

<p class="callout info"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Démarrer l’ordinateur concerné sur la clé USB KALI, pour ce faire il faut appuyer sur la touche “F12” durant le démarrage de l’ordinateur.</span></p>

- <span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Sélectionner la clé USB ou changer l’ordre du boot en mettant la clé USB en première position. </span>
- <span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Enregistrer et quitter.</span>

### <span style="font-size: 14pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">4/ Sélection du mode de Linux</span>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Sélectionner le mode de démarrage “live forensic mode”</span>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="border: none; display: inline-block; overflow: hidden; width: 560px; height: 427px;">![](https://lh3.googleusercontent.com/9zU84HiaF-gcFUZpYt3SDcLyM6K1IMwrnj8u9skgkYApA-NgtV0R0SuF6DpdUKWi1SkDkPHqwNE-iwI56rJ7ru3Y3rUNaOh2-76qtik37Hx5RwvNyJJBM6LS6iTyNZj17Ist05n8ezRNKEdsng)</span></span>

<p class="callout info"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Entrer le nom et mot de passe par défaut, soit **root** et **toor**.</span></p>

### <span style="font-size: 14pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">5/ Parcours des fichiers</span>

> <span style="font-size: 14pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="font-family: Arial;"><span style="font-size: 18.6667px; white-space: pre-wrap;">Via l’interface de l’explorateur de fichier de linux se rendre dans l'emplacement suivant : `/Windows/System32/Config`</span></span></span>

<span style="color: #e67e23;">**<span style="font-size: 12pt; font-family: Arial; background-color: transparent; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Si les dossiers sont affichés avec un cadenas :</span>**</span>

<span style="color: #ffffff;"><span style="font-size: 12pt; font-family: Arial; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span style="text-decoration: underline;">**Option 1 :**</span> Essayer de parcourir les dossiers en faisant</span><span style="font-size: 12pt; font-family: Arial; font-weight: bold; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> “Open as root”</span><span style="font-size: 12pt; font-family: Arial; font-weight: bold; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"> </span><span style="font-size: 12pt; font-family: Arial; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">puis de continuer les démarches suivantes.</span></span>

<span style="font-size: 12pt; font-family: Arial; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; color: #ffffff;"><span style="text-decoration: underline;">**Option 2 :**</span> Si la solution précédente ne fonctionne pas c’est que la partition est protégé, pour cela démarrer l’ordinateur normalement sur Windows puis faire redémarrer mais **lors du redémarrage boot sur la clé USB**.</span>

<span style="font-size: 12pt; font-family: Arial; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; color: #ffffff;">**<span style="text-decoration: underline;">Option 3 :</span>** Si lors de l’ouverture d’un dossier (System32 ou Config) une erreur apparaît essayer d’y accéder via le terminal en tant que root. Il est possible qu’un fichier corrompu empêche l’explorateur de fichier d’accéder et d’afficher tous les dossiers et fichiers contenu dans ce dossier.</span>

<span style="color: #ffffff;">  
</span>

**<span style="font-size: 12pt; font-family: Arial; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; color: #ffffff;">Une fois dans le dossier ouvrir le terminal en faisant clic droit -&gt; “Open terminal here”</span>**

### <span style="font-size: 14pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">6/ Changer le mot de passe</span>

- <span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; color: #ffffff;">Se mettre en root dans le terminal </span>

```shell
sudo su
```

- <span style="color: #ffffff;"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Lister les utilisateurs existant sur l'ordinateur </span><span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;"><span class="Apple-tab-span" style="white-space: pre;"> </span></span></span>

```shell
chntpw -l sam
```

<p class="callout info"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: italic; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">Selon la version de Windows le paramètre “sam” peut-être en majuscule “SAM”</span></p>

- <span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; color: #ffffff;">Reset le mot de passe d'un utilisateur</span>

<span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; color: #ffffff;">Permet de se connecter à la configuration d'un utilisateur.</span>

```shell
chntpw -u {username} sam
```

Une fois connecté dans la configuration d'un utilisateur, le script va vous proposer plusieurs actions. Les actions sont les suivantes :

<table border="1" id="bkmrk-1-nettoyer-le-mot-de" style="border-collapse: collapse; width: 100%; height: 119.188px;"><tbody><tr style="height: 29.7969px;"><td style="width: 12.1244%; height: 29.7969px;">1</td><td style="width: 87.8756%; height: 29.7969px;">Nettoyer le mot de passe </td></tr><tr style="height: 29.7969px;"><td style="width: 12.1244%; height: 29.7969px;">2</td><td style="width: 87.8756%; height: 29.7969px;">Débloquer le compte</td></tr><tr style="height: 29.7969px;"><td style="width: 12.1244%; height: 29.7969px;">3</td><td style="width: 87.8756%; height: 29.7969px;">Donner les droits administrateurs au compte</td></tr><tr style="height: 29.7969px;"><td style="width: 12.1244%; height: 29.7969px;">q</td><td style="width: 87.8756%; height: 29.7969px;">Quitter la configuration de l'utilisateur</td></tr></tbody></table>

<p class="callout success"><span style="font-size: 11pt; font-family: Arial; background-color: transparent; font-weight: 400; font-style: normal; font-variant: normal; text-decoration: none; vertical-align: baseline; white-space: pre-wrap;">NE PAS OUBLIER DE QUITTER AVEC ”q” POUR SAUVEGARDER LES MODIFICATIONS !</span></p>