mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-30 13:13:07 +08:00
Added new kprobe to the filesystem ebpf section. Now receiving read events, and storing them in a map for later use, along with a reference to the user-space memory buffer
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <linux/if_ether.h>
|
||||
#include <linux/if.h>
|
||||
#include <linux/limits.h>*/
|
||||
#include "newnewvmlinux.h"
|
||||
#include "headervmlinux.h"
|
||||
|
||||
/* BOUND CHECKING*/
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <linux/bpf.h>*/
|
||||
#include <bpf/bpf_endian.h>
|
||||
#include <bpf/bpf_helpers.h>
|
||||
#include "newnewvmlinux.h"
|
||||
#include "headervmlinux.h"
|
||||
|
||||
/**
|
||||
* IP checksum calculation.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/*#include <linux/tcp.h>
|
||||
#include <linux/ip.h>*/
|
||||
#include "newnewvmlinux.h"
|
||||
#include "headervmlinux.h"
|
||||
|
||||
static __always_inline int get_tcp_src_port(struct tcphdr *tcp){
|
||||
return bpf_ntohs(tcp->source);
|
||||
|
||||
Reference in New Issue
Block a user