RDP录像不再记录安全协议规格。

pull/175/head^2
Apex Liu 2019-09-02 03:44:08 +08:00
parent db0990d8c2
commit f5b00ca02a
1 changed files with 42 additions and 46 deletions

View File

@ -21,8 +21,7 @@
// 录像文件头(随着录像数据写入,会改变的部分)
typedef struct TS_RECORD_HEADER_INFO
{
typedef struct TS_RECORD_HEADER_INFO {
ex_u32 magic; // "TPPR" 标志 TelePort Protocol Record
ex_u16 ver; // 录像文件版本目前为3
ex_u32 packages; // 总包数
@ -32,8 +31,7 @@ typedef struct TS_RECORD_HEADER_INFO
#define ts_record_header_info_size sizeof(TS_RECORD_HEADER_INFO)
// 录像文件头(固定不变部分)
typedef struct TS_RECORD_HEADER_BASIC
{
typedef struct TS_RECORD_HEADER_BASIC {
ex_u16 protocol_type; // 协议1=RDP, 2=SSH, 3=Telnet
ex_u16 protocol_sub_type; // 子协议100=RDP-DESKTOP, 200=SSH-SHELL, 201=SSH-SFTP, 300=Telnet
ex_u64 timestamp; // 本次录像的起始时间UTC时间戳
@ -48,15 +46,15 @@ typedef struct TS_RECORD_HEADER_BASIC
char client_ip[40]; // 客户端IP
// RDP专有
ex_u8 rdp_security; // 0 = RDP, 1 = TLS
// // RDP专有
// ex_u8 rdp_security; // 0 = RDP, 1 = TLS
ex_u8 _reserve[512 - 2 - 2 - 8 - 2 - 2 - 64 - 64 - 40 - 40 - 2 - 40 - 1 - ts_record_header_info_size];
// ex_u8 _reserve[512 - 2 - 2 - 8 - 2 - 2 - 64 - 64 - 40 - 40 - 2 - 40 - 1 - ts_record_header_info_size];
ex_u8 _reserve[512 - 2 - 2 - 8 - 2 - 2 - 64 - 64 - 40 - 40 - 2 - 40 - ts_record_header_info_size];
}TS_RECORD_HEADER_BASIC;
#define ts_record_header_basic_size sizeof(TS_RECORD_HEADER_BASIC)
typedef struct TS_RECORD_HEADER
{
typedef struct TS_RECORD_HEADER {
TS_RECORD_HEADER_INFO info;
TS_RECORD_HEADER_BASIC basic;
}TS_RECORD_HEADER;
@ -66,8 +64,7 @@ typedef struct TS_RECORD_HEADER
// 一个数据包的头
typedef struct TS_RECORD_PKG
{
typedef struct TS_RECORD_PKG {
ex_u8 type; // 包的数据类型
ex_u32 size; // 这个包的总大小(不含包头)
ex_u32 time_ms; // 这个包距起始时间的时间差毫秒意味着一个连接不能持续超过49天
@ -76,8 +73,7 @@ typedef struct TS_RECORD_PKG
#pragma pack(pop)
class TppRecBase
{
class TppRecBase {
public:
TppRecBase();
virtual ~TppRecBase();