diff --git a/README.md b/README.md index 3592bfc..3ac917e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,17 @@ A network dump of the scanner running against a Windows 2019 Server (10.0.0.133) ## Usage `python3 scanner.py ` +You can use networks as IP, for example + +`python3 scanner.py 10.0.0.0/24>` + +## Requeriments + +`pip3 install netaddr` + + ## Workarounds + [ADV200005 | Microsoft Guidance for Disabling SMBv3 Compression](https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/adv200005) ``` diff --git a/scanner.py b/scanner.py index 4ea240a..aef61a2 100644 --- a/scanner.py +++ b/scanner.py @@ -8,7 +8,7 @@ subnet = sys.argv[1] for ip in IPNetwork(subnet): - + print(f"Testing {ip}") sock = socket.socket(socket.AF_INET) sock.settimeout(3) @@ -16,6 +16,7 @@ sock.connect(( str(ip), 445 )) except: sock.close() + print(f"{ip} not available") continue sock.send(pkt) @@ -26,4 +27,4 @@ if res[68:70] != b"\x11\x03" or res[70:72] != b"\x02\x00": print(f"{ip} Not vulnerable.") else: - print(f"{ip} Vulnerable") \ No newline at end of file + print(f"{ip} Vulnerable")