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("