This is just a guide that should make getting DRM content easier.
Yes there are already some guides. But I just want to make one that even a non tech-savvy could understand, follow and find.
This guide will go through the process of installing python and the needed tools to get DRM protected content
The guide will be split into multiple parts.
Mac OS users, please head to this guide: https://simpcityopen.com/threads/81957/
Python, PIP and Frida installation
First things first.
Download Python from this site: https://www.python.org/downloads/ and get the latest version*. (Not the pre-release one)
* The latest version of time of writing is 3.11.4
Open up the installer and make sure to press "Add python to PATH"
After selecting that option press install and wait till it's done.
To make sure it is installed properly, open up Terminal (Windows 11) or Powershell (Windows 10/11) and type:
That should give you the following result*
* Version my differ depending on what version is the latest version over time.
With the installation of Python comes the pip package. To check if its installed type in a Terminal or Powershell:
That should also give you the following result*
* Again version my differ over time.
To install frida head into a Terminal or Powershell and type:
Make sure to note somewhere what version got installed which is important later on. * (Version is marked in yellow)
* Versions can be different for you so double check.
Then you need frida-tools which can be installed by typing in Terminal or Powershell:
Android Studio installation and creating your first virtual phone
Download Android Studio https://developer.android.com/studio
And go through the setup of installing.
After installing open up Android Studio.
You can leave most settings on default. Then when it comes to the licenses click accept on all of them till the finish button gets highlighted.
After the installation Android Studio will open and give you the option to "create a new project" like shown below:
Then select "phone and tablet" with an "empty activity" and click on next, like shown in the image below:
Next up select a minimum SDK of Android 9.0 (Pie) or above like shown below:
To create a new device you press the device manager button and click on "create device" like shown below:
Search for the Pixel 6, select it and press next.
You will first need to download the OS, so press the download icon next to the version* you want. (*Choose Android 9.0 or newer.)
After its done downloading select the version again and press next and finish up the new device.
Installing Frida-server on your virtual phone
Next up is to install frida on your virtual phone. Download frida on your PC from here: https://github.com/frida/frida/releases and search for "frida-server" with the right version that was highlighted in yellow when you installed frida using pip, and make sure to pick the android-x86 version, like shown below:
Extract the downloaded file to the following location on your device:
And have it sit there like this:
--
Choose one of the two methodes:
Automated method: https://simpcityopen.com/threads/81957/
You are now ready to use the keys for the scraping tools.
(I'll make a guide to a few of those scrapers below, with again the intention of making it simple to understand and follow.)
In the meantime you can try it yourself by following the already existing guides from here:
https://simpcityopen.com/threads/2257/
Yes there are already some guides. But I just want to make one that even a non tech-savvy could understand, follow and find.
This guide will go through the process of installing python and the needed tools to get DRM protected content
The guide will be split into multiple parts.
Mac OS users, please head to this guide: https://simpcityopen.com/threads/81957/
Python, PIP and Frida installation
First things first.
Download Python from this site: https://www.python.org/downloads/ and get the latest version*. (Not the pre-release one)
* The latest version of time of writing is 3.11.4
Open up the installer and make sure to press "Add python to PATH"
After selecting that option press install and wait till it's done.
To make sure it is installed properly, open up Terminal (Windows 11) or Powershell (Windows 10/11) and type:
That should give you the following result*
* Version my differ depending on what version is the latest version over time.
With the installation of Python comes the pip package. To check if its installed type in a Terminal or Powershell:
That should also give you the following result*
* Again version my differ over time.
If for whatever reason PIP isn't installed yet, open a Terminal or Powershell and type:
Make sure to note somewhere what version got installed which is important later on. * (Version is marked in yellow)
* Versions can be different for you so double check.
Then you need frida-tools which can be installed by typing in Terminal or Powershell:
Android Studio installation and creating your first virtual phone
Download Android Studio https://developer.android.com/studio
And go through the setup of installing.
After installing open up Android Studio.
You can leave most settings on default. Then when it comes to the licenses click accept on all of them till the finish button gets highlighted.
After the installation Android Studio will open and give you the option to "create a new project" like shown below:
If you got an error at this part then you would have to check if your device has virtualisation enabled.
Read this post: https://simpcityopen.com/threads/81957/
Read this post: https://simpcityopen.com/threads/81957/
Next up select a minimum SDK of Android 9.0 (Pie) or above like shown below:
To create a new device you press the device manager button and click on "create device" like shown below:
Search for the Pixel 6, select it and press next.
You will first need to download the OS, so press the download icon next to the version* you want. (*Choose Android 9.0 or newer.)
After its done downloading select the version again and press next and finish up the new device.
Installing Frida-server on your virtual phone
Next up is to install frida on your virtual phone. Download frida on your PC from here: https://github.com/frida/frida/releases and search for "frida-server" with the right version that was highlighted in yellow when you installed frida using pip, and make sure to pick the android-x86 version, like shown below:
Extract the downloaded file to the following location on your device:
Use Winrar or 7zip. (Or something similar to that.)
--
Choose one of the two methodes:
Automated method: https://simpcityopen.com/threads/81957/
Open a Terminal or Powershell in the folder where you extracted the tool. There are multiple ways to do this.
You should see an emulator.
Continue by typing the following command, make sure to check what version you currently need to use:
After it has been "inserted" on your phone type the following command to acces the phone (Take a look at the example images if you find this part hard.):
Example:
KEEP THIS TERMINAL OR POWERHSELL OPEN!
Setting up the Dumper script
Head over to the following github on your PC (Not your virtual phone) https://github.com/wvdumper/dumper and press the green "Code "button and then "Download zip".
Extract the zip file wherever you want. (I have it still in downloads folder) head into the folder and open up the requirements.txt file using notepad.
Add the following line to the file:
It should look something like this now:
Save the file and open a new Terminal or Powershell. (While still having the previous one open.)
You can open a terminal or powershell by either right clicking and selecting terminal/powershell (1) or by typing "CMD" in the path bar (2).
In the second terminal or powershell type:
Once it is done installing the needed packages type the following:
KEEP THIS TERMINAL OR POWERSHELL OPEN AS WELL!
Getting keys using the Dumper script
Finally use your virtual phone and navigate using chrome to the following site: https://bitmovin.com/demos/drm
The site will ask if it is allowed to play protected videos. Press ALLOW.
Scroll a bit down till you see the video and press play.
You should see some activity in your second terminal or powershell. That means it has worked!
To verify that, head into the dumper-main folder and check if you see the "key_dumps" folder:
When heading further into the folders you'll find "private_keys" keep going into that folder till you see these two files:
Rename these files accordingly:
Make sure to change the extension, this should happen when you rename the files.
Check to see if the file type has changed to just "File" instead of a BIN or PEM file.*
*Note that this is a comparison, you will only have the two files (device_client_id_blob and device_private_key)
- (Windows 10/11) Shift + Right Click > Open in Terminal/Powershell. (First image)
- (Windows 11) Right Click + Show more options > Open in Terminal. (First image)
- (Windows 10/11) In path bar, type "CMD" and press ENTER. (Second image)
Try this instead:
(So add ".\" infront of it.)
(So add ".\" infront of it.)
Make sure you started your virtual phone by going to Android Studio > Device Manager and then pressing the play button of your virtual phone.
(You should see the play button turn into a stop button and a phone will appear below it.)
If that doesn't work go to the following folder:
Open up Terminal or Powershell and type:
You should see the name of your virtual phone on it. To start up your phone type the following:
Example:
Your virtual phone is now running.
(You should see the play button turn into a stop button and a phone will appear below it.)
If that doesn't work go to the following folder:
Open up Terminal or Powershell and type:
Try this instead:
(Add ".\" infront of it.)
(Add ".\" infront of it.)
Example:
Your virtual phone is now running.
After it has been "inserted" on your phone type the following command to acces the phone (Take a look at the example images if you find this part hard.):
Example:
KEEP THIS TERMINAL OR POWERHSELL OPEN!
Setting up the Dumper script
Head over to the following github on your PC (Not your virtual phone) https://github.com/wvdumper/dumper and press the green "Code "button and then "Download zip".
Extract the zip file wherever you want. (I have it still in downloads folder) head into the folder and open up the requirements.txt file using notepad.
Add the following line to the file:
It should look something like this now:
Save the file and open a new Terminal or Powershell. (While still having the previous one open.)
You can open a terminal or powershell by either right clicking and selecting terminal/powershell (1) or by typing "CMD" in the path bar (2).
In the second terminal or powershell type:
Once it is done installing the needed packages type the following:
KEEP THIS TERMINAL OR POWERSHELL OPEN AS WELL!
Getting keys using the Dumper script
Finally use your virtual phone and navigate using chrome to the following site: https://bitmovin.com/demos/drm
The site will ask if it is allowed to play protected videos. Press ALLOW.
Scroll a bit down till you see the video and press play.
You should see some activity in your second terminal or powershell. That means it has worked!
To verify that, head into the dumper-main folder and check if you see the "key_dumps" folder:
When heading further into the folders you'll find "private_keys" keep going into that folder till you see these two files:
Rename these files accordingly:
| Original name | New name |
| client_id.bin | device_client_id_blob |
| private_key.pem | device_private_key |
Check to see if the file type has changed to just "File" instead of a BIN or PEM file.*
*Note that this is a comparison, you will only have the two files (device_client_id_blob and device_private_key)
(I'll make a guide to a few of those scrapers below, with again the intention of making it simple to understand and follow.)
In the meantime you can try it yourself by following the already existing guides from here:
https://simpcityopen.com/threads/2257/