CVE-2019-3980 漏洞利用程序,使用 win32/c++ 编写(依赖于 openssl)。移植自 https://github.com/tenable/poc/blob/master/Solarwinds/Dameware/dwrcs_dwDrvInst_rce.py
此 PoC 需要静态链接的 openssl 库。将 openssl 头文件放在 third_party\include\openssl 中,库文件放在 third_party\libs\openssl$(PlatformShortName)\ 中。
大致的 openssl 构建说明:
cd c:\path\to\openssl\src
perl Configure VC-WIN64A no-shared --prefix=C:\path\to\build_directory
nmake
nmake install
重要提示:本项目中的 openssl 副本经过修改,允许在 Diffie-Hellman 函数中使用不安全的素数。512 位改为 128 位。如果手动构建,您需要找到并将 dh_local.h 中的 DH_MIN_MODULUS_BITS 更改为 128。(#define DH_MIN_MODULUS_BITS 128)
-t <target ip>
-e <path to exe>
-p <port number (default: 6129>