News for hackers. Stuff that matters.
Re:Intercepting Zoom's encrypted data with BPF by jeroenhd on Thursday September 10, 2020 @02:55PM (#24435394)
I was surprised to see hooking code like this being written in Rust. I've come to expect C sample code for purposes like these, so it's nice to see that there are actually alternatives when it comes to intercepting function calls and extracting data from a process.
Re:Intercepting Zoom's encrypted data with BPF by luizfelberti on Thursday September 10, 2020 @03:59PM (#24435970)
The people from Cilium (the k8s service mesh) launched this website[0] recently that lists a few tools from the landscape, and I also had the same pleasant surprise to find these things out this week

I thought we were still tied to `bcc` and that python frontend thingy, but I'm glad the ecosystem has evolved significantly while I was not paying attention! It's kinda like finding a $20 in your back pocket that you didn't know was there when you put your pants on...

[0] https://ebpf.io/

Re:Intercepting Zoom's encrypted data with BPF by dharmab on Thursday September 10, 2020 @02:58PM (#24435430)
Other options include bpftrace[1] or C, Python or Lua via BCC[2]

1: https://github.com/iovisor/bpftrace

2: https://github.com/iovisor/bcc

Re:Intercepting Zoom's encrypted data with BPF by yconfiscator on Thursday September 10, 2020 @05:29PM (#24436751)
I think what makes redbpf stands out is that the other libraries allow you to write the user-space code in Python or Lua etc, but then the kernel code must still be written in C and gets compiled with clang.

In redbpf we let you write the kernel code in Rust as well, and then we have our own LLVM based toolchain to compile that to BPF bytecode.

bpftrace is similar to redbpf in approach, in that it lets you use a DSL instead of C.

Re:Intercepting Zoom's encrypted data with BPF by BobbyJo on Thursday September 10, 2020 @03:11PM (#24435538)
Lua is the most common language I had never heard about before dealing with BPF. It gets embedded in a surprising array of technologies.
Re:Intercepting Zoom's encrypted data with BPF by phs on Thursday September 10, 2020 @06:52PM (#24437395)
That's most of what lua's purpose is: to be a reasonably pleasant and featureful language that is dead easy to embed in larger systems that want some kind of scripting or macros.
Re:Intercepting Zoom's encrypted data with BPF by mhh__ on Thursday September 10, 2020 @03:10PM (#24435533)
When you get past the layers of old and dead documentation around it, the eBPF subsystem is fairly easy to target as long as you can call C, topologically at least.