saleemrashid / frida-sslkeylog

Frida tool to dump an NSS Key Log for Wireshark, from a process using dynamically linked OpenSSL (or BoringSSL)
109 stars 22 forks source link

frida_16.1.3: ASN1 decode failed on b'xxxxxxx' #5

Open rburcham opened 1 year ago

rburcham commented 1 year ago

This script worked reliably with frida 12.2 to frida 16.0.8 (February 2023). I've recently updated frida_server and frida_tools to 16.1.3, and now the script cannot decode the large ASN1 blobs.

wcwidth, prompt_toolkit, _frida, frida and frida-tools all took updates...

Debug pointers welcome.

itstartstosnow commented 1 year ago

I am also using the latest version of Frida. I also had some errors in decoding so I used another library asn1crypto to decode (code in my fork https://github.com/itstartstosnow/frida-sslkeylog). It solved my pyasn1.error.PyAsn1Error: Read 1236 bytes instead of expected 3417 error.

But I still get the error ValueError: Insufficient data - 79 bytes requested but only 11 available. This error also occurs when using pyans1, pyasn1.error.SubstrateUnderrunError: 68-octet short. I'm not sure how to fix it...