add rdp login packet

This commit is contained in:
speyrefitte
2013-12-05 18:03:44 +01:00
parent 9a4d5b059e
commit 65d1ef89f5
6 changed files with 232 additions and 105 deletions

View File

@@ -8,10 +8,7 @@ class Factory(protocol.Factory):
Factory of RDP protocol
'''
def __init__(self):
mcsLayer = mcs.MCS()
#set global channel to graphic layer
mcsLayer._channelIds[mcs.Channel.MCS_GLOBAL_CHANNEL] = gdl.GDL()
self._protocol = tpkt.TPKT(tpdu.TPDU(mcsLayer))
self._protocol = tpkt.TPKT(tpdu.TPDU(mcs.MCS(gdl.GDL())))
def buildProtocol(self, addr):
return self._protocol;