Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

How to register a new device? #58

Closed
ambitionphp opened this issue Dec 4, 2018 · 13 comments
Closed

How to register a new device? #58

ambitionphp opened this issue Dec 4, 2018 · 13 comments
Labels
enhancement New feature or request help wanted Extra attention is needed wontfix This will not be worked on

Comments

@ambitionphp
Copy link

If you try to generate fresh device details you're unable to login successfully until device is registered with api it seems. You can use the same device for multiple accounts however you hit request limits extremely quickly. I see that the app makes an api call to register a new device however the data it posts seems to be encrypted. any idea on what is being sent over to the api during this post call?

@scrapewww
Copy link

I'm also interested in knowing this. I'm having the same issue. When I provide new device details, I get prompted for captcha on every request however I do not know how to bypass the captcha because the error just says "captcha field empty" or something along those lines. If I go back to device details that have been registered within the app everything works fine. I noticed an API call the first time you open the app on a new device which registers the device and returns device id, iid, etc however it posts encrypted data to retrieve that and I can't figure out what that data is!

@szdc szdc added enhancement New feature or request help wanted Extra attention is needed labels Dec 6, 2018
@dixakman
Copy link

dixakman commented Dec 9, 2018

Did anyone succeed?

@szdc szdc mentioned this issue Dec 10, 2018
@szdc
Copy link
Owner

szdc commented Dec 15, 2018

The data sent in when registering a device is gzipped and then encrypted using libttEncrypt.so if someone wants to take this further.

@dixakman
Copy link

It's clear. But what parameters does he transmit? What are the key parameters?

@yaizudamashii
Copy link

yaizudamashii commented Dec 27, 2018

Has anyone succeeded this? I also found out that the POST body is encrypted using ttEncrypt, but has anyone gotten the binary of it? The string it encrypts is quite complex, but it is a stringified JSON object/array of various parameters. I haven't fully figured out the contents of the JSON yet.

@yaizudamashii
Copy link

Ok I found the .so file in the apk. That apktool decompiler is great.

@Pilfer
Copy link

Pilfer commented Dec 27, 2018

@yaizudamashii @szdc Just a heads up, the function that encrypts the POST body looks likes a well-known encryption algorithm, but they committed the cardinal sin of rolling their own encryption by modifying it. On top of that, if you look at the JSON payload itself you'll find that they're using a native library to encode some of the values as well. It's not just one native encryption layer, but two. On top of that, the secondary encrypted value also contains hardware identifiers that are unique to your device and flags emulators. Eventually they're going to flag and disallow the methods everyone except me is using for the current cp/as/mas signing.

Jack, I shot you a follow on Twitter btw - username begins with "C". You should ping me your discord username, assuming you've got one.

Repository owner deleted a comment from omryan2991 Mar 3, 2019
@ch4kn
Copy link

ch4kn commented Feb 14, 2020

https://github.com/ch4kn/tiktok-device-register <= Tiktok Device Register

@ghost
Copy link

ghost commented Feb 24, 2020

Can Anyone Mention The Code Location Just Before The Device Id Being Encrypted ?

@jatankshirsagar
Copy link

I could identify until this point where the function calling device register is accepting 4 arguments

r3, r9, r2, r0 and out of which r2 - context

@NeuronButter
Copy link

https://github.com/ch4kn/tiktok-device-register <= Tiktok Device Register

Ok out of curiosity, I looked at that website, and quite literally I have no idea what it's for. I'm not gullible, it's 100% a scam, but I looked at the requests made by the site, and the site doesn't even get past CAPTCHA. I thought it might like send a username and password to a malicious server, but what's the point of that if it just never gets past CAPTCHA? Like for real, how much time did you spend on a hopeless website?

@DaAwesomeRazor
Copy link

https://github.com/ch4kn/tiktok-device-register <= Tiktok Device Register

Ok out of curiosity, I looked at that website, and quite literally I have no idea what it's for. I'm not gullible, it's 100% a scam, but I looked at the requests made by the site, and the site doesn't even get past CAPTCHA. I thought it might like send a username and password to a malicious server, but what's the point of that if it just never gets past CAPTCHA? Like for real, how much time did you spend on a hopeless website?

I tried it out, and you just gotta disable your adblocker

@szdc szdc added the wontfix This will not be worked on label Sep 1, 2021
@szdc
Copy link
Owner

szdc commented Sep 1, 2021

Closing as this project is no longer maintained.

@szdc szdc closed this as completed Sep 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

10 participants