ThunderEX / py-kms

A KMS server written in python.
Other
395 stars 113 forks source link

No data received! #27

Closed MoeGakuen closed 5 years ago

MoeGakuen commented 5 years ago

Hello There was an error using the latest version. Here are the logs.

TCP server listening at 0.0.0.0 on port 1688.
Connection accepted: 127.0.0.1:5239
RPC bind request received.
('RPC Bind Request Bytes:', '05000b1310000000a000000002000000d016d0160000000003000000000001007521c8514e845047b0d8ec255555bc0601000000045d888aeb1cc9119fe808002b10486002000000010001007521c8514e845047b0d8ec255555bc060100000033057171babe37498319b5dbef9ccc3601000000020001007521c8514e845047b0d8ec255555bc06010000002c1cb76c12984045030000000000000001000000')

MSRPCHeader
ver_major: {5}
ver_minor: {0}
type: {11}
flags: {19}
representation: {16}
frag_len: {160}
auth_len: {0}
call_id: {2}
dataLen: {144}
pduData: {'\xd0\x16\xd0\x16\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x01\x00u!\xc8QN\x84PG\xb0\xd8\xec%UU\xbc\x06\x01\x00\x00\x00\x04]\x88\x8a\xeb\x1c\xc9\x11\x9f\xe8\x08\x00+\x10H`\x02\x00\x00\x00\x01\x00\x01\x00u!\xc8QN\x84PG\xb0\xd8\xec%UU\xbc\x06\x01\x00\x00\x003\x05qq\xba\xbe7I\x83\x19\xb5\xdb\xef\x9c\xcc6\x01\x00\x00\x00\x02\x00\x01\x00u!\xc8QN\x84PG\xb0\xd8\xec%UU\xbc\x06\x01\x00\x00\x00,\x1c\xb7l\x12\x98@E\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00'}
_pad: {0}
pad: {''}
_sec_trailer: {0}
sec_trailer: {''}
auth_dataLen: {0}
auth_data: {''}

MSRPCBind
max_tfrag: {5840}
max_rfrag: {5840}
assoc_group: {0}
ctx_num: {3}
Reserved: {0}
Reserved2: {0}
_ctx_items: {132}
ctx_items: {u!ǑNPG°٬%UU¼].+H`u!ǑNPG°٬%UU¼3qqº¾7Iµܯʶu!ǑNPG°٬%UU¼,·l@E}
('RPC Bind Request:', None, None)

MSRPCBindAck
ver_major: {5}
ver_minor: {0}
type: {12}
flags: {19}
representation: {16}
frag_len: {108}
auth_len: {0}
call_id: {2}
max_tfrag: {5840}
max_rfrag: {5840}
assoc_group: {274972479}
SecondaryAddrLen: {5}
SecondaryAddr: {'1688'}
Pad: {''}
ctx_num: {3}
ctx_items: {'\x00\x00\x00\x00\x04]\x88\x8a\xeb\x1c\xc9\x11\x9f\xe8\x08\x00+\x10H`\x02\x00\x00\x00\x00\x00\x00\x003\x05qq\xba\xbe7I\x83\x19\xb5\xdb\xef\x9c\xcc6\x01\x00\x00\x00\x03\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}
sec_trailer: {''}
auth_data: {''}
pad: {''}
pduData: {''}
('RPC Bind Response:', None)
('RPC Bind Response Bytes:', '05000c13100000006c00000002000000d016d0163fbf631005003136383800000300000000000000045d888aeb1cc9119fe808002b104860020000000000000033057171babe37498319b5dbef9ccc3601000000030003000000000000000000000000000000000000000000')
RPC bind acknowledged.
XshellNo data received!
Connection closed: 127.0.0.1:5239
Connection accepted: 127.0.0.1:5240
No data received!
Connection closed: 127.0.0.1:5240
Connection accepted: 127.0.0.1:5241
RPC bind request received.
('RPC Bind Request Bytes:', '05000b1310000000a000000002000000d016d0160000000003000000000001007521c8514e845047b0d8ec255555bc0601000000045d888aeb1cc9119fe808002b10486002000000010001007521c8514e845047b0d8ec255555bc060100000033057171babe37498319b5dbef9ccc3601000000020001007521c8514e845047b0d8ec255555bc06010000002c1cb76c12984045030000000000000001000000')

MSRPCHeader
ver_major: {5}
ver_minor: {0}
type: {11}
flags: {19}
representation: {16}
frag_len: {160}
auth_len: {0}
call_id: {2}
dataLen: {144}
pduData: {'\xd0\x16\xd0\x16\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x01\x00u!\xc8QN\x84PG\xb0\xd8\xec%UU\xbc\x06\x01\x00\x00\x00\x04]\x88\x8a\xeb\x1c\xc9\x11\x9f\xe8\x08\x00+\x10H`\x02\x00\x00\x00\x01\x00\x01\x00u!\xc8QN\x84PG\xb0\xd8\xec%UU\xbc\x06\x01\x00\x00\x003\x05qq\xba\xbe7I\x83\x19\xb5\xdb\xef\x9c\xcc6\x01\x00\x00\x00\x02\x00\x01\x00u!\xc8QN\x84PG\xb0\xd8\xec%UU\xbc\x06\x01\x00\x00\x00,\x1c\xb7l\x12\x98@E\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00'}
_pad: {0}
pad: {''}
_sec_trailer: {0}
sec_trailer: {''}
auth_dataLen: {0}
auth_data: {''}

MSRPCBind
max_tfrag: {5840}
max_rfrag: {5840}
assoc_group: {0}
ctx_num: {3}
Reserved: {0}
Reserved2: {0}
_ctx_items: {132}
ctx_items: {u!ǑNPG°٬%UU¼].+H`u!ǑNPG°٬%UU¼3qqº¾7Iµܯʶu!ǑNPG°٬%UU¼,·l@E}
('RPC Bind Request:', None, None)

MSRPCBindAck
ver_major: {5}
ver_minor: {0}
type: {12}
flags: {19}
representation: {16}
frag_len: {108}
auth_len: {0}
call_id: {2}
max_tfrag: {5840}
max_rfrag: {5840}
assoc_group: {274972479}
SecondaryAddrLen: {5}
SecondaryAddr: {'1688'}
Pad: {''}
ctx_num: {3}
ctx_items: {'\x00\x00\x00\x00\x04]\x88\x8a\xeb\x1c\xc9\x11\x9f\xe8\x08\x00+\x10H`\x02\x00\x00\x00\x00\x00\x00\x003\x05qq\xba\xbe7I\x83\x19\xb5\xdb\xef\x9c\xcc6\x01\x00\x00\x00\x03\x00\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'}
sec_trailer: {''}
auth_data: {''}
pad: {''}
pduData: {''}
('RPC Bind Response:', None)
('RPC Bind Response Bytes:', '05000c13100000006c00000002000000d016d0163fbf631005003136383800000300000000000000045d888aeb1cc9119fe808002b104860020000000000000033057171babe37498319b5dbef9ccc3601000000030003000000000000000000000000000000000000000000')
RPC bind acknowledged.
No data received!
Connection closed: 127.0.0.1:5241
XshellConnection accepted: 127.0.0.1:5242
No data received!
Connection closed: 127.0.0.1:5242
No data received
ThunderEX commented 5 years ago

I tested it myself and don't find any problem. Can you provide OS version, python interpreter (CPython or pypy or micropython), python version of the server and version of Windows on your client computer?

MoeGakuen commented 5 years ago

Windows OS version: 10.0.17134.441(1803) Python version for Linux(Centos7): 2.7.5

There is no problem using 87384a0e649a41b8e7ac031d5ab1a1729aa0dc77 or older versions.

ThunderEX commented 5 years ago

I can reproduce your issue now. I'll try fix the issue. Thanks for feedback!

ThunderEX commented 5 years ago

Hi @MoeGakuen I commit 758e616d6f9cd5dea6a14d6e4ad2c02e9402ecaf and I've tested myself. Could you please check if it resolve your problem?

MoeGakuen commented 5 years ago

Thank, It is now running normally without any problems.