-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support exporting Viber stickers #146
Labels
enhancement
New feature or request
Comments
EDIT: udid is actually not necessary |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Added support for uploading Viber stickers in v2.9.0+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stem from #144
I have attempted to reverse engineer Viber Android app. To export Viber stickers, we need to get
member_id
andudid
, which should be the same for each user but not sure where they could be obtained. Even worse, we need to getm_token
, which is changed everytime when app is restarted, and I have no idea how I can automatically get it.This is best attempt for exporting Viber sticker, which
obviously won't workworks if you obtainmember_id
,m_token
andm_ts
and fill in:If anyone want to reverse the Android app, I recommend using PCAPdroid on rooted Android emulator with mitm addon, with MagiskTrustUserCerts. Jadx decompilation might also be useful.
We can also analyze Windows version of Viber, but I am not familiar with it. What makes matter worse, Viber Windows start to store database with
encrypted SQLCipherencryption using 128bit openssh private key(?) (Russian forum, use Google translate: https://4pda.to/forum/index.php?showtopic=714685&view=findpost&p=125818765), which means things likeudid
might be locked behind a database that is decrypted with unknown way.If someone has solution, please comment / submit PR, thank you.
To do:
member_id
?viber.db
in%appdata%/ViberPC/<phone_number>/viber.db
tableContact
columnMID
row withContactID
of1
viber.db
is encrypted with 128bit openssh private key(?) in Viber PC 19.4.0+viber.db
?member_id
, which I have proved to work. However dumping memory on different OS requires different method, and it is slow.m_token
?resources/lib/<architecture>/libVoipEngineNative.so
on Android, possiblygenerateSequence()
+/-handleSecureTokenRequest()
(?)aloha46.viber.com
followed by some random ip) using TCP, with communication encrypted by some wayudid
?sources.com.viber.voip.registration.x3.a
. Is udid still required if we create sticker pack from Viber PC?The text was updated successfully, but these errors were encountered: