{% 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 %}
{% embed url="https://websec.nl/" %} # Basic Information **Trivial File Transfer Protocol (TFTP)**๋Š” **UDP ํฌํŠธ 69**์—์„œ ์‚ฌ์šฉ๋˜๋Š” ๊ฐ„๋‹จํ•œ ํ”„๋กœํ† ์ฝœ๋กœ, ์ธ์ฆ ์—†์ด ํŒŒ์ผ ์ „์†ก์„ ํ—ˆ์šฉํ•ฉ๋‹ˆ๋‹ค. **RFC 1350**์— ๊ฐ•์กฐ๋˜์–ด ์žˆ์œผ๋ฉฐ, ๊ทธ ๋‹จ์ˆœ์„ฑ์œผ๋กœ ์ธํ•ด ์ฃผ์š” ๋ณด์•ˆ ๊ธฐ๋Šฅ์ด ๋ถ€์กฑํ•˜์—ฌ ๊ณต์šฉ ์ธํ„ฐ๋„ท์—์„œ์˜ ์‚ฌ์šฉ์ด ์ œํ•œ์ ์ž…๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ **TFTP**๋Š” **VoIP ํ•ธ๋“œ์…‹**๊ณผ ๊ฐ™์€ ์žฅ์น˜์— **๊ตฌ์„ฑ ํŒŒ์ผ** ๋ฐ **ROM ์ด๋ฏธ์ง€**๋ฅผ ๋ฐฐํฌํ•˜๋Š” ๋ฐ ํšจ์œจ์ ์ด๊ธฐ ๋•Œ๋ฌธ์— ๋Œ€๊ทœ๋ชจ ๋‚ด๋ถ€ ๋„คํŠธ์›Œํฌ์—์„œ ๊ด‘๋ฒ”์œ„ํ•˜๊ฒŒ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. **TODO**: Bittorrent-tracker์— ๋Œ€ํ•œ ์ •๋ณด๋ฅผ ์ œ๊ณตํ•˜์‹ญ์‹œ์˜ค (Shodan์ด ์ด ํฌํŠธ๋ฅผ ํ•ด๋‹น ์ด๋ฆ„์œผ๋กœ ์‹๋ณ„ํ•ฉ๋‹ˆ๋‹ค). ์ด์— ๋Œ€ํ•œ ์ถ”๊ฐ€ ์ •๋ณด๊ฐ€ ์žˆ์œผ๋ฉด [**HackTricks ํ…”๋ ˆ๊ทธ๋žจ ๊ทธ๋ฃน**](https://t.me/peass) ๋˜๋Š” [PEASS](https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite)์—์„œ GitHub ์ด์Šˆ๋กœ ์•Œ๋ ค์ฃผ์‹ญ์‹œ์˜ค. **๊ธฐ๋ณธ ํฌํŠธ:** 69/UDP ``` PORT STATE SERVICE REASON 69/udp open tftp script-set ``` # Enumeration TFTP๋Š” ๋””๋ ‰ํ† ๋ฆฌ ๋ชฉ๋ก์„ ์ œ๊ณตํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ `nmap`์˜ ์Šคํฌ๋ฆฝํŠธ `tftp-enum`์€ ๊ธฐ๋ณธ ๊ฒฝ๋กœ๋ฅผ ๋ฌด์ž‘์œ„๋กœ ์‹œ๋„ํ•ฉ๋‹ˆ๋‹ค. ```bash nmap -n -Pn -sU -p69 -sV --script tftp-enum ``` ## ๋‹ค์šด๋กœ๋“œ/์—…๋กœ๋“œ Metasploit ๋˜๋Š” Python์„ ์‚ฌ์šฉํ•˜์—ฌ ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ/์—…๋กœ๋“œํ•  ์ˆ˜ ์žˆ๋Š”์ง€ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค: ```bash msf5> auxiliary/admin/tftp/tftp_transfer_util ``` ```bash import tftpy client = tftpy.TftpClient(, ) client.download("filename in server", "/tmp/filename", timeout=5) client.upload("filename to upload", "/local/path/file", timeout=5) ``` ## Shodan * `port:69`
{% embed url="https://websec.nl/" %} {% 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 %}