-
Notifications
You must be signed in to change notification settings - Fork 5
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
The TUI closes after entering credentials #6
Comments
Hi! Can you apply the attached patch? With this patch, storytel-tui prints the response of Storytel's servers to the stderr. This way, we can see the HTTP response code. Be careful, the response also includes your password hash. I can help you to apply the patch and read the stderr if you need. ⬇️ diff.txt |
how do I apply that? Just copy paste it in the terminal? |
Nevermind I think I edited it correctly, logging in however doesn't output anything. How do I read the stderr? |
You can read the stderr redirecting it to a file. For example: run |
Alright, sorry i'm not really experienced with rust. Here is the output:
|
Could you temporarily change your password to the most simple password possible and try again? To see if storytel-tui is not handling correctly some character. |
I just tried with a 10 letter password, no special characters or capitalization. The error message stays the same |
Could you capture the login process of the phone app with mitmproxy (https://mitmproxy.org/) and see it use the same API? |
So the hash sent by storytel-tui and the hash sent by the iOS app are different, right? |
Yep, its twice as long actually |
I have been able to reproduce the bug! It seems that is related to the password length. When I set a pass of 10 char length it fails, but it works with 16 char length. Now that I can reproduce the bug, I should be able to fix it. It is probably in password_crypt.rs. In the meanwhile, you can try to set a 16 length pass. |
Okay will do! The password I used before trying one of length 10 was 13 characters long. |
Thank you for all your help! ❤️ |
Thank you for responding to the issue and helping! Also even with a password of length 17 (using a capital letter and a special character) the bug seems to occur. I am fine with sharing some of the passwords I have tried seeing how they are not my real password if you need those for testing! |
Oh btw, how did you reverse engineer their password hash? |
Decompiling Storytel android app with jadx and with the help of a friend 😄 |
Oh wow thats a lot of effort! |
I uploaded the fix to the repo Now it should work with any password length. Let me know if it works for you. |
The login is all working! I can reach my bookshelf and see my books. However, when trying to play a book nothing happens and when I try to pause it afterwards it errors (forwards, backwards and exit all "work" without crashing). This is the error I get when clicking pause, no error is given when pressing play
|
Great!
Which distro are you using? |
I am using Manjaro with Plasma as DE |
Do you have installed mpv? You can also try storytel-tui aur package: https://aur.archlinux.org/packages/storytel-tui-git. |
Yea i have MPV installed, ill try the package! |
The package has the same issue sadly. I have MPV installed fairly certain because I can start the app, but do I maybe need some other version? |
Can you run |
Here you go:
|
Can you repeat it with I forgot that the binary installed from AUR has the debug symbols stripped. |
Oh yea here you go:
|
I am going to move this bug to a new issue. |
Hi! After running and entering my credentials, the TUI just closes without any errors.
Is there a way I can fix this or attach a debug log?
The text was updated successfully, but these errors were encountered: