Skip to content

基于asyncio(协程)的CVE-2020-0796 速度还是十分可观的,方便运维师傅们对内网做下快速检测。

Notifications You must be signed in to change notification settings

GuoKerS/aioScan_CVE-2020-0796

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

aioScan_CVE-2020-0796

前言

在公开的POC基础上利用协程大幅提升了检测速度,方便运维师傅们快速的对内网进行检测。

影响版本

Windows 10 Version 1903 for 32-bit Systems

Windows 10 Version 1903 for x64-based Systems

Windows 10 Version 1903 for ARM64-based Systems

Windows Server, Version 1903 (Server Core installation)

Windows 10 Version 1909 for 32-bit Systems

Windows 10 Version 1909 for x64-based Systems

Windows 10 Version 1909 for ARM64-based Systems

Windows Server, Version 1909 (Server Core installation)

修复建议

参考微软的临时解决方案 ADV200005 | Microsoft Guidance for Disabling SMBv3 Compression

使用powershell来禁止SMBv3服务的压缩(无需重启)

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" DisableCompression -Type DWORD -Value 1 -Force

用法

请使用python3.5及以上的版本运行。 请使用python3.7及以上的版本运行(由于asyncio.run是3.7新增的API,我只考虑到了async\await 是3.5新增的语法)

ip地址处理使用了第三方库 netaddr

pip3 install netaddr

如果不想显示连接超时的ip信息,可以把39行换成pass

About

基于asyncio(协程)的CVE-2020-0796 速度还是十分可观的,方便运维师傅们对内网做下快速检测。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages