该 Python 程序是对 RCE SMBGhost 漏洞的封装。漏洞利用部分的所有荣誉归功于 chompie1337。扫描器的所有荣誉归功于 ioncodes。
我只是将这些功能自动化到一个程序中。在生成反向 shell 时,你需要考虑 Windows 目标的架构。
该利用 不稳定,请自行承担风险。有时第一次不成功,所以我加入了第二次重试。
如果你要放入自己的 shellcode,请注意 shellcode 的最大大小为 600 字节。
可用于测试该利用的易受攻击 Windows ISO (x64):MEGA 下载
1º 由 msfvenom 生成的无阶段反向 shell (x64)。

2º 尝试使用自定义 shellcode 在目标中添加用户 "di.security" 作为管理员。shellcode 的荣誉归功于 rastating。

usage: Smb_Ghost.py [-h] -i IP [-p PORT] [--check] [-e] [--lhost LHOST]
[--lport LPORT] [--arch ARCH] [--silent] [--shellcode]
[--load-shellcode LOAD_SHELLCODE]
SMBGhost Detection and Exploitation
optional arguments:
-h, --help show this help message and exit
-i IP, --ip IP IP address
-p PORT, --port PORT SMB Port
--check Check SMBGhost Vulnerability
-e Directly exploit SMBGhost
--lhost LHOST Lhost for the reverse shell
--lport LPORT Lport for the reverse shell
--arch ARCH Architecture of the target Windows Machine
--silent Silent mode for the scanner
--shellcode Shellcode Menu to import your shell
--load-shellcode LOAD_SHELLCODE
Load shellcode directly from file
任何滥用此软件的行为均不属于作者的责任。请在自己的网络和/或获得网络所有者许可的情况下使用。