李肇林臺灣大學:資訊工程學研究所朱仕任Chu, Shih-JenShih-JenChu2007-11-262018-07-052007-11-262018-07-052005http://ntur.lib.ntu.edu.tw//handle/246246/54086Microsoft所提供的Remote Desktop Protocol (RDP)讓我們可以透過網路對遠端的電腦進行操作輸入與螢幕顯示。它支援許多節省網路頻寬的機制,例如資料壓縮、點陣圖的快取等等。我們將利用這些特性開發一個遠端螢幕錄製系統。 目前,各式各樣的螢幕錄製軟體充斥,然而,卻都普遍存在儲存空間過大、畫面品質不佳與執行效能低落等問題。相形之下,本論文所提出的遠端螢幕錄製系統將兼具輸出品質與效率。The Microsoft Remote Desktop Protocol (RDP) is used to control the screen activities of a remote computer. The RDP supports various mechanisms to reduce the amount of data transmitted over low-bandwidth network connection, such as data compression, caching of bitmaps, etc. We are going to use all these features to develop a remote screen recording system. Presently, a variety of screen recording tools are available. However, most of these systems have problems in poor output quality, large storage requirement and low performance. Comparatively, the remote screen recording system we developed produces excellent output quality without significant efficiency reduction.1 緒論-1- 2 遠端桌面介紹-3- 2.1 The Protocol Stack-3- 2.2 連線資料輸出、入路徑-4- 2.2.1 輸入路徑-4- 2.2.2 輸出路徑-4- 2.3 安全機制-5- 2.3.1 交換Random Number-5- 2.3.2 產生Session Key-7- 2.3.3 加、解密與訊息認證-8- 3 系統設計-10- 3.1 系統架構-11- 3.2 系統概念-12- 3.2.1 過濾並儲存Session封包-12- 3.2.2 只記錄Server端送出的封包-14- 3.2.3 錄製-15- 3.2.4 播放-15- 3.3 設計細節-17- 3.3.1 如何突破RDP的安全機制-17- 3.3.1.1 Session封包必須被解密-17- 3.3.1.2 如何產生Session Key-21- 3.3.1.2.1 解密儲存的封包-21- 3.3.1.2.2 重新加密解開後的封包-23- 3.3.2 記錄的封包中不包含滑鼠移動資訊-25- 3.3.3 如何克服斷線問題-25- 3.3.4離線播放-27- 4.系統建置-29- 4.1 建置平臺-29- 4.1.1 軟體-29- 4.1.2 硬體-29- 4.2 系統模組-30- 4.2.1 主程式-30- 4.2.2 RDP Proxy模組-31- 4.2.3 RDP Daemon模組-31- 4.3 系統運作流程-32- 4.3.1 主程式執行流程-32- 4.3.2 RDP Proxy執行流程-34- 4.3.3 RDP Daemon執行流程-35- 4.4 實作細節-36- 4.4.1 錄製-36- 4.4.1.1 記錄Server送出的封包-37- 4.4.1.2 置換Server Public Key-38- 4.4.1.3 記錄Random Number-39- 4.4.1.4 錄製滑鼠游標-40- 4.4.2 播放-41- 4.4.2.1 同步播放滑鼠游標-42- 4.4.2.2 連往本地端的RDP Daemon-42- 5 系統比較-43- 5.1 測試環境-43- 5.1.1 軟體-43- 5.1.2 硬體-43- 5.2 比較結果-44- 6 未來展望-46- 參考文獻-47-455039 bytesapplication/pdfen-US螢幕錄製遠端桌面screen recordingremote desktop以RDP封包擷取技術為基礎之遠端螢幕錄製系統A Remote Screen Recording System based on RDP Packet Capturingthesishttp://ntur.lib.ntu.edu.tw/bitstream/246246/54086/1/ntu-94-R92922064-1.pdf