113 - Pentesting Ident
Tip
AWS ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:
HackTricks Training AWS Red Team Expert (ARTE)
GCP ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:HackTricks Training GCP Red Team Expert (GRTE)
Azure ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:
HackTricks Training Azure Red Team Expert (AzRTE)
HackTricks ์ง์ํ๊ธฐ
- ๊ตฌ๋ ๊ณํ ํ์ธํ๊ธฐ!
- **๐ฌ ๋์ค์ฝ๋ ๊ทธ๋ฃน ๋๋ ํ ๋ ๊ทธ๋จ ๊ทธ๋ฃน์ ์ฐธ์ฌํ๊ฑฐ๋ ํธ์ํฐ ๐ฆ @hacktricks_live๋ฅผ ํ๋ก์ฐํ์ธ์.
- HackTricks ๋ฐ HackTricks Cloud ๊นํ๋ธ ๋ฆฌํฌ์งํ ๋ฆฌ์ PR์ ์ ์ถํ์ฌ ํดํน ํธ๋ฆญ์ ๊ณต์ ํ์ธ์.
Basic Information
Ident Protocol๋ ์ธํฐ๋ท์ ํตํด TCP ์ฐ๊ฒฐ์ ํน์ ์ฌ์ฉ์์ ์ฐ๊ฒฐํ๋ ๋ฐ ์ฌ์ฉ๋ฉ๋๋ค. ์๋๋ ๋คํธ์ํฌ ๊ด๋ฆฌ ๋ฐ ๋ณด์์ ๋๊ธฐ ์ํด ์ค๊ณ๋์์ผ๋ฉฐ, ์๋ฒ๊ฐ ํฌํธ 113์์ ํด๋ผ์ด์ธํธ์๊ฒ ์ฟผ๋ฆฌํ์ฌ ํน์ TCP ์ฐ๊ฒฐ์ ์ฌ์ฉ์์ ๋ํ ์ ๋ณด๋ฅผ ์์ฒญํ ์ ์๋๋ก ์๋ํฉ๋๋ค.
๊ทธ๋ฌ๋ ํ๋์ ๊ฐ์ธ ์ ๋ณด ๋ณดํธ ๋ฌธ์ ์ ์ค์ฉ ๊ฐ๋ฅ์ฑ์ผ๋ก ์ธํด ์ฌ์ฉ์ด ๊ฐ์ํ์์ผ๋ฉฐ, ์ด๋ ๋ฌด์ฌ์ฝ ์ฌ์ฉ์ ์ ๋ณด๋ฅผ ๋ฌด๋จ ๋น์ฌ์์๊ฒ ๋ ธ์ถํ ์ ์์ต๋๋ค. ์ด๋ฌํ ์ํ์ ์ํํ๊ธฐ ์ํด ์ํธํ๋ ์ฐ๊ฒฐ ๋ฐ ์๊ฒฉํ ์ ๊ทผ ์ ์ด์ ๊ฐ์ ๊ฐํ๋ ๋ณด์ ์กฐ์น๋ฅผ ๊ถ์ฅํฉ๋๋ค.
๊ธฐ๋ณธ ํฌํธ: 113
PORT STATE SERVICE
113/tcp open ident
Enumeration
Manual - Get user/Identify the service
๋ง์ฝ ๋จธ์ ์ด ident์ samba (445) ์๋น์ค๋ฅผ ์คํ ์ค์ด๊ณ , ํฌํธ 43218์ ์ฌ์ฉํ์ฌ samba์ ์ฐ๊ฒฐ๋์ด ์๋ค๋ฉด, samba ์๋น์ค๋ฅผ ์คํ ์ค์ธ ์ฌ์ฉ์๋ฅผ ํ์ธํ ์ ์์ต๋๋ค:
.png)
์๋น์ค์ ์ฐ๊ฒฐํ ๋ ๊ทธ๋ฅ Enter๋ฅผ ๋๋ฅด๋ฉด:
.png)
๋ค๋ฅธ ์ค๋ฅ๋ค:
.png)
Nmap
๊ธฐ๋ณธ์ ์ผ๋ก (`-sC``) nmap์ ์คํ ์ค์ธ ๋ชจ๋ ํฌํธ์ ๋ชจ๋ ์ฌ์ฉ์๋ฅผ ์๋ณํฉ๋๋ค:
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 4.3p2 Debian 9 (protocol 2.0)
|_auth-owners: root
| ssh-hostkey:
| 1024 88:23:98:0d:9d:8a:20:59:35:b8:14:12:14:d5:d0:44 (DSA)
|_ 2048 6b:5d:04:71:76:78:56:96:56:92:a8:02:30:73:ee:fa (RSA)
113/tcp open ident
|_auth-owners: identd
139/tcp open netbios-ssn Samba smbd 3.X - 4.X (workgroup: LOCAL)
|_auth-owners: root
445/tcp open netbios-ssn Samba smbd 3.0.24 (workgroup: LOCAL)
|_auth-owners: root
Ident-user-enum
Ident-user-enum์ ๋์ ์์คํ
์ ๊ฐ TCP ํฌํธ์์ ์์ ๋๊ธฐ ์ค์ธ ํ๋ก์ธ์ค์ ์์ ์๋ฅผ ํ์ธํ๊ธฐ ์ํด ident ์๋น์ค(113/TCP)๋ฅผ ์ฟผ๋ฆฌํ๋ ๊ฐ๋จํ PERL ์คํฌ๋ฆฝํธ์
๋๋ค. ์์ง๋ ์ฌ์ฉ์ ์ด๋ฆ ๋ชฉ๋ก์ ๋ค๋ฅธ ๋คํธ์ํฌ ์๋น์ค์ ๋ํ ๋น๋ฐ๋ฒํธ ์ถ์ธก ๊ณต๊ฒฉ์ ์ฌ์ฉ๋ ์ ์์ต๋๋ค. apt install ident-user-enum์ผ๋ก ์ค์นํ ์ ์์ต๋๋ค.
root@kali:/opt/local/recon/192.168.1.100# ident-user-enum 192.168.1.100 22 113 139 445
ident-user-enum v1.0 ( http://pentestmonkey.net/tools/ident-user-enum )
192.168.1.100:22 root
192.168.1.100:113 identd
192.168.1.100:139 root
192.168.1.100:445 root
Shodan
oident
Files
identd.conf
HackTricks Automatic Commands
Protocol_Name: Ident #Protocol Abbreviation if there is one.
Port_Number: 113 #Comma separated if there is more than one.
Protocol_Description: Identification Protocol #Protocol Abbreviation Spelled out
Entry_1:
Name: Notes
Description: Notes for Ident
Note: |
The Ident Protocol is used over the Internet to associate a TCP connection with a specific user. Originally designed to aid in network management and security, it operates by allowing a server to query a client on port 113 to request information about the user of a particular TCP connection.
https://book.hacktricks.wiki/en/network-services-pentesting/113-pentesting-ident.html
Entry_2:
Name: Enum Users
Description: Enumerate Users
Note: apt install ident-user-enum ident-user-enum {IP} 22 23 139 445 (try all open ports)
Tip
AWS ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:
HackTricks Training AWS Red Team Expert (ARTE)
GCP ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:HackTricks Training GCP Red Team Expert (GRTE)
Azure ํดํน ๋ฐฐ์ฐ๊ธฐ ๋ฐ ์ฐ์ตํ๊ธฐ:
HackTricks Training Azure Red Team Expert (AzRTE)
HackTricks ์ง์ํ๊ธฐ
- ๊ตฌ๋ ๊ณํ ํ์ธํ๊ธฐ!
- **๐ฌ ๋์ค์ฝ๋ ๊ทธ๋ฃน ๋๋ ํ ๋ ๊ทธ๋จ ๊ทธ๋ฃน์ ์ฐธ์ฌํ๊ฑฐ๋ ํธ์ํฐ ๐ฆ @hacktricks_live๋ฅผ ํ๋ก์ฐํ์ธ์.
- HackTricks ๋ฐ HackTricks Cloud ๊นํ๋ธ ๋ฆฌํฌ์งํ ๋ฆฌ์ PR์ ์ ์ถํ์ฌ ํดํน ํธ๋ฆญ์ ๊ณต์ ํ์ธ์.


