add client general capability

This commit is contained in:
speyrefitte
2013-12-12 17:59:28 +01:00
parent 9b6b9654ee
commit 9a70aa77ff
2 changed files with 70 additions and 6 deletions

View File

@@ -2,13 +2,13 @@
@author: sylvain
'''
from twisted.internet import protocol
import tpkt, tpdu, mcs, gdl
import tpkt, tpdu, mcs, sil
class Factory(protocol.Factory):
'''
Factory of RDP protocol
'''
def __init__(self):
self._protocol = tpkt.TPKT(tpdu.TPDU(mcs.MCS(gdl.GDL())))
self._protocol = tpkt.TPKT(tpdu.TPDU(mcs.MCS(sil.SIL())))
def buildProtocol(self, addr):
return self._protocol;