# 548 - Pentesting Apple Filing Protocol (AFP) {% 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 %} ## ๊ธฐ๋ณธ ์ •๋ณด **Apple Filing Protocol** (**AFP**)๋Š” ํ•œ๋•Œ AppleTalk Filing Protocol๋กœ ์•Œ๋ ค์กŒ์œผ๋ฉฐ, **Apple File Service** (**AFS**)์— ํฌํ•จ๋œ ์ „๋ฌธ ๋„คํŠธ์›Œํฌ ํ”„๋กœํ† ์ฝœ์ž…๋‹ˆ๋‹ค. macOS ๋ฐ ํด๋ž˜์‹ Mac OS์— ๋Œ€ํ•œ ํŒŒ์ผ ์„œ๋น„์Šค๋ฅผ ์ œ๊ณตํ•˜๋„๋ก ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. AFP๋Š” ์œ ๋‹ˆ์ฝ”๋“œ ํŒŒ์ผ ์ด๋ฆ„, POSIX ๋ฐ ์ ‘๊ทผ ์ œ์–ด ๋ชฉ๋ก ๊ถŒํ•œ, ๋ฆฌ์†Œ์Šค ํฌํฌ, ๋ช…๋ช…๋œ ํ™•์žฅ ์†์„ฑ ๋ฐ ์ •๊ตํ•œ ํŒŒ์ผ ์ž ๊ธˆ ๋ฉ”์ปค๋‹ˆ์ฆ˜์„ ์ง€์›ํ•˜๋Š” ์ ์—์„œ ๋‘๋“œ๋Ÿฌ์ง‘๋‹ˆ๋‹ค. Mac OS 9 ๋ฐ ์ด์ „ ๋ฒ„์ „์˜ ํŒŒ์ผ ์„œ๋น„์Šค์— ๋Œ€ํ•œ ์ฃผ์š” ํ”„๋กœํ† ์ฝœ์ด์—ˆ์Šต๋‹ˆ๋‹ค. **๊ธฐ๋ณธ ํฌํŠธ:** 548 ```bash PORT STATE SERVICE 548/tcp open afp ``` ### **์—ด๊ฑฐ** AFP ์„œ๋น„์Šค์˜ ์—ด๊ฑฐ๋ฅผ ์œ„ํ•ด ๋‹ค์Œ ๋ช…๋ น์–ด์™€ ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ์œ ์šฉํ•ฉ๋‹ˆ๋‹ค: ```bash msf> use auxiliary/scanner/afp/afp_server_info nmap -sV --script "afp-* and not dos and not brute" -p ``` **์Šคํฌ๋ฆฝํŠธ ๋ฐ ์„ค๋ช…:** - **afp-ls**: ์ด ์Šคํฌ๋ฆฝํŠธ๋Š” ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ AFP ๋ณผ๋ฅจ ๋ฐ ํŒŒ์ผ์„ ๋‚˜์—ดํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. - **afp-path-vuln**: ๋ชจ๋“  AFP ๋ณผ๋ฅจ ๋ฐ ํŒŒ์ผ์„ ๋‚˜์—ดํ•˜๊ณ  ์ž ์žฌ์ ์ธ ์ทจ์•ฝ์ ์„ ๊ฐ•์กฐ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. - **afp-serverinfo**: AFP ์„œ๋ฒ„์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. - **afp-showmount**: ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ AFP ๊ณต์œ ์™€ ํ•ด๋‹น ACL์„ ๋‚˜์—ดํ•ฉ๋‹ˆ๋‹ค. ### [**๋ฌด์ฐจ๋ณ„ ๋Œ€์ž… ๊ณต๊ฒฉ**](../generic-methodologies-and-resources/brute-force.md#afp) {% 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 %}