-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EBPFProbeGoTLS module initialization failed. [skip it]. error:no symbol section #377
Comments
please upload more detail.. |
When compiling a Go program, please preserve the symbol table debug information, for example, remove |
root@localhost:/tmp/ecapture-v0.6.0-linux-x86_64# ./ecapture gotls --elfpath=/usr/local/piggo --pid=6085 |
I tested it, and the program is working fine. What is your environment like? Can you please upload the file for root@vm-server:/home/cfc4n/project/ecapture# bin/ecapture gotls -e /home/cfc4n/project/ecapture/tests/golang_https
tls_2023/07/16 10:17:43 ECAPTURE :: ecapture Version : linux_x86_64:--:[CORE]
tls_2023/07/16 10:17:43 ECAPTURE :: Pid Info : 21608
tls_2023/07/16 10:17:43 ECAPTURE :: Kernel Info : 5.15.108
tls_2023/07/16 10:17:43 EBPFProbeGoTLS module initialization
tls_2023/07/16 10:17:43 EBPFProbeGoTLS master key keylogger: ecapture_masterkey.log
tls_2023/07/16 10:17:43 ECAPTURE :: Module.Run()
tls_2023/07/16 10:17:43 EBPFProbeGoTLS UPROBE MODEL
tls_2023/07/16 10:17:43 EBPFProbeGoTLS eBPF Function Name:gotls_write_register, isRegisterABI:true
tls_2023/07/16 10:17:43 EBPFProbeGoTLS add uretprobe function :crypto/tls.(*Conn).Read, offset:0x104
tls_2023/07/16 10:17:43 EBPFProbeGoTLS add uretprobe function :crypto/tls.(*Conn).Read, offset:0x131
tls_2023/07/16 10:17:43 EBPFProbeGoTLS add uretprobe function :crypto/tls.(*Conn).Read, offset:0x1B2
tls_2023/07/16 10:17:43 EBPFProbeGoTLS add uretprobe function :crypto/tls.(*Conn).Read, offset:0x2FD
tls_2023/07/16 10:17:43 EBPFProbeGoTLS add uretprobe function :crypto/tls.(*Conn).Read, offset:0x330
tls_2023/07/16 10:17:43 EBPFProbeGoTLS add uretprobe function :crypto/tls.(*Conn).Read, offset:0x3AD
tls_2023/07/16 10:17:43 EBPFProbeGoTLS add uretprobe function :crypto/tls.(*Conn).Read, offset:0x3CB
tls_2023/07/16 10:17:43 EBPFProbeGoTLS target all process.
tls_2023/07/16 10:17:43 EBPFProbeGoTLS target all users.
tls_2023/07/16 10:17:43 EBPFProbeGoTLS BPF bytecode filename:user/bytecode/gotls_kern.o
tls_2023/07/16 10:17:44 EBPFProbeGoTLS module started successfully.
^Ctls_2023/07/16 10:17:52 EBPFProbeGoTLS close.
tls_2023/07/16 10:17:52 EBPFProbeGoTLS close |
it work on v0.61 when i remove -ldflags "-w -s", like this: but it still can not work when I use -ldflags "-w -s"。 |
Can you test the official 'golang tls' client? https://github.com/gojue/ecapture/blob/master/tests/golang_https.go cd ecapture/tests/
go build golang_https.go
cd ../
./bin/ecapture gotls -e "tests/golang_https" |
it work! |
eCapture does not support ELF files without symbol section. You can manually search the offset of the |
./ecapture gotls --elfpath=/usr/local/piggo --pid=46196
tls_2023/07/07 15:20:01 ECAPTURE :: ecapture Version : linux_x86_64:0.6.0-20230702-44d2d47:5.15.0-1040-azure
tls_2023/07/07 15:20:01 ECAPTURE :: Pid Info : 46196
tls_2023/07/07 15:20:01 ECAPTURE :: Kernel Info : 5.15.99
tls_2023/07/07 15:20:01 EBPFProbeGoTLS module initialization failed. [skip it]. error:no symbol section
The text was updated successfully, but these errors were encountered: