From e24792d7743dbf3a5c5ffac92113e36e5d682e42 Mon Sep 17 00:00:00 2001 From: lgandx Date: Thu, 31 Dec 2020 01:27:43 -0300 Subject: [PATCH] Added SMB2 support for RunFinger and various other checks. --- packets.py | 36 ------------------------------------ tools/RunFingerPackets.py | 2 +- 2 files changed, 1 insertion(+), 37 deletions(-) diff --git a/packets.py b/packets.py index f27bc4a..9939af0 100644 --- a/packets.py +++ b/packets.py @@ -1611,42 +1611,6 @@ class SMB2Session2Data(Packet): ]) -######################FindSMBTime.py########################## -class SMBHeaderReq(Packet): - fields = OrderedDict([ - ("Proto", "\xff\x53\x4d\x42"), - ("Cmd", "\x72"), - ("Error-Code", "\x00\x00\x00\x00" ), - ("Flag1", "\x10"), - ("Flag2", "\x00\x00"), - ("Pidhigh", "\x00\x00"), - ("Signature", "\x00\x00\x00\x00\x00\x00\x00\x00"), - ("Reserved", "\x00\x00"), - ("TID", "\x00\x00"), - ("PID", "\xff\xfe"), - ("UID", "\x00\x00"), - ("MID", "\x00\x00"), - ]) - -class SMB2NegoReq(Packet): - fields = OrderedDict([ - ("Wordcount", "\x00"), - ("Bcc", "\x62\x00"), - ("Data", "") - ]) - - def calculate(self): - self.fields["Bcc"] = StructWithLenPython2or3("