Skip to content
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

panic on pixel 6 pro(android13) #553

Closed
boost2020 opened this issue May 25, 2024 · 1 comment · Fixed by #554
Closed

panic on pixel 6 pro(android13) #553

boost2020 opened this issue May 25, 2024 · 1 comment · Fixed by #554
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@boost2020
Copy link

Describe the bug
在开了oem,并且root后的真机pixel6pro上执行./ecapture tls -iwlan0 -k ./ecapture_openssl_key.log -m key后,打开华为应用商店panic

`2024-05-25T14:05:40Z ERR master secret length is too long, truncate to 64 bytes, but it may cause keylog file error length=79
panic: runtime error: index out of range [64] with length 64

goroutine 39 [running]:
github.com/gojue/ecapture/user/module.(*MOpenSSLProbe).mk13NullSecrets(_, _, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...}, ...)
/home/runner/work/ecapture/ecapture/user/module/probe_openssl.go:594 +0x124
github.com/gojue/ecapture/user/module.(*MOpenSSLProbe).bSSLEvent13NullSecrets(...)
/home/runner/work/ecapture/ecapture/user/module/probe_openssl.go:563
github.com/gojue/ecapture/user/module.(*MOpenSSLProbe).saveMasterSecretBSSL(0x4000459500, 0x4000a33400)
/home/runner/work/ecapture/ecapture/user/module/probe_openssl.go:504 +0x380
github.com/gojue/ecapture/user/module.(*MOpenSSLProbe).Dispatcher(0x0?, {0xe4e8a0?, 0x4000a33400?})
/home/runner/work/ecapture/ecapture/user/module/probe_openssl.go:630 +0x84
github.com/gojue/ecapture/user/module.(*Module).Dispatcher(0x4000459500, {0xe4e8a0, 0x4000a33400})
/home/runner/work/ecapture/ecapture/user/module/imodule.go:387 +0x144
github.com/gojue/ecapture/user/module.(*Module).perfEventReader.func1()
/home/runner/work/ecapture/ecapture/user/module/imodule.go:299 +0x178
created by github.com/gojue/ecapture/user/module.(*Module).perfEventReader in goroutine 1
/home/runner/work/ecapture/ecapture/user/module/imodule.go:267 +0x1e0`

To Reproduce
Steps to reproduce the behavior:

  1. adb shell
  2. su
  3. cd /data/local/tmp
  4. ./ecapture tls -iwlan0 -k ./ecapture_openssl_key.log -m key
  5. 打开华为应用商店

Expected behavior
it works

Screenshots
image

Linux Server/Android (please complete the following information):

  • Env: android真机
  • OS: pixel6 pro TQ3A.230805.001
  • Arch: aarch64
  • Kernel Version: 5.10(android 13)
  • Version: Linux localhost 5.10.157-android13-4-00003-g776d0a76f6aa-ab10208116 5.10.101 not support #1 SMP PREEMPT Thu May 25 12:11:12 UTC 2023 aarch64 Toybox

Additional context
浏览https网页没有问题

@boost2020
Copy link
Author

打开华为应用商店必现

@cfc4n cfc4n added bug Something isn't working invalid This doesn't seem right labels May 25, 2024
cfc4n added a commit that referenced this issue May 26, 2024
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n linked a pull request May 26, 2024 that will close this issue
cfc4n added a commit that referenced this issue May 26, 2024
Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants