Skip to content

Instantly share code, notes, and snippets.

View gptlang's full-sized avatar

gptlang

View GitHub Profile
#!/usr/bin/env python3
from struct import unpack
from bcc import BPF
from socket import if_indextoname
C_BPF_KPROBE = """
#include <net/sock.h>