Ok,since nobody have done it,here we are.
Let's take this as a learning experience for those new to dreambox and who want to learn something about thier boxes.
Scripts can be done for most everything you want to do.
In this case,we need to start editing softcam.key file so all channels in the trasponder can get the keys.
For the moment,only one channel in the trasponder gets updated,the one noted in the EMM key string.
Let's start by laying out what the script should be doing
It must copy the key and write new lines for each channel in the trasponder with this key.
Seem simple enough.
let's try all to collaborate,with ideas or with code.
I know there are very smart people and can come up with a single line to do it all,but the work should be oriented for those that never wrote code,or never knew about this.So,be patience with them,hint without forgetting they are learning,do not spoonfeed.
Let's make it fun.
Is going to be horrible at the beginning and maybe also at the end,but if is working as intended,later on it can be perfected.
So,let's make it fun.(gonna be boring for advanced coders,of course,but for the rest).
We have to begin by selecting exactly what we are going to copy and from where.
The line offered by oscam is
We need first to locate the P lines,not another,since oscam also work with other encryptions,and in order to not screw up other lines,we must make sure only the P lines are the ones that are going to be copied.
Then we need to match the UA (at the end of the comment) with all sid's present in the trasponder,making a list.
I doubt we could find a similar UA in another encryption,but just in case,we should test for UA and P as starting line.
We need to copy the 3rd and 4th column (key type and key value).
With this information we need to write new lines with fixed values and variables
P is fixed
SID is variable,taken from each SID in the list
Key type and key value is pasted here
; is fixed and any comment can be added here.
Keep in mind Dreambox use busybox instruction set
So,who wants to try the first shot?
Single UA example first,then we move on.
Should we define what we are looking for for first?
If we do,we compare the UA from the list (we can write a different file with all our UA's),and look at the beginning of the line if starts with "P" or "P 00" (to avoid writing keys for other encryptions)
Anybody knows how to do this?
Lets use grep to get a UA from "Unique" file,where we list all our UA one per line as
UA: XXXXXXXX
if we use
we get a list of every line that starts with UA:
You can test this right now in your dreambox by making a new file in /tmp called Unique,with line UA: 0011223344
The use telnet and type
With this information,we can keep all UA values in memory,and compare those to those in softcam.key,if found,we procede to make multiple lines for each sid the UA is associated with (in the Unique file we can do this,for example)
let's see who wants to give it a shot to continue
I know is all basic,and might take only 5 minutes to produce a working script,but this way could be educative for some
Let's take this as a learning experience for those new to dreambox and who want to learn something about thier boxes.
Scripts can be done for most everything you want to do.
In this case,we need to start editing softcam.key file so all channels in the trasponder can get the keys.
For the moment,only one channel in the trasponder gets updated,the one noted in the EMM key string.
Let's start by laying out what the script should be doing
It must copy the key and write new lines for each channel in the trasponder with this key.
Seem simple enough.
let's try all to collaborate,with ideas or with code.
I know there are very smart people and can come up with a single line to do it all,but the work should be oriented for those that never wrote code,or never knew about this.So,be patience with them,hint without forgetting they are learning,do not spoonfeed.
Let's make it fun.
Is going to be horrible at the beginning and maybe also at the end,but if is working as intended,later on it can be perfected.
So,let's make it fun.(gonna be boring for advanced coders,of course,but for the rest).
We have to begin by selecting exactly what we are going to copy and from where.
The line offered by oscam is
Code:
P 006D 00 XXXXXXXXXXXXXXXX ; added by OSEmu Mon Dec 14 15:46:01 2015 UA: 00UAUAUA
Then we need to match the UA (at the end of the comment) with all sid's present in the trasponder,making a list.
I doubt we could find a similar UA in another encryption,but just in case,we should test for UA and P as starting line.
We need to copy the 3rd and 4th column (key type and key value).
With this information we need to write new lines with fixed values and variables
P is fixed
SID is variable,taken from each SID in the list
Key type and key value is pasted here
; is fixed and any comment can be added here.
Keep in mind Dreambox use busybox instruction set
So,who wants to try the first shot?
Single UA example first,then we move on.
Should we define what we are looking for for first?
If we do,we compare the UA from the list (we can write a different file with all our UA's),and look at the beginning of the line if starts with "P" or "P 00" (to avoid writing keys for other encryptions)
Anybody knows how to do this?
Lets use grep to get a UA from "Unique" file,where we list all our UA one per line as
UA: XXXXXXXX
if we use
Code:
grep UA: Unique
You can test this right now in your dreambox by making a new file in /tmp called Unique,with line UA: 0011223344
The use telnet and type
Code:
grep UA: /tmp/Unique
let's see who wants to give it a shot to continue
I know is all basic,and might take only 5 minutes to produce a working script,but this way could be educative for some
Last edited: