Skip to content

库版本需要和bpf文件版本严格对应吗? #800

@fantasyplus

Description

@fantasyplus

Develop>./ecapture tls -m key --keylogfile sslkey_linux.log
2025-06-18T17:22:37+08:00 INF AppName="eCapture(旁观者)"
2025-06-18T17:22:37+08:00 INF HomePage=https://ecapture.cc
2025-06-18T17:22:37+08:00 INF Repository=https://github.com/gojue/ecapture
2025-06-18T17:22:37+08:00 INF Author="CFC4N [email protected]"
2025-06-18T17:22:37+08:00 INF Description="Capturing SSL/TLS plaintext without a CA certificate using eBPF. Supported on Linux/Android kernels for amd64/arm64."
2025-06-18T17:22:37+08:00 INF Version=linux_amd64:v1.0.2:6.8.0-1027-azure
2025-06-18T17:22:37+08:00 INF Listen=localhost:28256
2025-06-18T17:22:37+08:00 INF eCapture running logs logger=
2025-06-18T17:22:37+08:00 INF the file handler that receives the captured event eventCollector=
2025-06-18T17:22:37+08:00 INF listen=localhost:28256
2025-06-18T17:22:37+08:00 INF https server starting...You can upgrade the configuration file via the HTTP interface.
2025-06-18T17:22:37+08:00 INF Kernel Info=5.10.64 Pid=37087
2025-06-18T17:22:37+08:00 INF TruncateSize=0 Unit=bytes
2025-06-18T17:22:37+08:00 WRN Your environment is like a container. We won't be able to detect the BTF configuration.
If eCapture fails to run, try specifying the BTF mode. use -b 2 to specify non-CORE mode.
2025-06-18T17:22:37+08:00 INF BTF bytecode mode: CORE. btfMode=0
2025-06-18T17:22:37+08:00 INF master key keylogger has been set. eBPFProgramType=KeyLog keylogger=sslkey_linux.log
2025-06-18T17:22:37+08:00 INF module initialization. isReload=false moduleName=EBPFProbeOPENSSL
2025-06-18T17:22:37+08:00 INF Module.Run()
2025-06-18T17:22:37+08:00 INF origin versionKey="openssl 1.0.2u" versionKeyLower="openssl 1.0.2u"
2025-06-18T17:22:37+08:00 INF OpenSSL/BoringSSL version found Android=false library version="openssl 1.0.2u"
2025-06-18T17:22:37+08:00 INF openssl version is less than 1.0.* hookFunc=SSL_state oldHookFunc=SSL_in_before openssl version="openssl 1.0.2u"
2025-06-18T17:22:37+08:00 INF HOOK type:Openssl elf ElfType=2 binrayPath=/usr/lib64/libssl.so.1.1 masterHookFuncs=["SSL_get_wbio","SSL_state","SSL_do_handshake"]
2025-06-18T17:22:37+08:00 INF target all process.
2025-06-18T17:22:37+08:00 INF target all users.
2025-06-18T17:22:37+08:00 INF setupManagers eBPFProgramType=KeyLog
2025-06-18T17:22:37+08:00 INF BPF bytecode file is matched. bpfFileName=user/bytecode/openssl_1_0_2a_kern_core.o
2025-06-18T17:22:38+08:00 INF perfEventReader created mapSize(MB)=4
2025-06-18T17:22:38+08:00 INF module started successfully. isReload=false moduleName=EBPFProbeOPENSSL

openssl版本为library version="openssl 1.0.2u",但是ecapture匹配的是bpfFileName=user/bytecode/openssl_1_0_2a_kern_core.o。实测下来无法获取sslkey。

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions