Bypass-Snapchat-SSL-Certificate-Pinning icon indicating copy to clipboard operation
Bypass-Snapchat-SSL-Certificate-Pinning copied to clipboard

UnicodeDecodeError: 'charmap' codec can't decode byte

Open shadowzoom opened this issue 6 years ago • 1 comments

Im getting in output: "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\python.exe" frida_spawn.py burp.cer pid: 21764 [*] Intercepting ... Traceback (most recent call last): File "frida_spawn.py", line 33, in script.post({'type': 'input', 'payload': file.read()}) File "C:\Users\Admin\AppData\Local\Programs\Python\Python37-32\lib\encodings\cp1251.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 758: character maps to

Any help please?

shadowzoom avatar Feb 24 '19 05:02 shadowzoom

This sounds to me like you're using python 3 even though this script is built to be executed with python 2. Do you get the same output with python 2?

a better idea: Is your certificate indeed in PEM format? Otherwise how come you have \x98 in the file? It should be mostly base64.

tomer8007 avatar Mar 03 '19 18:03 tomer8007