forked from captainjack64/hacktv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
videocrypt-blocks.h
executable file
·333 lines (310 loc) · 11 KB
/
videocrypt-blocks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
/* hacktv - Analogue video transmitter for the HackRF */
/*=======================================================================*/
/* Copyright 2017 Philip Heron <[email protected]> */
/* */
/* This program is free software: you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation, either version 3 of the License, or */
/* (at your option) any later version. */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "videocrypt.h"
/* Blocks for VC1 free-access decoding */
static _vc_block_t _fa_blocks[] = { { 0x05, VC_PRBS_CW_FA } };
/* Blocks for VC2 free-access decoding */
static _vc2_block_t _fa2_blocks[] = { { 0x9C, VC_PRBS_CW_FA } };
static _vc_block_t _sky03_blocks[] = {
{
0x07, 0,
{
{ 0x20 },
{ }, { }, { }, { },
{ 0xD8,0x01 },
},
},
{
0x07, 0,
{
{ 0x20,0x00,0x77,0x20,0x20,0x20,0x48,0x41,0x43,0x4B,0x54,0x56,0x20,0x20,0x20,0x20,0x53,0x4B,0x59,0x30,0x33,0x20,0x4D,0x4F,0x44,0x45 },
{ }, { }, { }, { },
{ 0xD8,0x01 },
},
},
};
static _vc_block_t _sky05_blocks[] = {
{
0x07, 0x9F8A1C89FE464AEFUL,
{
{ 0x20 },
{ }, { }, { }, { },
{ 0xC8,0x1B,0x9C,0x00,0xB7,0x5C,0x00,0x95,0xD3,0x86,0x35,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0x35,0x82,0x45,0x80,0xCF },
},
},
{
0x07, 0x4DA52DF3D482F1FFUL,
{
{ 0x20,0x00,0x77,0x20,0x20,0x20,0x48,0x41,0x43,0x4B,0x54,0x56,0x20,0x20,0x20,0x20,0x53,0x4B,0x59,0x30,0x35,0x20,0x4D,0x4F,0x44,0x45 },
{ }, { }, { }, { },
{ 0xC8,0x1B,0x9C,0x00,0x81,0x0B,0x00,0x95,0xD3,0x86,0x2C,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x28,0x85,0xE2,0xBB,0xA8,0x91 },
},
},
};
/* Blocks for VC1 conditional-access sample, taken from Sky Movies and modified, */
/* requires an active Sky 07 card to decode */
static _vc_block_t _sky07_blocks[] = {
{
0x07, 0,
{
{ 0x20 },
{ }, { }, { }, { },
{ 0xE8,0x20,0x3E,0xED,0xF0,0x1C,0x00,0x6F,0xE9,0x06,0xD6 },
},
},
{
0x07, 0,
{
{ 0x20,0x00,0x77,0x20,0x20,0x20,0x48,0x41,0x43,0x4B,0x54,0x56,0x20,0x20,0x20,0x20,0x53,0x4B,0x59,0x30,0x37,0x20,0x4D,0x4F,0x44,0x45 },
{ }, { }, { }, { },
{ 0xE8,0x20,0x3E,0xED,0xF0,0x1C,0x00,0x6F,0xE9,0x06,0xD6 },
},
},
};
/* Blocks for VC1 conditional-access sample, taken from Sky Movies and modified, */
/* requires an active Sky 09 card to decode */
static _vc_block_t _sky09_blocks[] = {
{
0x07, 0,
{
{ 0x20 },
{ }, { }, { }, { },
{ 0xE8,0x48,0x0A,0x88,0x82,0x61,0x0C,0x29,0xE4,0x03,0xF6 },
},
},
{
0x07, 0,
{
{ 0x20,0x00,0x77,0x20,0x20,0x20,0x43,0x48,0x49,0x54,0x20,0x4f,0x4e,0x45 ,0x20,0x20,0x20,0x20,0x53,0x4b,0x59,0x30,0x39,0x20,0x4d,0x4f,0x44,0x45 },
{ }, { }, { }, { },
{ 0xE8,0x48,0x0A,0x88,0x82,0x61,0x0C,0x29,0xE4,0x03,0xF6 },
},
},
};
/* Requires an active Sky 09 card with nanos to decode */
static _vc_block_t _sky09nano_blocks[] = {
{
0x07,0x22F53168608A1385UL,
{
{ 0x20 },
{ }, { }, { }, { },
{ 0xE8,0x48,0x46,0xEC,0xB3,0x44,0x0C,0xEE,0x46,0x4F,0xC1 },
},
},
{
0x07, 0x659D904365AD2A85UL,
{
{ 0x20,0x00,0x77,0x20,0x20,0x20,0x43,0x48,0x49,0x54,0x20,0x4f,0x4e,0x45 ,0x20,0x20,0x20,0x20,0x53,0x4b,0x59,0x30,0x39,0x20,0x4d,0x4f,0x44,0x45 },
{ }, { }, { }, { },
{ 0xE8,0x48,0x53,0xD7,0x8D,0x6B,0x0C,0xD5,0xA1,0x89,0xC3 },
},
},
};
/* Blocks for VC1 conditional-access sample, */
/* requires an active Sky 10 (0A) series card to decode */
static _vc_block_t _sky10_blocks[] = {
{
0x07, 0x16DEC6F6FD37145BUL,
{
{ 0x20 },
{ }, { }, { }, { },
{ 0xF8,0x91,0x45,0x24,0xE9,0xEB,0x8F,0x00,0xE8,0x78,0x86,0x13,0x63,0x92,0xB3,0x14,0x73,0x32,0xBA,0xC3,0xCE,0x7B,0x41,0xE6,0x4B,0x53,0xB7,0x76,0x82,0x8B,0xFD },
},
},
{
0x07, 0x7DE3581091A306E5UL,
{
{ 0x20,0x00,0x77,0x20,0x20,0x20,0x43,0x48,0x49,0x54,0x20,0x4f,0x4e,0x45 ,0x20,0x20,0x20,0x20,0x53,0x4b,0x59,0x30,0x39,0x20,0x4d,0x4f,0x44,0x45 },
{ }, { }, { }, { },
{ 0xF8,0x91,0x54,0x24,0x4B,0xFE,0x9F,0xA7,0x26,0x75,0x11,0x65,0xE5,0x11,0x70,0x75,0xDA,0xF1,0x0B,0x99,0x6B,0x95,0x0A,0x53,0xC0,0xCA,0xAE,0x76,0xEF,0x5D,0xD8 },
},
},
};
/* Blocks for VC1 conditional-access sample, taken from Tyson fight and modified, */
/* requires an active Sky 10 (0A) series card with PPV enabled to decode */
/*
This packet sets up credits and events you wish to purchase. The 12h/34h bytes are
the first program/credit pair. The 56h/78h bytes are the second program/credit pair.
The six bytes 01h-06h are the six event numbers to enable.
53 86 01 00 2D
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 12
34 56 78 01 02 03 04 05 06 00 00 00 00
For these CWs, the following needs to be sent to the
card to activate it for event 66.
53 86 01 00 2D
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 42
34 00 00 42 00 00 00 00 00 00 00 00 00
This packet forces the new Pay Per View
data into the card without authorization.
53 74 01 00 20
C0 8F 40 00 00 2E AB F5 19 26 98 B5 46 77 BB E3
32 12 ED 50 49 FF 57 B7 52 C0 0A 02 02 02 02 02
*/
static _vc_block_t _sky10ppv_blocks[] = {
{
0x07, 0x7298D7112703C5D9UL,
{
{ 0x20 },
/* Packet below removes PPV credits - uncomment at your own risk! */
//{ 0xC0,0x8F,0x40,0x00,0x00,0x2E,0xAB,0xF5,0x19,0x26,0x98,0xB5,0x46,0x77,0xBB,0xE3,0x32,0x12,0xED,0x50,0x49,0xFF,0x57,0xB7,0x52,0xC0,0x0A,0x02,0x02,0x02,0x02,0x02 },
/* Comment out below line is above is enabled */
{ }, { }, { }, { },
{ 0xF8,0x94,0x9C,0xF0,0x42,0xE6,0x2F,0x2A,0xB7,0x25,0xBC,0x62,0xD8,0x95,0x1E,0x93,0x7C,0x55,0xB8,0x71,0xD5,0x2F,0x29,0x65,0xA2,0x1E,0x3A,0x63,0xF6,0x59,0xF6 },
},
},
{
0x07, 0x20222974682EFF97UL,
{
{ 0x20,0x00,0x77,0x20,0x20,0x20,0x43,0x48,0x49,0x54,0x20,0x4f,0x4e,0x45 ,0x20,0x20,0x20,0x20,0x53,0x4b,0x59,0x30,0x39,0x20,0x4d,0x4f,0x44,0x45 },
{ }, { }, { }, { },
{ 0xF8,0x94,0x8E,0xF0,0x42,0x7E,0x13,0xCC,0x19,0xDD,0x87,0x60,0x5A,0x78,0x61,0x0B,0x66,0x44,0x51,0x87,0xAE,0x01,0xBC,0x4D,0x47,0x31,0x03,0x80,0x7F,0x8D,0x74 },
},
},
};
/* Blocks for VC1 conditional-access sample, taken from MTV UK, */
/* requires an active Sky 11 series card to decode */
static _vc_block_t _sky11_blocks[] = {
{
0x07, 0xB2DD55A7BCE178EUL,
{
{ 0x20 },
{ }, { }, { }, { },
{ 0xF8,0x19,0x10,0x83,0x20,0x85,0x60,0xAF,0x8F,0xF0,0x49,0x34,0x86,0xC4,0x6A,0xCA,0xC3,0x21,0x4D,0x44,0xB3,0x24,0x36,0x57,0xEC,0xA7,0xCE,0x12,0x38,0x91,0x3E }
},
},
{
0x07, 0xF9885DA50770B80UL,
{
{ 0x20,0x00,0x77,0x20,0x20,0x20,0x43,0x48,0x49,0x54,0x20,0x4f,0x4e,0x45 ,0x20,0x20,0x20,0x20,0x53,0x4b,0x59,0x30,0x39,0x20,0x4d,0x4f,0x44,0x45 },
{ }, { }, { }, { },
{ 0xF8,0x19,0x10,0x83,0x20,0xD1,0xB5,0xA9,0x1F,0x82,0xFE,0xB3,0x6B,0x0A,0x82,0xC3,0x30,0x7B,0x65,0x9C,0xF2,0xBD,0x5C,0xB0,0x6A,0x3B,0x64,0x0F,0xA2,0x66,0xBB }
},
},
};
/* Blocks for VC1 conditional-access sample, taken from Sky One, */
/* requires an active Sky 12 series card to decode */
static _vc_block_t _sky12_blocks[] = {
{
0x07, 0xC73805F6EF5A1AAB,
{
{ 0x20 },
{ }, { }, { }, { },
{ 0xE8,0xCD,0xA7,0x83,0xD1,0x21,0xE5,0x42,0x30,0xF1,0x09,0xBD,0x74,0xB5,0x24,0xC5,0xBF,0x62,0x08,0x1F,0x43,0xE9,0x17,0xA9,0x69,0xE0,0xF6,0x3A,0x35,0x88,0x61 }
},
},
{
0x07, 0xC389AED26500336B,
{
{ 0x20,0x00,0x77,0x20,0x20,0x20,0x43,0x48,0x49,0x54,0x20,0x4f,0x4e,0x45 ,0x20,0x20,0x20,0x20,0x53,0x4b,0x59,0x30,0x39,0x20,0x4d,0x4f,0x44,0x45 },
{ }, { }, { }, { },
{ 0xE8,0xCD,0xA7,0x83,0xD1,0x31,0x3F,0xF3,0xB5,0x71,0x01,0x9C,0xF9,0xAE,0xB9,0x8D,0x9C,0x19,0xB1,0x75,0xFA,0xCC,0x90,0x33,0x1E,0xDC,0x38,0xCA,0x58,0x10,0xFA }
},
},
};
/* Sequence for Conditional-access sample, taken from The Adult Channel and modified. */
/* Requires a PIC16F84 based card flashed with supplied hex file or an active TAC card. */
static _vc_block_t _tac_blocks[] = {
{
0x07, 0,
{
{ 0x20 },
{ }, { }, { }, { },
{ 0xE8,0x29,0x3A,0x00,0x17,0x14,0x01,0x24,0xF8,0xA4,0xE2,0xFB,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xB5,0xC0,0x59 },
{ },
}
},
{
0x07, 0,
{
{ 0x20,0x00,0x76,0x20,0x54,0x48,0x45,0x20,0x41,0x44,0x55,0x4C,0x54,0x20,0x20,0x20,0x20,0x43,0x48,0x41,0x4E,0x4E,0x45,0x4C },
{ }, { }, { }, { },
{ 0xE8,0x29,0x3A,0x00,0x17,0x14,0x01,0x24,0xF8,0xA4,0xE2,0xFB,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xB5,0xC0,0x59 },
{ },
}
},
};
static _vc_block_t _xtea_blocks[] = {
{
0x07, 0x1A298F7C70F4F65UL,
{
{ 0x20 },
{ }, { }, { }, { },
{ 0xE8,0x49,0x09,0x92,0x1F,0x93,0x20,0x74,0xCE,0x62,0xE4,0xEA,0xB3,0xB3,0xBF,0x8A,0xE3,0xDF,0x26,0x99,0x5E,0x2F,0x0B,0xFB,0x8E,0x45,0x22,0x94,0x4A,0x1A,0x8E }
}
},
{
0x07, 0xD491B336D3D54BAUL,
{
{ 0x20,0x00,0x79,0x20,0x20,0x20,0x48,0x41,0x43,0x4B,0x54,0x56,0x20,0x20,0x20,0x54,0x41,0x43,0x2F,0x58,0x54,0x45,0x41,0x20,0x4D,0x4F,0x44,0x45 },
{ }, { }, { }, { },
{ 0xE8,0x49,0x09,0x92,0x1F,0x93,0x20,0x74,0xCE,0x62,0xE4,0xD5,0x04,0x5E,0x8E,0x54,0x91,0x58,0xFF,0x44,0x32,0x72,0xBB,0xEF,0x29,0x8E,0x3C,0x98,0x41,0xD1,0x33 }
}
},
};
/* Blocks for VC2 conditional-access sample, taken from Discovery Channel. */
/* Requires a PIC16F84 based card flashed with supplied hex file or an active Multichoice card.*/
static _vc2_block_t _vc2_blocks[] = {
{
0xA0, 0,
{
{ 0x21,0x02,0x6B,0x4D,0x55,0x4C,0x54,0x49,0x43,0x48,0x4F,0x49,0x43,0x45},
{ 0xE1 }, { 0xE1 }, { 0xE1 }, { 0xE1 },
{ 0xF9,0x52,0x80,0x80,0x04,0xF7,0xB7 },
}
},
{
0xA0, 0,
{
{ 0x21,0x02 },
{ 0xE1 }, { 0xE1 },
{ 0xE1 }, { 0xE1 },
{ 0xF9,0x52,0x80,0x80,0x04,0xF7,0xB7 },
}
},
};
/* Blocks used in PPV/memory card mode */
static _vc_block_t _ppv_blocks[] = {
{
0x07, 0,
{
{
0xA8,
0x04, /* Pay-view */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x11,0x00, /* Program number (12 bits) */
0x00, /* PPV program rate */
0x00, /* PPV min rate */
},
},
},
{
0x07, 0,
{
{
0xA8,
0x08, /* Pay-view + free-view */
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x11,0x00, /* Program number (12 bits) */
0x00, /* PPV program rate */
0x00, /* PPV min rate */
},
{ 0x20,0x00,0x76,0x20,0x20,0x20,0x48,0x41,0x43,0x4B,0x54,0x56,0x20,0x20,0x20,0x20,0x20,0x50,0x50,0x56,0x20,0x4D,0x4F,0x44,0x45 },
}
}
};