From 26de4ce302e61d47f794e1f9880be9e2718dd047 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 31 Dec 2025 02:43:10 +0800 Subject: added future stuff to do --- README.md | 18 ++++++++++++++++-- packet-detector/src/.main.rs.swp | Bin 0 -> 16384 bytes 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 packet-detector/src/.main.rs.swp diff --git a/README.md b/README.md index 6a481a4..f646906 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,26 @@ XDP program that prints "hello world" when detecting "hell0123" in packets on enp1s0. # this has been moved to automated testing! in run_test.sh in the root dir! this file is just for documenting the basic stuff of what happens -## Build & Run +#todo: +make the design of port lo and port hi better +figure out how this structure gets parsed and how to make my own equivalent + fn schemes() -> Vec { + rustls::crypto::ring::default_provider() + .signature_verification_algorithms + .supported_schemes() +make it such that i dont block the ip immediately, allow for % number of bad requests from that ip address and then block it + make this test from a separate ip address instead of localhost! so this feature can be made +make a directory where it reads pem files, checks their validity, and then adds them to the list of allowed certs. +userspace loop has too much indetation/ nested stuff. make this design better? +make error checking better? anyhow or something like that +add script for benchmarking! normal userspace. maybe remove the test.sh? and use rust-native testing? so cargo run test or summat? +what abotu TC hooks instead of XDP? + +# ./build.sh # sudo ./target/release/packet-detector -## Test sudo tcpdump -i enp1s0 -X udp port 9999 echo "hell0123" | nc -u 192.168.122.154 9999 diff --git a/packet-detector/src/.main.rs.swp b/packet-detector/src/.main.rs.swp new file mode 100644 index 0000000..6037596 Binary files /dev/null and b/packet-detector/src/.main.rs.swp differ -- cgit