oscie57 / tiktok-voice

Simple Python script to interact with the TikTok TTS API
515 stars 74 forks source link

Fixed TTS using headers #24

Closed AdamAtomus closed 1 year ago

AdamAtomus commented 1 year ago

You now need to authenticate with a sessionid generated by the app.

oscie57 commented 1 year ago

oh my god you are a legend

oscie57 commented 1 year ago

i have no idea how, if someone could write up how it works i can add a wiki

GnomedDev commented 1 year ago

How did you acquire this info? I've been trying to MITM for a while and cannot seem to certificate unpin.

AdamAtomus commented 1 year ago

This is great but it would be nice if there was a guide/tutorial on how to generate your own session id in the future

Yeah, you can get one using an emulator + httptoolkit someone says you need to use frida but it gives me the same sessionid.

matty45 commented 1 year ago

I'm glad it could be done in an emulator, not fond of putting that tiktok on my actual phone

matty45 commented 1 year ago

This is great but it would be nice if there was a guide/tutorial on how to generate your own session id in the future

Yeah, you can get one using an emulator + httptoolkit someone says you need to use frida but it gives me the same sessionid.

What emulator do you use?

AdamAtomus commented 1 year ago

This is great but it would be nice if there was a guide/tutorial on how to generate your own session id in the future

Yeah, you can get one using an emulator + httptoolkit someone says you need to use frida but it gives me the same sessionid.

What emulator do you use?

nox

matty45 commented 1 year ago

I've tried genymotion and android-86 to no avail

hugeblank commented 1 year ago

Permission to yoink and twist this for my shell script?

AdamAtomus commented 1 year ago

Permission to yoink and twist this for my shell script?

not stopping you :) though you should use your own sessionid

hugeblank commented 1 year ago

Thanks! I'll be looking into a way to get the session id directly through the command line as well. Will share any progress I have with that on discord.

frozenpandaman commented 1 year ago

@GnomedDev @matty45 I use mitmproxy to intercept device web traffic & grab an app-generated cookie/token in another application, and this can be done with an Android Studio emulator. You just need to install the cert at the root/system level.

https://docs.mitmproxy.org/stable/howto-install-system-trusted-ca-android/