Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 4.17 KB

File metadata and controls

41 lines (25 loc) · 4.17 KB
graph LR
    PCAP_Orchestrator["PCAP Orchestrator"]
    TLS_Decryption_Handler["TLS Decryption Handler"]
    PCAP_Orchestrator -- "uses" --> TLS_Decryption_Handler
Loading

CodeBoardingDemoContact

Details

The pyrdp.convert subsystem is primarily responsible for processing and converting network capture (PCAP) files into a format suitable for RDP analysis and replay. The core of this subsystem revolves around the PCAP Orchestrator component, embodied by the PCAPConverter class. This orchestrator initiates the analysis by listing and filtering network sessions from a given PCAP file. For encrypted TLS streams, it leverages the TLS Decryption Handler component, represented by the TLSPDUStream class, to decrypt the traffic. The PCAP Orchestrator instantiates TLSPDUStream and feeds it the necessary session and master secret information, allowing the TLS Decryption Handler to expose the raw RDP data. This decrypted data is then processed further by the PCAP Orchestrator to generate the final output, ensuring that both plaintext and encrypted RDP communications can be effectively analyzed.

PCAP Orchestrator

This component acts as the high-level controller for processing PCAP files. It is responsible for iterating through network streams, identifying distinct sessions, applying filtering rules (e.g., source/destination exclusions), and orchestrating the processing of individual streams. It serves as the primary entry point for initiating PCAP analysis, delegating specific decryption and parsing tasks to other specialized components. Its role is fundamentally about managing the flow of data extraction from the PCAP.

Related Classes/Methods:

TLS Decryption Handler

This specialized component focuses on the critical task of handling and decrypting TLS-encrypted data streams embedded within PCAP files. Its core function is to expose the underlying RDP traffic by performing the necessary TLS decryption, thereby making the encrypted RDP data accessible for further analysis or replay by other pyrdp components. It acts as a vital processing unit for encrypted network data, enabling pyrdp to analyze secure RDP communications.

Related Classes/Methods: