Better HN
topnewbestaskshowjobs
Log inSign up

yconfiscator

17 karma · joined Sep 8, 2020 (6y ago) · 8 submissions

Submissions

1.

Adding BPF target support to the Rust compiler(confused.ai ↗)

1 points · by yconfiscator · 5y ago · discuss

comment 6y ago · link · parent

Thank you I can't believe this had to be said explicitly.

comment 6y ago · link · parent

Thank you! Mind I only tested on latest ubuntu and fedora so feel free to DM me on twitter if you run into issues.

comment 6y ago · link · parent

That was just the quick and naive way I went for because I didn't want to download new tools, but there's many other options.

The easiest way if you have a capable debugger is probably to look for SSL strings/error codes in rodata and see where they're referenced.

Or IDA can even output C code that is very close to the original.

comment 6y ago · link · parent

Since the Zoom TOS explicitly forbid reverse engineering, sadly it isn't so easy.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

Writing a toy ad blocker is actually on my todo list :)

There's just so many things you can so. The original goal of the post was to tamper with zoom's attention tracking for example (which was a field in one of their protobuf payloads).

comment 6y ago · link · parent

Glad you liked it!