Scanner script to identify hosts vulnerable to CVE-2020-0796
This script can help to identify machines with the SMBv3 vulnerablity by checking for enabled compression. Still, it might return "vulnerable" for machines which have KB4551762 installed.
- Perl 5.12+
- IO::Socket
- Net::Netmask
Scan a single IP address:
./smbCompScan.pl 192.168.0.1
Scan by hostname:
./smbCompScan.pl some.vulnerable.host.tld
Scan a network:
./smbCompScan.pl 192.168.0.0/24