# 23 - Pentesting Telnet {% 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 %}
**취약점 평가 및 침투 ν…ŒμŠ€νŠΈλ₯Ό μœ„ν•œ μ¦‰μ‹œ μ‚¬μš© κ°€λŠ₯ν•œ μ„€μ •**. 20개 μ΄μƒμ˜ 도ꡬ 및 κΈ°λŠ₯을 μ‚¬μš©ν•˜μ—¬ μ–΄λ””μ„œλ‚˜ 전체 침투 ν…ŒμŠ€νŠΈλ₯Ό μ‹€ν–‰ν•˜μ„Έμš”. μš°λ¦¬λŠ” 침투 ν…ŒμŠ€ν„°λ₯Ό λŒ€μ²΄ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€ - μš°λ¦¬λŠ” 그듀이 더 깊이 νŒŒκ³ λ“€κ³ , μ‰˜μ„ ν„°λœ¨λ¦¬κ³ , 재미λ₯Ό λŠλ‚„ 수 μžˆλ„λ‘ λ§žμΆ€ν˜• 도ꡬ, 탐지 및 μ•…μš© λͺ¨λ“ˆμ„ κ°œλ°œν•©λ‹ˆλ‹€. {% embed url="https://pentest-tools.com/?utm_term=jul2024&utm_medium=link&utm_source=hacktricks&utm_campaign=spons" %} ## **κΈ°λ³Έ 정보** Telnet은 μ‚¬μš©μžκ°€ λ„€νŠΈμ›Œν¬λ₯Ό 톡해 컴퓨터에 μ ‘κ·Όν•  수 μžˆλŠ” μ•ˆμ „ν•˜μ§€ μ•Šμ€ 방법을 μ œκ³΅ν•˜λŠ” λ„€νŠΈμ›Œν¬ ν”„λ‘œν† μ½œμž…λ‹ˆλ‹€. **κΈ°λ³Έ 포트:** 23 ``` 23/tcp open telnet ``` ## **μ—΄κ±°** ### **λ°°λ„ˆ μˆ˜μ§‘** ```bash nc -vn 23 ``` λͺ¨λ“  ν₯미둜운 μ—΄κ±°λŠ” **nmap**을 μ‚¬μš©ν•˜μ—¬ μˆ˜ν–‰ν•  수 μžˆμŠ΅λ‹ˆλ‹€: ```bash nmap -n -sV -Pn --script "*telnet* and safe" -p 23 ``` The script `telnet-ntlm-info.nse`λŠ” NTLM 정보λ₯Ό μ–»μŠ΅λ‹ˆλ‹€ (Windows 버전). [telnet RFC](https://datatracker.ietf.org/doc/html/rfc854)μ—μ„œ: TELNET ν”„λ‘œν† μ½œμ—λŠ” μ‚¬μš©μžκ°€ 더 μ •κ΅ν•œ (λ˜λŠ” μ•„λ§ˆλ„ λ‹¨μˆœνžˆ λ‹€λ₯Έ) κ·œμΉ™ 집합을 μ‚¬μš©ν•˜κΈ°λ‘œ λ™μ˜ν•  수 μžˆλ„λ‘ "**DO, DON'T, WILL, WON'T**" ꡬ쑰와 ν•¨κ»˜ μ‚¬μš©λ  수 μžˆλŠ” λ‹€μ–‘ν•œ "**μ˜΅μ…˜**"이 μžˆμŠ΅λ‹ˆλ‹€. μ΄λŸ¬ν•œ μ˜΅μ…˜μ—λŠ” 문자 집합 λ³€κ²½, 에코 λͺ¨λ“œ λ³€κ²½ 등이 포함될 수 μžˆμŠ΅λ‹ˆλ‹€. **이 μ˜΅μ…˜μ„ μ—΄κ±°ν•˜λŠ” 것이 κ°€λŠ₯ν•˜λ‹€λŠ” 것을 μ•Œκ³  μžˆμ§€λ§Œ, 방법을 λͺ¨λ₯΄λ―€λ‘œ μ•„λŠ” 경우 μ•Œλ €μ£Όμ„Έμš”.** ### [Brute force](../generic-methodologies-and-resources/brute-force.md#telnet) ## Config file ```bash /etc/inetd.conf /etc/xinetd.d/telnet /etc/xinetd.d/stelnet ``` ## HackTricks μžλ™ λͺ…λ Ή ``` Protocol_Name: Telnet #Protocol Abbreviation if there is one. Port_Number: 23 #Comma separated if there is more than one. Protocol_Description: Telnet #Protocol Abbreviation Spelled out Entry_1: Name: Notes Description: Notes for t=Telnet Note: | wireshark to hear creds being passed tcp.port == 23 and ip.addr != myip https://book.hacktricks.xyz/pentesting/pentesting-telnet Entry_2: Name: Banner Grab Description: Grab Telnet Banner Command: nc -vn {IP} 23 Entry_3: Name: Nmap with scripts Description: Run nmap scripts for telnet Command: nmap -n -sV -Pn --script "*telnet*" -p 23 {IP} Entry_4: Name: consoleless mfs enumeration Description: Telnet enumeration without the need to run msfconsole Note: sourced from https://github.com/carlospolop/legion Command: msfconsole -q -x 'use auxiliary/scanner/telnet/telnet_version; set RHOSTS {IP}; set RPORT 23; run; exit' && msfconsole -q -x 'use auxiliary/scanner/telnet/brocade_enable_login; set RHOSTS {IP}; set RPORT 23; run; exit' && msfconsole -q -x 'use auxiliary/scanner/telnet/telnet_encrypt_overflow; set RHOSTS {IP}; set RPORT 23; run; exit' && msfconsole -q -x 'use auxiliary/scanner/telnet/telnet_ruggedcom; set RHOSTS {IP}; set RPORT 23; run; exit' ```
**취약점 평가 및 침투 ν…ŒμŠ€νŠΈλ₯Ό μœ„ν•œ μ¦‰μ‹œ μ‚¬μš© κ°€λŠ₯ν•œ μ„€μ •**. 20개 μ΄μƒμ˜ 도ꡬ와 κΈ°λŠ₯을 μ‚¬μš©ν•˜μ—¬ μ–΄λ””μ„œλ‚˜ 전체 침투 ν…ŒμŠ€νŠΈλ₯Ό μ‹€ν–‰ν•˜μ„Έμš”. μš°λ¦¬λŠ” 침투 ν…ŒμŠ€ν„°λ₯Ό λŒ€μ²΄ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€ - 그듀이 더 깊이 νŒŒκ³ λ“€κ³ , μ‰˜μ„ ν„°λœ¨λ¦¬κ³ , 재미λ₯Ό λŠλ‚„ 수 μžˆλ„λ‘ λ§žμΆ€ν˜• 도ꡬ, 탐지 및 μ•…μš© λͺ¨λ“ˆμ„ κ°œλ°œν•©λ‹ˆλ‹€. {% embed url="https://pentest-tools.com/?utm_term=jul2024&utm_medium=link&utm_source=hacktricks&utm_campaign=spons" %} {% 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 %}