From 24e7b7c667c3c9feb1cd3a25b16bd8d9c2df5ec6 Mon Sep 17 00:00:00 2001 From: lgandx Date: Thu, 31 Dec 2020 09:39:15 -0300 Subject: [PATCH] Added support for SMB2 signing --- tools/RunFinger.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tools/RunFinger.py b/tools/RunFinger.py index e7897e8..745f2f0 100755 --- a/tools/RunFinger.py +++ b/tools/RunFinger.py @@ -39,6 +39,7 @@ if options.TARGET is None: Timeout = 2 Host = options.TARGET SMB1 = "Enabled" +SMB2signing = "False" class Packet(): fields = OrderedDict([ @@ -89,6 +90,13 @@ def ParseNegotiateSMB2Ans(data): else: return False +def SMB2SigningMandatory(data): + global SMB2signing + if data[70] == "\x03": + SMB2signing = "True" + else: + SMB2signing = "False" + def WorkstationFingerPrint(data): return { b"\x04\x00" :"Windows 95", @@ -108,7 +116,7 @@ def GetOsBuildNumber(data): ProductBuild = struct.unpack("