Skip to content

Commit

Permalink
Merge pull request #375 from GoSecure/optional-virtual-channels
Browse files Browse the repository at this point in the history
Not longer assuming every connection will have VirtualChannels
  • Loading branch information
obilodeau committed Nov 26, 2021
2 parents 4edbae0 + fcf60e1 commit 8062864
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyrdp/mitm/SlowPathMITM.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,5 +109,6 @@ def onDemandActive(self, pdu: DemandActivePDU):
supported[Order.TS_NEG_DRAWNINEGRID_INDEX] = 0
orders.orderSupport = supported

pdu.parsedCapabilitySets[CapabilityType.CAPSTYPE_VIRTUALCHANNEL].flags = \
VirtualChannelCompressionFlag.VCCAPS_NO_COMPR
if CapabilityType.CAPSTYPE_VIRTUALCHANNEL in pdu.parsedCapabilitySets:
pdu.parsedCapabilitySets[CapabilityType.CAPSTYPE_VIRTUALCHANNEL].flags = \
VirtualChannelCompressionFlag.VCCAPS_NO_COMPR

0 comments on commit 8062864

Please sign in to comment.