> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/zh/hacking-tools/exploitation/metasploit/metasploit-enumeration-services.md).

# 使用 Metasploit 进行服务枚举

使用 Metasploit 辅助模块枚举 FTP、SMB、HTTP、MySQL、SSH、SMTP 及其他暴露服务的工作流。

#### 评估方法：枚举

1. **FTP 版本扫描**
   * 搜索： `搜索类型：auxiliary 名称：FTP`
   * 使用： `auxiliary/scanner/ftp/ftp_version`
2. **FTP 凭证暴力破解**
   * 使用： `auxiliary/scanner/ftp/ftp_login`
3. **检查用户“anonymous”是否存在**
   * 使用： `auxiliary/scanner/ftp/anonymous`
4. **SMB 枚举**
   * 搜索： `搜索类型：auxiliary 名称：SMB`
   * **SMB 版本**
     * 使用： `auxiliary/scanner/smb/smb_version`
   * **SMB 用户枚举**
     * 使用： `auxiliary/scanner/smb/smb_enumusers`
   * **SMB 共享枚举**
     * 使用： `auxiliary/scanner/smb/smb_enumshares`
   * **SMB 凭证暴力破解**
     * 使用： `auxiliary/scanner/smb/smb_login`
5. **HTTP 枚举**
   * 搜索： `搜索类型：auxiliary 名称：HTTP`
   * **HTTP 版本**
     * 使用： `auxiliary/scanner/http/http_version`
   * **HTTP 标头分析**
     * 使用： `auxiliary/scanner/http/http_header`
   * **HTTP 目录暴力破解**
     * 使用： `auxiliary/scanner/http/dir_scanner`
   * **HTTP 文件暴力破解**
     * 使用： `auxiliary/scanner/http/files_dir`
   * **HTTP 凭证暴力破解**
     * 使用： `auxiliary/scanner/http/http_login`
6. **MySQL**
   * **MySQL 版本扫描**
     * 使用： `auxiliary/scanner/mysql/mysql_version`
   * **MySQL 凭证暴力破解**
     * 使用： `auxiliary/scanner/mysql/mysql_login`
   * **MySQL 枚举**
     * 使用： `auxiliary/scanner/mysql/mysql_enum`
   * **对 MySQL 表执行 SQL 查询**
     * 使用： `auxiliary/scanner/mysql/mysql_sql`
   * **导出 MySQL 模式**
     * 使用： `auxiliary/scanner/mysql/mysql_schemadump`
7. **SSH**
   * **SSH 版本扫描**
     * 使用： `auxiliary/scanner/ssh/ssh_version`
   * **SSH 凭证暴力破解**
     * 使用： `auxiliary/scanner/ssh/ssh_login`
   * **SSH 用户枚举**
     * 使用： `auxiliary/scanner/ssh/ssh_enumusers`
8. **SMTP**
   * **SMTP 版本扫描**
     * 使用： `auxiliary/scanner/smtp/smtp_version`
   * **SMTP 用户枚举**
     * 使用： `auxiliary/scanner/smtp/smtp_enum`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://hacking-notes.jord4n.pro/zh/hacking-tools/exploitation/metasploit/metasploit-enumeration-services.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
