News for hackers. Stuff that matters.
Re:Httptap: View HTTP/HTTPS requests made by any Linux program by alexflint on Monday February 03, 2025 @05:52PM (#42924500)
Unfortunately TLS happens inside the the application, not in the kernel, so using eBPF to hook syscalls to write won't help with TLS decryption.
Re:Httptap: View HTTP/HTTPS requests made by any Linux program by dgl on Monday February 03, 2025 @06:09PM (#42924670)
It is quite simple to use eBPF with uprobes to hook library calls, for example: https://github.com/iovisor/bcc/blob/master/tools/sslsniff.py

The downside is this doesn't work with anything not using OpenSSL, there are projects like https://github.com/gojue/ecapture which have interceptors for many common libraries, but the downside is that needs different code for each library.

I think providing a TLS certificate is fine for the use cases of the tool; most tools won't be doing certificate pinning, but ecapture does support Android where this is more likely.

Re:Httptap: View HTTP/HTTPS requests made by any Linux program by ranger_danger on Tuesday February 04, 2025 @12:07AM (#42928250)
But read and write syscalls are used by the application to do I/O on the sockets before/after the encryption, which can be intercepted. Or you can attach uprobes directly to the TLS library's own functions.