Skip to content

Instantly share code, notes, and snippets.

@jsturtevant
Last active October 1, 2022 00:18
Show Gist options
  • Save jsturtevant/f131c4bf6963da55be96eeac1c26ad01 to your computer and use it in GitHub Desktop.
Save jsturtevant/f131c4bf6963da55be96eeac1c26ad01 to your computer and use it in GitHub Desktop.
eBPF research

learning

tools

https://www.browserling.com/tools/dec-to-ip

windows

Windows connect sample:

to update

crazy idea to load windows ebpf programs with go

ebpf attach: https://github.com/microsoft/ebpf-for-windows/blob/e4ccdc8b1c1a927077b91f613a44a73de5018b39/libs/api/libbpf_program.cpp#L170

link ebpf: https://github.com/microsoft/ebpf-for-windows/blob/f93f0d58ee08aa5cdea0fea5d895df7b44d3d973/libs/api/ebpf_api.cpp#L965

which finally calls invoke_ioctl https://github.com/microsoft/ebpf-for-windows/blob/f93f0d58ee08aa5cdea0fea5d895df7b44d3d973/libs/api/ebpf_api.cpp#L1003

invoke_ioctl - https://github.com/microsoft/ebpf-for-windows/blob/17379737cf7c4383ef03c6eeedab93e9a9b2b934/libs/api_common/device_helper.hpp which calls deviceio sys call: https://github.com/microsoft/ebpf-for-windows/blob/17379737cf7c4383ef03c6eeedab93e9a9b2b934/libs/thunk/windows/platform.cpp#L49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment