| General Chit Chat Use this forum for general non FTA chit chat. Please do not post help requests. |
Register Now for FREE!
|
|
|
 |
January 1st, 2008
|
#1 (permalink)
|
|
FTA Newbie
Join Date: Dec 2007
Posts: 6
Credits: 87.80
Thanks: 0
Thanked 0 Times in 0 Posts
|
Please Explain what is contained in a BIN
Hello,
Can anyone explain what goes into making a new BIN to counter ECM? What programming language is used etc. Thanks
|
|
|
January 1st, 2008
|
#2 (permalink)
|
|
Moderator
Join Date: Jan 2007
Location: Beautiful British Columbia, Canada
Posts: 18,327
Credits: 8,216.75
Thanks: 2,283
Thanked 6,600 Times in 3,665 Posts
|
Re: Please Explain what is contained in a BIN
WELCOME TO THE SITE
YOU HAVE POSTED IN THE WRONG SECTION AND I WILL NOW MOVE YOU TO PROPER SECTION .
PLEASE GO HERE FOR SOME INFO ON HOW TO GET AROUND THE SITE AND WE'LL BE GLAD TO ANSWER ANY QUESTIONS OR PROBLEMS YOU HAVE ..
GO HERE FOR INFO :
Newbies Section - ABA DSS - Free to Air Satellite TV Community
THANKS
Quote:
Originally Posted by maguiver77
Hello,
Can anyone explain what goes into making a new BIN to counter ECM? What programming language is used etc. Thanks
|
__________________
'
|
|
|
|
The Following User Says Thank You to RICKSBEACH For This Useful Post:
|
|
January 1st, 2008
|
#3 (permalink)
|
|
Veteran Abadss Member
Join Date: Dec 2006
Posts: 4,756
Credits: 737.55
Thanks: 241
Thanked 840 Times in 519 Posts
|
Re: Please Explain what is contained in a BIN
This Is a Cut and Paste, This will make your head spin... But this is what you asked for...
C/P
Satellite Video Decryption - HOW IT ALL WORKS
--------------------------------------------------------------------------------
HOW IT ALL WORKS
Part I
This document began life as a discussion between another group member and myself, and grew into a FAQ sheet. I only wish myself that something like this FAQ had been around when I started trying to understand what was happening with all these keys. I hope some of you find it enlightening.
Terminology.
Management Keys
Every card has MKs, which are hard to decrypt due to DES. They never change, are different for each card, and are used to decrypt operational keys.
Operational Keys (Op-Keys)
Can be changed every few hours (Sex-View), days (SCT) or every month (Seca). These are encrypted using a method known as DES. Every card for a given provider has the same op key. Op keys are used to decrypt the CW.
The CW
This is used to decode the video signal in real time. The video signal is encoded using a simple algorithm
Encoding/Decoding - weak scrambling system used on the video data
Encryption/Decryption - strong scrambling systems used for keys
OVERVIEW:
video signal (weakly encoded) is decrypted by CW(Code Word).
Op- keys (strongly encrypted in DES) are used to decrypt the CW
management keys (strongly encrypted in DES) used to decrypt the op keys.
Full explanation
To prevent unauthorized viewing of a channel, the service provider has to encode the video signal. However they can't use a very strong encoding algorithm to do this because they would not be able to encode the video signal fast enough, and your receiver would not be able to decode fast enough, for you to watch it. Remember the video signal contains megabytes of data every second!!
So they encode the video signal by a very basic method. One such basic method is to use the logical operation XOR which stands for eXclusive OR.
XOR operates on ever single bit of the video signal (a bit is a binary digit - either a zero or a one) It works like this.
If the data bit is 0 and the key bit is 0 then the result bit is 0
If the data bit is 0 and the key bit is 1 then the result bit is 1
If the data bit is 1 and the key bit is 0 then the result bit is 1
If the data bit is 1 and the key bit is 1 then the result bit is 0
For example this is how we encode data using XOR
01101000 = clear video data
10101011 = encoding key
11000011 = result (encoded video data)
To understand the above example, read the ones and zeros in each vertical column, a one and a zero in a column produce a one in the result , two zeros or two ones in a column produce a zero in the result.
Decoding is just a matter of applying the same key to the encoded video data like this:
11000011 = encoded video data
10101011 = decoding key
01101000 = result - which you will see is the same as the original clear video data!
Using a method such as logical XOR is a very quick way of encoding a lot of data, but it is not a very secure way of doing it. One easy way to break XOR encoding for instance, is to look for parts of the data that would have originally been a long sequence of zero's. When you encode all zero data with XOR this is what happens:
00000000 = clear data
10101011 = key
10101011 = result which is the same as the key!
Please remember that these above examples are not necessarily the actual technique used for Viaccess encoding, In fact as of yet I have been unable to determine the exact method used. However they do demonstrate the basic principle. Also the above examples used a key that was only 8 bits long - in reality we use one which is 64 bits long. In other words a sequence of 64 ones and zeros!
Also remember that the decoding of the video signal itself takes place in the CAM/Reciever - NOT in the smartcard.
Part II
The problem with these simple encoding methods is that it would be fairly easy to devise special hardware that could determine the key used for XOR encoding almost in real time. Although they used a different method than the one I've demonstrated here, old scrambling systems such as Filmnet/Teleclub/RTL4 are a good example of decoders that were able to decode the video signal without needing the encoding key.
To prevent the current systems being hacked in this way the encoding key used is changed very often, usually every 5 to 10 seconds! This key (according to various different documentation) is called the "Control Word", "Check Word" or "Command Word". We will simply call it "CW". In order for your receiver to decode the video signal, it needs to know the correct CW to use and it has to receive a new CW every 5 seconds or so. In Viaccess this CW is sent to the receiver in a message called an "Entitlement Control Message" or ECM. To prevent unauthorizedusers from intercepting the ECM (and the CW it contains) the CW is encrypted using a powerful encryption technique called DES(Data Encryption Standard). DES itself is the topic of another FAQ, all we need to say here is that it is very difficult to break DES encryption without knowing the key used.
The ECM is passed by the receiver to the smart card, which contains the DES algorithm, and the necessary key to decode it. A smart card can easily handle using DES to decrypt one CW every five or ten seconds The smart card takes the encrypted CW contained in the ECM, decrypts it using a key, and passes the decrypted (or clear) CW back to the receiver to decode the video signal. The key used to decrypt the CW is called an operational key, or op-key.
Some documentation also refers to this key as SOK, or service operators key. We'll use the term "op-key". These op-keys are the ones you see posted on boards such as Vkeys - key 08: 09; etc.
There a couple other points about ECMs that are worthy of note:
Firstly the smart card actually contains a whole set of op-keys, and the ECM tells it which one to use to decode the CW.
Secondly the ECMs actually contain two CWs. The one being used now, and the one to be used next, this allows the card enough time to decrypt the next CW (using DES) before it is required to be used. This prevents any breakup of the video signal when it switches to the new CW.
Obviously there is only one video data stream being transmitted on one channel at a time, so all receivers have to use the same CW to decode it. Because there is not enough time to transmit different encrypted ECMs to different receivers every 5 seconds, it also stands to reason that each receiver gets the same encrypted CW and needs the same key to decrypt. So all smart cards for a given channel contain the SAME SET of op-keys!
But there is a problem with this. If all cards have to contain the same set of keys, then once pirates have access to those keys the service is hacked, and the service operator would have to replace all the cards it has issued, which is very costly and time consuming.
So to get around this problem the op-keys are sent to the smart card in a message called an EMM, or Entitlement Management Message. This means that the op-keys can be changed without replacing all the cards. The EMM containing the op-keys is again encrypted with DES, and in this case it is decrypted using a key called a Management Key or MK.
Because new op-keys only need to be sent to the card periodically (say every month, week, or in the case of Sexveiw, every 8 hours), it is perfectly feasible to have a different MK in each card, and to address a specific EMM to each card that can only be decrypted with that cards MK. In fact this is exactly what is done. Each card has a specific unique address UA and a specific set of Master keys MK00 - MK07.
The EMM tells the smart card which MK it needs to use to decrypt the op-key contained in the EMM, and the EMM is also addressed to a specific card using the UA. In practice some large service provides who have lots of cards use groups of 256 or 4096 cards which have the same shared address (SA) and the same master keys.
The EMMs containing the new op-keys are sent out over and over again during the days/hours before an op-key change so that each card has chance to receive the new key at least once before that key is used.
The idea behind the above system was that if pirates broke into a card and found the MKs, as soon as those keys became public the service operator could "kill" the official card using those MKs and at the same time "kill" all the clones of that card. If the pirate cards just contained the op-keys then those cards would only last until the next op-key update, which could be only a few hours away.
The current weakness in this system is of course the Internet. At the time it was designed, no one imagined we would have boards such as Vkeys instantly accessible to thousands of people and containing the current op-keys, which of course are the same for all cards. And of course thanks must go to all the kind people who log those channels for EMMs and kindly post the op-keys for the rest of us!
__________________
__________________
Signal theft is illegal. I don't condone the practice. Nor do I commit the offence. Govern yourself accordingly.
How you choose to use the "entertainment only" information provided on this forum is of your own accord. Not mine.
Last edited by RICKSBEACH; January 1st, 2008 at 09:44 PM..
Reason: EDIT NAMES..
|
|
|
|
The Following User Says Thank You to mcdoogle For This Useful Post:
|
|
January 1st, 2008
|
#4 (permalink)
|
|
Expert Site Helper
Join Date: Oct 2007
Location: Dark Side Of The Moon
Posts: 4,106
Credits: 2,019.30
Thanks: 376
Thanked 2,138 Times in 1,345 Posts
|
Re: Please Explain what is contained in a BIN
You should try google or the glossary. But basically its just a binary file that is able to uncode what the current problem is, and thats it. It can't emulate the system of choice 100% as of yet. How do you know that this dude ain't a DN or BEV employee and you just gave him the info needed to shut us down. Nice job.
OH BY THE WAY THAT WAS A JOKE.....
|
|
|
January 1st, 2008
|
#5 (permalink)
|
|
Moderator
Join Date: Jan 2007
Location: Beautiful British Columbia, Canada
Posts: 18,327
Credits: 8,216.75
Thanks: 2,283
Thanked 6,600 Times in 3,665 Posts
|
Re: Please Explain what is contained in a BIN
Good One Doog..
This Will Keep Everyone Busy For Awhile..lol..
__________________
'
|
|
|
January 1st, 2008
|
#6 (permalink)
|
|
Expert Site Helper
Join Date: May 2007
Posts: 2,554
Credits: 1,496.30
Thanks: 805
Thanked 1,549 Times in 959 Posts
|
Re: Please Explain what is contained in a BIN
Quote:
Originally Posted by maguiver77
Hello,
Can anyone explain what goes into making a new BIN to counter ECM? What programming language is used etc. Thanks
|
Why don't you just download a simple Hex Editor and open the bin file with it. This way you'll experience the truth first hand.It won't be pretty I guarantee you. lol
And if you wanna reuse the same file I suggest you save a back up copy before hand and/or not modify the file while in the Editor.
Happy New Year 
|
|
|
January 1st, 2008
|
#7 (permalink)
|
|
Veteran Abadss Member
Join Date: Dec 2006
Posts: 4,756
Credits: 737.55
Thanks: 241
Thanked 840 Times in 519 Posts
|
Re: Please Explain what is contained in a BIN
LOL how about Rick, Sorry tried to star the names but I must have missed some...
__________________
Signal theft is illegal. I don't condone the practice. Nor do I commit the offence. Govern yourself accordingly.
How you choose to use the "entertainment only" information provided on this forum is of your own accord. Not mine.
|
|
|
January 1st, 2008
|
#8 (permalink)
|
|
Veteran Abadss Member
Join Date: Dec 2006
Posts: 4,756
Credits: 737.55
Thanks: 241
Thanked 840 Times in 519 Posts
|
Re: Please Explain what is contained in a BIN
Wow 666 post not good.....
__________________
Signal theft is illegal. I don't condone the practice. Nor do I commit the offence. Govern yourself accordingly.
How you choose to use the "entertainment only" information provided on this forum is of your own accord. Not mine.
|
|
|
January 1st, 2008
|
#9 (permalink)
|
|
Moderator
Join Date: Dec 2007
Location: 3rd rock from the Sun
Posts: 14,247
Credits: 16,617.92
Thanks: 2,622
Thanked 14,317 Times in 5,374 Posts
|
Re: Please Explain what is contained in a BIN
New sets of instructions.
Creative Genius
Quote:
Originally Posted by maguiver77
Hello,
Can anyone explain what goes into making a new BIN to counter ECM? What programming language is used etc. Thanks
|
|
|
|
January 1st, 2008
|
#10 (permalink)
|
|
Veteran Abadss Member
Join Date: Dec 2006
Posts: 4,756
Credits: 737.55
Thanks: 241
Thanked 840 Times in 519 Posts
|
Re: Please Explain what is contained in a BIN
Ok it's now gone...... Wow...Thought they where coming after me LOL......
__________________
Signal theft is illegal. I don't condone the practice. Nor do I commit the offence. Govern yourself accordingly.
How you choose to use the "entertainment only" information provided on this forum is of your own accord. Not mine.
|
|
|
January 1st, 2008
|
#11 (permalink)
|
|
FTA Newbie
Join Date: Dec 2007
Posts: 6
Credits: 87.80
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: Please Explain what is contained in a BIN
So what does the man keep changing. I guess what i want to learn is how the signal is decrypt and what is changed in the new working bin? This is so interesting to me. It is like the comic Spy Vs Spy.
|
|
|
January 1st, 2008
|
#12 (permalink)
|
|
Veteran Abadss Member
Join Date: Dec 2006
Posts: 4,756
Credits: 737.55
Thanks: 241
Thanked 840 Times in 519 Posts
|
Re: Please Explain what is contained in a BIN
That's Not something that you or me will ever know unless you can Brake the decrypt code as the Coders do.... Is all math.......
__________________
Signal theft is illegal. I don't condone the practice. Nor do I commit the offence. Govern yourself accordingly.
How you choose to use the "entertainment only" information provided on this forum is of your own accord. Not mine.
|
|
|
January 1st, 2008
|
#13 (permalink)
|
|
FTA Newbie
Join Date: Dec 2007
Posts: 19
Credits: 2.90
Thanks: 1
Thanked 4 Times in 4 Posts
|
Re: Please Explain what is contained in a BIN
Quote:
Originally Posted by maguiver77
So what does the man keep changing. I guess what i want to learn is how the signal is decrypt and what is changed in the new working bin? This is so interesting to me. It is like the comic Spy Vs Spy.
|
You need to do a lot of reading off site. Your not going to learn that here. There's a lot you will need to learn before you would even understand the answer to you question. It is interesting and you will find some info if you dig deep enough but it's a long road to the end.
|
|
|
January 2nd, 2008
|
#14 (permalink)
|
|
FTA Newbie
Join Date: Dec 2007
Posts: 6
Credits: 87.80
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: Please Explain what is contained in a BIN
point me in the right direction. I am currently pursuing an electronic engineering degree so i might understand a few things.
|
|
|
January 2nd, 2008
|
#15 (permalink)
|
|
Expert Site Helper
Join Date: Oct 2007
Location: Dark Side Of The Moon
Posts: 4,106
Credits: 2,019.30
Thanks: 376
Thanked 2,138 Times in 1,345 Posts
|
Re: Please Explain what is contained in a BIN
Quote:
Originally Posted by maguiver77
point me in the right direction. I am currently pursuing an electronic engineering degree so i might understand a few things.
|
Are you good with calculus and advanced equations...lol ? that would be a start. Its very hard to code, plus most receivers have coders already. Get a hex editor and open a bin file with that like someone stated before.
|
|
|
|
Related Content
|
#1.5
|
|
|
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
- Members: 447,277
- Users Online: 431
- Forum Threads: 103,027
- Forum Posts: 742,885
|