i have a recorded ts file from STB (set top box/ satellite reciever), i recorded this ts file from a paid (encrypted) channel, if i want to play this file in stb i can and everything is working fine, but when i want to play this file in my pc, i get some error which file is not valid. so it seems that file is encrypted and we should decrypt it.
there is two app which can decrypt ts files.
Starmax Support.exe
Ali_Dec Yavarzadeh.exe
i used binary ninja decompiler and i found that they use aes to decrypt file.
i want to rewrite this app in c#, i can read and write file in bytes, but i dont know how to decrypt it? because we need some key, iv and i dont know how to find it.
byte[] encryptedData = File.ReadAllBytes(inputFile);
byte[] decryptedData = Decrypt(encryptedData, key, iv);
File.WriteAllBytes(outputFile, decryptedData);
Ali_Dec.zip