mirror of
https://github.com/h3xduck/TripleCross.git
synced 2026-01-01 22:13:08 +08:00
19 lines
352 B
C
19 lines
352 B
C
|
|
#ifndef __BPF_INJECTION_H
|
||
|
|
#define __BPF_INJECTION_H
|
||
|
|
|
||
|
|
|
||
|
|
#include "headervmlinux.h"
|
||
|
|
|
||
|
|
#include <bpf/bpf_helpers.h>
|
||
|
|
#include <bpf/bpf_tracing.h>
|
||
|
|
#include <bpf/bpf_core_read.h>
|
||
|
|
|
||
|
|
#include "../../../common/constants.h"
|
||
|
|
|
||
|
|
SEC("uprobe/execute_command")
|
||
|
|
int uprobe_execute_command(struct pt_regs *ctx){
|
||
|
|
bpf_printk("UPROBE activated\n");
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif
|