Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions exploit.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
from pyrdp.parser import NegotiationRequestParser, NegotiationResponseParser, ClientConnectionParser, GCCParser, \
ServerConnectionParser
from pyrdp.mcs import MCSClientChannel
from pyrdp.logging import LOGGER_NAMES, SessionLogger
import logging

# Hard-coded constant
PAYLOAD_HEAD_ADDR = 0xfffffa8008711010 + 0x38
Expand All @@ -53,9 +55,10 @@ def __init__(self, _reactor: Reactor, host: str, port: int, ip: str, bport: int)
onDemandActive = self.onDemandActive,
onData = self.onSlowPathPDUReceived
)

logger = logging.getLogger(LOGGER_NAMES.MITM_CONNECTIONS)
log = SessionLogger(logger, "replay")
config = MITMConfig()
self.state = RDPMITMState(config)
self.state = RDPMITMState(config, log.sessionID)
self.extra_channels = []
self.name_to_id = {}
self.virt_layer = {}
Expand Down