-
Notifications
You must be signed in to change notification settings - Fork 31
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
[bug]: fails to get video links #193
Comments
This is the output |
For what it's worth, I am new to the script as well and I run into the same issue on NixOS and MacOS. For NixOS I am using the flake, and here is what it looks like running the command:
|
curl -s "https://keys4.fun" | tr -d '\n ' | sed -nE "s@.*\"rabbitstream\":\{\"keys\":\{\"v\":\"([^\"]*)\",\"h\":\"([^\"]*)\",\"b\":([0-9]*),\"agent\":\"([^\"]*)\",\"key\":\"([^\"]*)\".*@\1\t\2\t\3\t\4\t\5@p" | read -r v h b agent key
https://rabbitstream.net/ajax/v2/embed-4/getSources?id={}&v={}&h={}&b={} rabbitstream changed their encryption |
Hi does this works with windows too? I'm new in this and the command doesn't worked for me $ https://rabbitstream.net/ajax/v2/embed-4/getSources?id={}&v={}&h={}&b={}
[1] 750
bash: https://rabbitstream.net/ajax/v2/embed-4/getSources?id={}: No such file or directory
[2] 751
[3] 752
[1] Exit 127 https://rabbitstream.net/ajax/v2/embed-4/getSources?id={}
[2] Done v={}
[3]+ Done h={} This is the output i got |
that was just some pseudo code, ure supposed to replace |
yes, that is normal. also the encryption has changed again since my previous comment, so i need to wait for keys4.fun to update their stuff or look for another fix |
Honest and semi-offtopic question... because I do not remember how the keys variable/output looked like before the change. Assuming that you want key "b" from the output. Wouldn't it be easier to add jq as a dependency for the script and get it like so
|
i prefer avoiding additional unneeded deps |
During the weekend, I tried patching the script using jq to get the key parameters and add them to the fake url above. It failed with the same error as before. And today I saw how a kodi addon was patched so as to work again with the new decryption method. Oh my.... |
Hi, sorry but what r the values that i should replace |
corresponding values u can find on https://keys4.fun , tho its broken rn |
So, ur saying there's noway to use |
@1bn3mar @justchokingaround |
u also need to pass -A $agent as the user agent, without it it wont work. sure show me the python commit @pitsi |
I see... I will try it again when I have some time. As for the kodi addon, there is no commit for it, because the "change" is always a zip file that gets uploaded. But if you want, I can download both (old and new) and create a .patch file from them. |
the patch would be enough thx |
https://paste.debian.net/hidden/39332f7a/ Paste will be available for 7 days. |
thx i'll check it today |
@pitsi can u actually mention the repo pls? |
https://github.com/mbebe/blomqvist/tree/master/zips/plugin.video.fmoviesto Version 1.30 is the new one that works. |
I just tried it with agent parameter, e.g. The key parameter is probably needed, because somewhere the entire html code from vidcloud is parsed, but my brain cells are too few to figure out where. Here is a log in case it helps. |
@pitsi Yeah, to me this is a real brain teaser I'm no programmer by any means; I just don't know how to get the keys. |
What do you want me to explain? |
it's not the end. i'm just a bit busy at work atm, so i don't have time to reverse engineer everything and can only port an existing solution or use keys that would be updated regularly by someone. i looked at the python code and the problem is all of the decryption is done in it, it doesnt rely on any key provider. porting that to shell would take me more time than i have atm |
But there is a key (provider?) in that python code, at the variable named klucze. |
In conclusion PS: i don't get notified that's why i take too long. |
it's broken on my side not the user's. i should be able to come up with a fix soon tm |
What do you mean "tinkers with it"? What can be changed? |
@pitsi I mean the whole conversation between you and @justchokingaround i did not get one bit of it. |
Anyway's thank you all. |
@Dragon-Batch
|
@Ciarands if you want, i guess i consider my self experienced at making apis with flask in python so i think i could help you make one if you want :33 |
The key is generated inside a web assembly module disguised as a PNG image in "loading.png". Reverse engineering skills is needed to fix this script. |
Could you be more specific on what is this? @stillmanpeeer |
its a advertisement to some shity api that costs 160$/month
…On Fri, 26 Apr 2024, 12:45 pm luvcie, ***@***.***> wrote:
https://github.com/stillmanpeeer/rabbitstream
Could you be more specific on what is this?
—
Reply to this email directly, view it on GitHub
<#193 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARIM46NTSNB4CZX5PXVHFRTY7G5VFAVCNFSM6AAAAABEARSO6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZYGUZTQNZWGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Although I disagree with the price asked for accessing the api (because its a lot for a single user who will use it) and with its lack of documentation (especially about the requests per day limit), I have to admit that the api works. |
All this is what must be done for getting the keys? If so, I may know a github repo that generates them. ---edit |
@chomkerman:matrix.org |
Yes, I know that, it's on your profile's info. |
oh sorry i thought i said u are on matrix, my bad |
i have the keys actually, but its hard to implement the decryption using those keys |
So the problem is that gibberish on the url, like %3A and %2F, we see on the right terminal? |
no, the problem is that the decryption code i wrote is bash specific and not posix compliant, since i use an array for |
Sorry, I can't help you with that :( |
@justchokingaround Try something like this echo -n "yB5_gMJfMGtHJCTb6P4aLZpbJu9hxhicEj==" | sed 's/_/\//g' | sed 's/-/+/g' | base64 -d | openssl rc4 -K $(echo -n "WXrUARXb1aDLaZjI" | xxd -p | tr -d '\n') -nopad
|
@justchokingaround Sorry. I'm not very familiar with POSIX compliance. $ openssl list -providers
Providers:
default
name: OpenSSL Default Provider
version: 3.2.1
status: active
legacy
name: OpenSSL Legacy Provider
version: 3.2.1
status: active
to activate the legacy algorithms you need to add/uncomment these lines
in your /etc/ssl/openssl.cnf |
okay thanks a lot, i'll check it later |
that worked just fine, thank you a lot @triorr for helping me figure out that the problem was the openssl package i was using (i just changed from openssl to openssl_legacy on nix) printf "%s" "$url" | sed "s/_/\//g;s/-/+/g" | base64 -d | openssl rc4 -K "$(printf "%s" "$key" | xxd -p)" -nopad |
Yep, that's happening for me too. |
*IDKy but the script just refused to work for me
I'm using macOS and mpv as my media player i didn't do anything special.
For me what happened was i just followed the installation process then tried to watch a show
Steps to reproduce the behavior:
No subtitles found
P.S. this happens for anything i try to watch.
lobster.log
The text was updated successfully, but these errors were encountered: