From c1939dca2b16dd9a39a394694ab8c11a46eabff2 Mon Sep 17 00:00:00 2001 From: "Marcos S. Bajo" Date: Sun, 28 Nov 2021 02:01:32 +0100 Subject: [PATCH] Update README.md --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eb4e25c..7c601f4 100644 --- a/README.md +++ b/README.md @@ -1 +1,24 @@ -# TFG \ No newline at end of file +# TFG +## Build and run +```bash +cd src +make +sudo ./bin/xdp_filter -t +``` +Network interface used for PoC: lo + +## PoC 0 - Modifing incoming traffic +### Option 1: With netcat +Terminal 1: +```bash +nc -l 9000 +``` +Terminal 2: +```bash +echo -n "XDP_PoC_0" | nc 127.0.0.1 9000 +``` +### Option 2: With the in-built client +```bash +cd src/client +sudo ./injector -S 127.0.0.1 +```