Eltion / Tiktok-SSL-Pinning-Bypass

Bypass Tiktok SSL pinning on Android devices.
GNU General Public License v3.0
647 stars 163 forks source link

[BUG] Patching doesn't work for newer versions #53

Closed 64chevy closed 1 month ago

64chevy commented 1 month ago

Patching apk & libsscronet.so was working fine till tiktok version 36.5.4. Now it gives this error when we patch:

Patching: /Users/user/Documents/Tiktok-SSL-Pinning/temp/lib/arm64-v8a/libsysoptimizer.so
Extracting: lib/arm64-v8a/libsscronet.so
Finding function offset in /var/folders/sp/7hypjl2x14b8ps__m0pk28qw0000gn/T/lib/arm64-v8a/libsscronet.so
Traceback (most recent call last):
  File "/Users/user/Documents/Tiktok-SSL-Pinning/patch_apk.py", line 323, in <module>
    main()
  File "/Users/user/Documents/Tiktok-SSL-Pinning/patch_apk.py", line 312, in main
    fcn_offset = find_offset.find_function_from_apk(temp_apk, arch)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/Documents/Tiktok-SSL-Pinning/find_offset.py", line 58, in find_function_from_apk
    return find_function_offset(lib, arch)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/Documents/Tiktok-SSL-Pinning/find_offset.py", line 48, in find_function_offset
    return find_function_arm64(lib)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/Documents/Tiktok-SSL-Pinning/find_offset.py", line 12, in find_function_arm64
    offset = results[0]['offset']
             ~~~~~~~^^^
IndexError: list index out of range

Please fix it, thank you.

trantrongkim98 commented 1 month ago

Hi @64chevy, I fixed it at here #49

64chevy commented 1 month ago

Thank you so much!