spirit_rules Geplaatst: 1 september 2005 Geplaatst: 1 september 2005 De volgende is ook open : DISH Network 61.5°W (ID 0101) Nagra-2 <img src="/forums/images/graemlins/wink.gif" alt="" /> Code: // -- Nagra2 -------------------------------------------------------------------// DISH Network 61.5°W (ID 0101)static byte dish_ECMmod[0x40]={ 0xAB,0xC5,0x7C,0xFA,0x14,0xC4,0x14,0xA8,0x4C,0x3E, 0xB1,0x96,0x9F,0x5F,0x99,0x93, 0x62,0x19,0xB4,0x85,0xE9,0xB9,0x6A,0x20,0xC3,0x31, 0x95,0x63,0xC8,0x0D,0x13,0x74, 0x3C,0xCD,0xDE,0xDF,0x67,0x1B,0xBE,0xDC,0x9C,0x5D, 0x31,0xEB,0xA5,0xBA,0xE2,0x60, 0x42,0x39,0xC6,0xE7,0x07,0x29,0xE9,0x99,0x91,0x71, 0xBD,0x0F,0xFE,0x37,0x5F,0xBA};static byte dish_Ikey[0x10]={ 0xC3,0xAE,0x57,0x16,0x02,0x9E,0xD0,0x00,0x5F,0x24, 0xB1,0xE9,0x9C,0xD3,0xEA,0xDC};static byte dish_EMMmod[0x60]={ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00};static byte dish_IkeyEMM[0x10]={ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00};// D+ 30°W (ID 4101)static byte d_plus_ECMmod[0x40]={ 0xD9,0x1F,0xB4,0x82,0xF5,0x4C,0x45,0x35,0x62,0x1D, 0x84,0x5F,0x7E,0xC4,0xAB,0x4D, 0xC9,0x30,0x9D,0xED,0x26,0xB5,0x40,0x30,0x84,0x8E, 0xB6,0x39,0x68,0x97,0x75,0x29, 0xFE,0x8F,0xF1,0x86,0x13,0x27,0x61,0x71,0xE5,0x7B, 0xDA,0x8A,0x47,0xAC,0x99,0x37, 0x03,0xCC,0xE2,0xA1,0xCB,0x07,0x19,0x98,0xEC,0xCB, 0x32,0x7E,0xF6,0x3C,0xCE,0xA7};static byte d_plus_Ikey[0x10]={ 0xF5,0x36,0x55,0x68,0xF5,0x46,0x63,0x32,0x52,0xEE, 0xD5,0x00,0x88,0x1E,0x5A,0x37};static byte d_plus_EMMmod[0x60]={ 0xD1,0x66,0xF8,0x85,0xE9,0x71,0x9A,0xCC,0x6A,0xE9, 0xA3,0x39,0x7E,0xB5,0xB5,0x0E, 0x31,0x8B,0xBE,0xFD,0xE4,0x56,0x5B,0xFD,0x9B,0xC1, 0x09,0x48,0x46,0x0D,0xD7,0x55, 0x78,0xB4,0x08,0x06,0x6A,0xB0,0xC3,0x63,0x04,0x1A, 0x8F,0x89,0xB2,0x17,0x61,0xF1, 0xE3,0xA0,0x7F,0xBA,0xCE,0xD5,0xEF,0x48,0x5A,0x86, 0x08,0xCB,0x28,0xEF,0xD2,0x69, 0xB8,0xA2,0x80,0x76,0x8D,0xA8,0x36,0xC6,0xC6,0x10, 0xF5,0x01,0x01,0x66,0x21,0x88, 0x80,0x54,0x25,0x30,0x9C,0xAE,0x7C,0x2B,0x92,0xD5, 0x22,0x41,0xEC,0xC1,0xC5,0xB2};static byte d_plus_IkeyEMM[0x10]={ 0x44,0xA5,0x58,0x04,0x2C,0xBF,0x04,0x6A,0x23,0x02, 0xBF,0x3B,0x5A,0x9D,0xEA,0x53};void swapbytes (byte *data, int len) { byte tempBUF[256]; int i; for(i=0; i<len; i++) tempBUF[i]=data[(len-1)-i]; memcpy (data, tempBUF, len);}int nagra2_ecm(byte *ecm, byte *dw) { byte tmpBuff[0x10], key[0x10], mod[0x40]; int i,j,k; unsigned short EK[iDEAKEYLEN]; const int ecmParm = 0xA; const int ecmLen = ecm[2]; const int ecmLastByte = ecmLen+2; const int bProviderIdHigh = ecm[0x05]; const int CryptLen = 0x40; switch (bProviderIdHigh) { case 0x01: // DISH Network 61.5°W memcpy (key,dish_Ikey,16); memcpy (mod,dish_ECMmod,CryptLen); break; case 0x41: // D+ 30°W memcpy (key,d_plus_Ikey,16); memcpy (mod,d_plus_ECMmod,CryptLen); break; } DecryptRSA (ecm+ecmParm, mod, nagraExp, CryptLen, 1); ecm[ecmLastByte] = ((ecm[9] & 0x80) | (ecm[ecmLastByte])); ecm = ecm+ecmParm; // parse ECM ideaExpandKey(key, EK); for ( i=(CryptLen/8)-1; i>-1; i-- ) { ideaCipher(ecm+(i*8), ecm+(i*8), EK); if (i>0) for (j=0; j<8; j++) ecm[(i*8)+j] ^= ecm[(i-1)*8+j]; } DecryptRSA (ecm, mod, nagraExp, CryptLen, 1); swapbytes (ecm, CryptLen); k = 0; // cw found for (i=0; i<ecmLen; i++) { if(ecm[i] == 0x10 && ecm[i+1] == 0x09 && ecm[i+2] == 0) { memcpy(dw+8, ecm+i+3, 8); i+= 11; k++; } if(ecm[i] == 0x11 && ecm[i+1] == 0x09 && ecm[i+2] == 0) { memcpy(dw, ecm+i+3, 8); i+= 11; k++; } } #ifdef DEBUG printf("\necm decrypted: \n"); dump (ecm, CryptLen); #endif if(k) { if( ecm[0x0e]==0x10 && ecm[0x0f]==0x80 ) { // DCWs inversed memcpy(tmpBuff, dw, 16); memcpy(dw+8, tmpBuff, 8); memcpy(dw, tmpBuff+8, 8); } return true; } else return false; // system-nagra2: failed to get CW}int nagra2_emm(byte *emm) { byte mod[0x60], key[0x10]; int i,j,k; unsigned short EK[iDEAKEYLEN]; const int emmParm = 0xA; const int emmLen = emm[2]; const int emmLastByte = emmLen+2; const int bProviderIdHigh = emm[0x05]; const int CryptLen = 0x60; switch (bProviderIdHigh) { case 0x01: // DISH Network 61.5°W memcpy (key,dish_IkeyEMM,16); memcpy (mod,dish_EMMmod,CryptLen); break; case 0x41: // D+ 30°W memcpy (key,d_plus_IkeyEMM,16); memcpy (mod,d_plus_EMMmod,CryptLen); break; } DecryptRSA (emm+emmParm, mod, nagraExp, CryptLen, 1); emm[emmLastByte] = ((emm[9] & 0x80) | (emm[emmLastByte])); emm = emm+emmParm; // parse EMM ideaExpandKey(key, EK); for (i=11; i>-1; i--) { ideaCipher(emm+(i*8), emm+(i*8), EK); if (i>0) for (j=0; j<8; j++) emm[(i*8)+j] ^= emm[(i-1)*8+j]; } DecryptRSA (emm, mod, nagraExp, CryptLen, 1); swapbytes (emm, CryptLen); #ifdef DEBUG printf("\nemm decrypted: \n"); dump (emm, CryptLen); #endif return true;} Gaat lekker nu... [color:"blue"] Spirit_rules [/color] ------------------------------------------------- Open Firmwarmware Multi taal_171005_0430 Member van het Openfirmware Team
Mister Bean Geplaatst: 1 september 2005 Geplaatst: 1 september 2005 Zeker leuk! Ik geloof dat Nagra2 nu volledig op zijn reet gaat. Alleen jammer dat de Ku band transponders van de EchoStar3/Rainbow hier in Nederland niet zijn te ontvangen . . . . Groet, Nico
Gast Geplaatst: 1 september 2005 Geplaatst: 1 september 2005 Erg leuk en goed werk en het gaat erg hard nu ja. Alleen jammer dat dat we der hier in NL niks aan hebben. Suc6 verder <img src="/forums/images/graemlins/xyxthumbs.gif" alt="" />
Gast Geplaatst: 1 september 2005 Geplaatst: 1 september 2005 hmmmmm lijkt wel een insite job, net als ooit es met seca 1.....lol groetjes...... <img src="/forums/images/graemlins/anoniem.gif" alt="" />
jalu Geplaatst: 1 september 2005 Geplaatst: 1 september 2005 Wat volgt er nog meer dan? Premiere, zoals een collegasite (oeps, die mocht ik dus niet noemen <img src="/forums/images/graemlins/smile.gif" alt="" /> ) beweert? DM8000HD-SSCT & Kathrein UFS910, Triax 88 cm Astra1/Astra2/Astra3/Hotbird 4xtwin LNB
Avalon Geplaatst: 1 september 2005 Geplaatst: 1 september 2005 Het is intressant om even te weten.. Maar we kunnen het hier niet ontvangen dus gaan we deze sluiten voordat we een thread krijgen hoe te ontvangen. Antwoord is Met een hele grote schotel. Net als de vorige afspraak met Spirit als je wat nieuws hebt plaats het <img src="/forums/images/graemlins/smile.gif" alt="" /> Mazlzlz Avalon
Aanbevolen berichten