citronneur / rdpy

Remote Desktop Protocol in Twisted Python
GNU General Public License v3.0
1.68k stars 544 forks source link

X224 parsing error #1

Closed lgandx closed 10 years ago

lgandx commented 10 years ago

Hi Silvain,

First of all, thanks for your library!

I'm experiencing issues with the server when attempting to connect with microsoft RDP client (like the one bundled in XP), see error below:

Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 88, in callWithLogger return callWithContext({"system": lp}, func, _args, _kw) File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 73, in callWithContext return context.call({ILogContext: newCtx}, func, _args, _kw) File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext return self.currentContext().callWithContext(ctx, func, _args, _kw) File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext return func(args,kw) --- --- File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite why = selectable.doRead() File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 215, in doRead return self._dataReceived(data) File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 221, in _dataReceived rval = self.protocol.dataReceived(data) File "/home/test/rdpy-master/rdpy/../rdpy/protocol/network/layer.py", line 114, in dataReceived self.recv(expectedData) File "/home/test/rdpy-master/rdpy/../rdpy/protocol/rdp/tpkt.py", line 90, in readData self._presentation.recv(data) File "/home/test/rdpy-master/rdpy/../rdpy/protocol/rdp/tpdu.py", line 108, in recvConnectionConfirm raise InvalidExpectedDataException("invalid TPDU header code X224_TPDU_CONNECTION_CONFIRM != %d"%header.code) exceptions.TypeError: %d format: a number is required, not UInt8

Thanks !

citronneur commented 10 years ago

Hi Igandx,

Sorry but this project is not yet finish for RDP side. And to increase security of RDP we have to impose SSL connection and this is not supported on older version of RDP as you can have on windows XP.

Thanks for your feed back. I will close issue when I finish RDP server side.

Sylvain

citronneur commented 10 years ago

It's closed for me