mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-16 10:02:53 -07:00
Added SMB2 support for RunFinger and various other checks.
This commit is contained in:
parent
fc4ac599d3
commit
e24792d774
2 changed files with 1 additions and 37 deletions
36
packets.py
36
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("<H",len(str(self.fields["Data"])))
|
|
||||||
|
|
||||||
class SMB2NegoDataReq(Packet):
|
|
||||||
fields = OrderedDict([
|
|
||||||
("StrType","\x02" ),
|
|
||||||
("dialect", "NT LM 0.12\x00"),
|
|
||||||
("StrType1","\x02"),
|
|
||||||
("dialect1", "SMB 2.002\x00"),
|
|
||||||
("StrType2","\x02"),
|
|
||||||
("dialect2", "SMB 2.???\x00"),
|
|
||||||
])
|
|
||||||
###################RDP Packets################################
|
###################RDP Packets################################
|
||||||
class TPKT(Packet):
|
class TPKT(Packet):
|
||||||
fields = OrderedDict([
|
fields = OrderedDict([
|
||||||
|
|
|
@ -11,7 +11,7 @@ else:
|
||||||
|
|
||||||
def StructWithLenPython2or3(endian,data):
|
def StructWithLenPython2or3(endian,data):
|
||||||
#Python2...
|
#Python2...
|
||||||
if PY2OR3 == "PY2":
|
if PY2OR3 is "PY2":
|
||||||
return struct.pack(endian, data)
|
return struct.pack(endian, data)
|
||||||
#Python3...
|
#Python3...
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue