2022-06-15 20:33:07 -04:00
|
|
|
# TripleCross
|
2022-06-23 22:01:50 +02:00
|
|
|
Instructions soon!
|
|
|
|
|
For now, you can read the paper at docs/ebpf_offensive_rootkit
|
|
|
|
|
<!---
|
2021-11-28 02:01:32 +01:00
|
|
|
## Build and run
|
|
|
|
|
```bash
|
|
|
|
|
cd src
|
|
|
|
|
make
|
2022-01-16 06:56:54 -05:00
|
|
|
sudo ./bin/kit -t <network interface>
|
2021-11-28 02:01:32 +01:00
|
|
|
```
|
|
|
|
|
Network interface used for PoC: lo
|
|
|
|
|
|
2021-11-28 02:01:56 +01:00
|
|
|
## PoC 0 - Modifying incoming traffic
|
2021-11-28 02:01:32 +01:00
|
|
|
### 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
|
|
|
|
|
```
|
2022-01-16 07:03:07 -05:00
|
|
|
|
|
|
|
|
------------------
|
|
|
|
|
## PoC 1 - Modifying arguments of read syscalls
|
|
|
|
|
```bash
|
|
|
|
|
echo "This won't be seen" > /tmp/txt.txt
|
|
|
|
|
cat /tmp/txt.txt
|
|
|
|
|
```
|
2022-06-23 22:01:50 +02:00
|
|
|
---!>
|