Skip to content
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

Getting DZR_CBC using shell code #11

Closed
charleywright opened this issue Nov 9, 2021 · 2 comments
Closed

Getting DZR_CBC using shell code #11

charleywright opened this issue Nov 9, 2021 · 2 comments

Comments

@charleywright
Copy link

I got bored, so made this. The sed calls can probably be improved, but I have little experience with bash/shell:

#/bin/sh
APP_WEB_URL=$(curl -sL https://www.deezer.com/en/channels/explore | grep -Po "(?<=(script src=\"))https:\/\/[a-z-\.\/]+app-web[a-z0-9\.]+")
APP_WEB=$(curl -sL $APP_WEB_URL)
T1=$(printf "$(echo $APP_WEB | grep -Po "%5B0x61(%2C0x[0-9a-z+]+)+%2C0x67%5D" | sed -e 's/%5B//g' -e 's/%2C//g' -e 's/%5D//g' -e 's/0x/\\x/g')" | rev)
T2=$(printf "$(echo $APP_WEB | grep -Po "%5B0x31(%2C0x[0-9a-z+]+)+%2C0x34%5D" | sed -e 's/%5B//g' -e 's/%2C//g' -e 's/%5D//g' -e 's/0x/\\x/g')" | rev)
FINAL=""
for i in 1 2 3 4 5 6 7 8
do
  FINAL=$FINAL$(echo $T1 | cut -c$i)
  FINAL=$FINAL$(echo $T2 | cut -c$i)
done
echo $FINAL
@yne
Copy link
Owner

yne commented Nov 10, 2021

@charleywright very nice, I've added your script to the wiki

I hope this script will work for a long time.

@yne
Copy link
Owner

yne commented Nov 12, 2021

I've added it to https://github.com/yne/dzr/blob/master/dzr#L4 as fallback in case of missing DZR_CBC

Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants