2024-02-09 08:23:12 +00:00
# 113 - Pentesting Ident
2022-04-28 16:01:33 +00:00
< details >
2024-02-09 08:23:12 +00:00
< summary > < strong > ゼロからヒーローまでAWSハッキングを学ぶ< / strong > < a href = "https://training.hacktricks.xyz/courses/arte" > < strong > htARTE( HackTricks AWS Red Team Expert) < / strong > < / a > < strong > ! < / strong > < / summary >
2022-04-28 16:01:33 +00:00
2024-02-09 08:23:12 +00:00
HackTricks をサポートする他の方法:
* **HackTricks で企業を宣伝したい**または **HackTricks をPDFでダウンロードしたい**場合は、[**SUBSCRIPTION PLANS** ](https://github.com/sponsors/carlospolop)をチェックしてください!
2024-03-17 16:50:32 +00:00
* [**公式PEASS& HackTricksスワッグ** ](https://peass.creator-spring.com )を入手する
2024-02-09 08:23:12 +00:00
* [**The PEASS Family** ](https://opensea.io/collection/the-peass-family )を発見し、独占的な[**NFTs** ](https://opensea.io/collection/the-peass-family )コレクションを見つける
2024-03-17 16:50:32 +00:00
* **💬 [**Discordグループ** ](https://discord.gg/hRep4RUj7f )または[**telegramグループ** ](https://t.me/peass )に参加するか、**Twitter** 🐦 [**@carlospolopm** ](https://twitter.com/hacktricks\_live )で **フォロー**する。
* **ハッキングトリックを共有するために、PRを** [**HackTricks** ](https://github.com/carlospolop/hacktricks ) と [**HackTricks Cloud** ](https://github.com/carlospolop/hacktricks-cloud ) のgithubリポジトリに提出する。
2022-04-28 16:01:33 +00:00
< / details >
2024-03-17 16:50:32 +00:00
< figure > < img src = "../.gitbook/assets/image (3) (1) (1) (1) (1) (1).png" alt = "" > < figcaption > < / figcaption > < / figure >
2022-10-27 23:22:18 +00:00
2024-03-17 16:50:32 +00:00
[**Trickest** ](https://trickest.com/?utm\_campaign=hacktrics\&utm\_medium=banner\&utm\_source=hacktricks )を使用して、世界で最も高度なコミュニティツールによって強化された**ワークフローを簡単に構築**および**自動化**します。\
今すぐアクセスしてください:
2022-10-27 23:22:18 +00:00
{% embed url="https://trickest.com/?utm_campaign=hacktrics& utm_medium=banner& utm_source=hacktricks" %}
2023-07-07 23:42:27 +00:00
## 基本情報
2020-07-15 15:43:14 +00:00
2024-02-09 08:23:12 +00:00
**Identプロトコル**は、**インターネット**上で**TCP接続**を特定のユーザーに関連付けるために使用されます。**ネットワーク管理**および**セキュリティ**を支援するために設計されたもので、特定のTCP接続のユーザーに関する情報をリクエストするために、サーバーがポート113でクライアントにクエリを許可することによって動作します。
2020-07-15 15:43:14 +00:00
2024-02-09 08:23:12 +00:00
しかし、現代のプライバシー上の懸念や誤用の可能性により、権限のない者にユーザー情報を誤って明らかにする可能性があるため、その使用は減少しています。これらのリスクを緩和するために、暗号化された接続や厳格なアクセス制御などの強化されたセキュリティ対策が推奨されています。
**デフォルトポート:** 113
2021-10-18 11:21:18 +00:00
```
2020-07-15 15:43:14 +00:00
PORT STATE SERVICE
113/tcp open ident
```
2023-07-07 23:42:27 +00:00
## **列挙**
2020-07-15 15:43:14 +00:00
2024-03-17 16:50:32 +00:00
### **手動 - ユーザーの取得/サービスの識別**
2020-07-15 15:43:14 +00:00
2024-03-17 16:50:32 +00:00
マシンがidentおよびsamba( 445) を実行しており、ポート43218を使用してsambaに接続している場合、次のようにしてsambaサービスを実行しているユーザーを取得できます:
2020-07-15 15:43:14 +00:00
2022-12-24 19:34:46 +00:00
![](< .. / . gitbook / assets / image ( 15 ) ( 1 ) ( 1 ) . png > )
2020-07-15 15:43:14 +00:00
2024-03-17 16:50:32 +00:00
サービスに接続するときに単にEnterキーを押すと:
2020-07-15 15:43:14 +00:00
2022-12-24 19:34:46 +00:00
![](< .. / . gitbook / assets / image ( 16 ) ( 1 ) ( 1 ) . png > )
2020-07-15 15:43:14 +00:00
2023-07-07 23:42:27 +00:00
その他のエラー:
2020-07-15 15:43:14 +00:00
2022-09-30 10:43:59 +00:00
![](< .. / . gitbook / assets / image ( 17 ) ( 1 ) . png > )
2020-07-15 15:43:14 +00:00
2022-05-08 23:13:03 +00:00
### Nmap
2020-07-15 15:43:14 +00:00
2024-03-17 16:50:32 +00:00
デフォルトでは(\`-sC\`\) 、nmapは実行中のすべてのポートのすべてのユーザーを識別します:
2021-10-18 11:21:18 +00:00
```
2020-07-15 15:43:14 +00:00
PORT STATE SERVICE VERSION
22/tcp open ssh OpenSSH 4.3p2 Debian 9 (protocol 2.0)
|_auth-owners: root
2023-07-07 23:42:27 +00:00
| ssh-hostkey:
2020-07-15 15:43:14 +00:00
| 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
```
2022-05-08 23:13:03 +00:00
### Ident-user-enum
2020-11-15 22:33:46 +01:00
2024-02-09 08:23:12 +00:00
[**Ident-user-enum** ](https://github.com/pentestmonkey/ident-user-enum )は、ターゲットシステムの各TCPポートでリッスンしているプロセスの所有者を特定するためにidentサービス( 113/TCP) にクエリを送信するためのシンプルなPERLスクリプトです。収集されたユーザ名のリストは、他のネットワークサービスへのパスワード推測攻撃に使用できます。`apt install ident-user-enum` を使用してインストールできます。
2021-10-18 11:21:18 +00:00
```
2020-11-15 22:33:46 +01:00
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
```
2022-05-08 23:13:03 +00:00
### Shodan
2020-07-15 15:43:14 +00:00
* `oident`
2022-05-08 23:13:03 +00:00
## Files
2020-07-15 15:43:14 +00:00
identd.conf
2024-03-17 16:50:32 +00:00
< figure > < img src = "../.gitbook/assets/image (3) (1) (1) (1) (1) (1).png" alt = "" > < figcaption > < / figcaption > < / figure >
2022-10-27 23:22:18 +00:00
2023-09-03 18:55:41 +00:00
[**Trickest** ](https://trickest.com/?utm_campaign=hacktrics&utm_medium=banner&utm_source=hacktricks )を使用して、世界で最も高度なコミュニティツールによって強化された**ワークフローを簡単に構築**および**自動化**します。\
2024-02-09 08:23:12 +00:00
今すぐアクセスしてください:
2022-10-27 23:22:18 +00:00
{% embed url="https://trickest.com/?utm_campaign=hacktrics& utm_medium=banner& utm_source=hacktricks" %}
2023-09-28 20:14:46 +00:00
## HackTricks Automatic Commands
2021-10-18 11:21:18 +00:00
```
2021-08-12 08:39:37 -04:00
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
2021-08-15 13:59:11 -04:00
Entry_1:
2023-07-07 23:42:27 +00:00
Name: Notes
Description: Notes for Ident
Note: |
2024-02-09 08:23:12 +00:00
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.
2021-08-15 13:59:11 -04:00
2023-07-07 23:42:27 +00:00
https://book.hacktricks.xyz/pentesting/113-pentesting-ident
2021-08-15 13:59:11 -04:00
Entry_2:
2023-07-07 23:42:27 +00:00
Name: Enum Users
Description: Enumerate Users
Note: apt install ident-user-enum ident-user-enum {IP} 22 23 139 445 (try all open ports)
2021-08-12 08:39:37 -04:00
```
2022-04-28 16:01:33 +00:00
< details >
2024-03-17 16:50:32 +00:00
< summary > < strong > htARTE( HackTricks AWS Red Team Expert) < / strong > を使用して、ゼロからヒーローまでAWSハッキングを学びましょう< / summary >
2024-02-09 08:23:12 +00:00
HackTricksをサポートする他の方法:
2022-04-28 16:01:33 +00:00
2024-03-17 16:50:32 +00:00
- **HackTricksで企業を宣伝したい**場合や**HackTricksをPDFでダウンロード**したい場合は、[**SUBSCRIPTION PLANS** ](https://github.com/sponsors/carlospolop )をチェックしてください!
- [**公式PEASS& HackTricksスウォッグ** ](https://peass.creator-spring.com )を入手する
- [**The PEASS Family** ](https://opensea.io/collection/the-peass-family )を発見し、独占的な[**NFTs** ](https://opensea.io/collection/the-peass-family )コレクションをご覧ください
- 💬 [**Discordグループ** ](https://discord.gg/hRep4RUj7f )または[**telegramグループ** ](https://t.me/peass )に**参加**するか、**Twitter** 🐦 [**@carlospolopm** ](https://twitter.com/hacktricks\_live )で**フォロー**してください
- ハッキングトリックを共有するために、[**HackTricks** ](https://github.com/carlospolop/hacktricks )と[**HackTricks Cloud** ](https://github.com/carlospolop/hacktricks-cloud )のGitHubリポジトリにPRを提出してください
2022-04-28 16:01:33 +00:00
< / details >