- Try the Python 'Hello World' (Lesson 1) example here
- Try writing your own eBPF program with the 'sys_sync' (Lesson 2) example here
- Try the Python 'bitehist' (Lesson 9) example here
- Now it's time to try writing your own tool, try the 'disklatency' (Lesson 10) tutorial here
- Try the Python 'disksnoop' (Lesson 6) example here
- Now modify the program to print which Task/ PID is interacting with the disk
- Try running the tcpv4connect.py script in the tracing folder
- Make a copy of this program and add functionality to print when a TCP connection is closed (Hint: You can find the available tracing funtions in
/sys/kernel/debug/tracing/available_filter_functions
)
- Write a program to detect a DDOS (More than 1000 packets in 1000000ns) coming to port TCP/80 from the "localhost" source-address by attaching a program to a raw socket (
attach_raw_socket()
)
Hints:
- Use the
mtr
program to test your code:sudo yum install mtr
- Look at the dns_matching.py and dddos.py files