You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On some real mobile devices with android 12 , it may encountering saveMasterSecretBSSL panic when running ecapture.
It will say
panic: runtime error: slice bounds out of range [:1163089247] with length 48
goroutine 38 [running]:
ecapture/user/module.(*MOpenSSLProbe).saveMasterSecretBSSL(0x400011cb00, 0x40000c2600)
/datadisk/ecapture/ecapture/user/module/probe_openssl.go:620 +0x88c
ecapture/user/module.(*MOpenSSLProbe).Dispatcher(0x0?, {0x5b3180?, 0x40000c2600?})
/datadisk/ecapture/ecapture/user/module/probe_openssl.go:716 +0x1b4
ecapture/user/module.(*Module).Dispatcher(0x400011cb00, {0x5b3180, 0x40000c2600})
/datadisk/ecapture/ecapture/user/module/imodule.go:304 +0x80
ecapture/user/module.(*Module).perfEventReader.func1()
/datadisk/ecapture/ecapture/user/module/imodule.go:231 +0x21c
created by ecapture/user/module.(*Module).perfEventReader
/datadisk/ecapture/ecapture/user/module/imodule.go:199 +0x170
That's because mobile oem sticks with android12-release branch on android BoringSSL, 'struct bssl::SSL_HANDSHAKE' has no member named 'hints'.
root@e38136079f24:/datadisk/ecapture/ecapture# /bin/bash ./utils/boringssl_offset_1.1.1.sh
/datadisk/ecapture/ecapture/deps/boringssl /datadisk/ecapture/ecapture
Generating /datadisk/ecapture/ecapture/kern/boringssl_1_1_1_kern.c
In file included from /usr/include/strings.h:23,
from /usr/include/string.h:462,
from ./src/ssl/../crypto/internal.h:117,
from ./src/ssl/internal.h:163,
from offset.c:18:
offset.c: In function 'int main()':
offset.c:37:28: error: 'struct bssl::SSL_HANDSHAKE' has no member named 'hints'
37 | X(bssl::SSL_HANDSHAKE, hints) \
| ^~~~~
offset.c:37:5: note: in expansion of macro 'X'
37 | X(bssl::SSL_HANDSHAKE, hints) \
| ^
offset.c:70:5: note: in expansion of macro 'SSL_STRUCT_OFFSETS'
70 | SSL_STRUCT_OFFSETS
| ^~~~~~~~~~~~~~~~~~
Solution:
Recompile ecapture with this boringssl_1_1_1_kern.c for branch android12-release on android BoringSSL:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
On some real mobile devices with android 12 , it may encountering saveMasterSecretBSSL panic when running ecapture.
It will say
That's because mobile oem sticks with android12-release branch on android BoringSSL, 'struct bssl::SSL_HANDSHAKE' has no member named 'hints'.
Solution:
Recompile ecapture with this boringssl_1_1_1_kern.c for branch android12-release on android BoringSSL:
https://github.com/HorseLuke/ecapture/blob/gki-1.0-android11-5.4-android12-5.4/kern/boringssl_1_1_1_kern.c
Commit Log:
https://github.com/HorseLuke/ecapture/commits/gki-1.0-android11-5.4-android12-5.4/kern/boringssl_1_1_1_kern.c
And this is the special modified code for generate such boringssl_1_1_1_kern.c:
HorseLuke@49330bf
Beta Was this translation helpful? Give feedback.
All reactions