finish rle module build
This commit is contained in:
27
bin/rdpy-rdpproxy
Executable file
27
bin/rdpy-rdpproxy
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/python
|
||||
'''
|
||||
@author: sylvain
|
||||
'''
|
||||
|
||||
import sys, os
|
||||
# Change path so we find rdpy
|
||||
sys.path.insert(1, os.path.join(sys.path[0], '..'))
|
||||
|
||||
from rdpy.protocol.rdp import rdp
|
||||
|
||||
class TestServerFactory(rdp.ServerFactory):
|
||||
def __init__(self):
|
||||
rdp.ServerFactory.__init__(self, "/tmp/private.pem", "/tmp/certificate.pem")
|
||||
def startedConnecting(self, connector):
|
||||
pass
|
||||
|
||||
def clientConnectionLost(self, connector, reason):
|
||||
pass
|
||||
|
||||
def clientConnectionFailed(self, connector, reason):
|
||||
pass
|
||||
|
||||
if __name__ == '__main__':
|
||||
from twisted.internet import reactor
|
||||
reactor.listenTCP(33389, TestServerFactory())
|
||||
reactor.run()
|
||||
Reference in New Issue
Block a user