diff --git a/packets.py b/packets.py index 9820e26..79794f5 100644 --- a/packets.py +++ b/packets.py @@ -1597,4 +1597,39 @@ 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"] = struct.pack("