Decoding smk/cmk
Posted: Sun Jan 06, 2013 2:38 pm
I have discovered AES keys to decrypt all SMK files from samsung SDK emulator 2012.
You need openssl binaries.
Copy "C:\Program Files (x86)\Samsung\Samsung TV SDK(3.5.2)\Emulator\Emulator2012_v3.5\commonlib" to your location and then run decryptall.cmd
Decrypted files have padding at the end. Count of bytes to be stripped from the end inside the last byte of decrypted file.
cmk files are encrytped with RSA. private RSA key inside the TV somewhere inside exeDSP.
need to go there and dig for it.
You need openssl binaries.
Copy "C:\Program Files (x86)\Samsung\Samsung TV SDK(3.5.2)\Emulator\Emulator2012_v3.5\commonlib" to your location and then run decryptall.cmd
Code: Select all
-- decryptsmk.cmd ---
set INFILE=%1
set OUTFILE=%~dpn1
set OPENSSL=C:\openssl-win64\bin\openssl.exe
"%OPENSSL%" aes-128-cbc -d -K 84AA59959849F6DDD4823B90F7913902 -iv 1DA76DE2A0EE55C0DBCCEDA772E3684D -nopad -in "%INFILE%" -out "%OUTFILE%"
-- decryptsmk.cmd ---
Code: Select all
--- decryptall.cmd ---
set DSMK=%~dp0decryptsmk.cmd
for /R %%f in (*.smk) do "%DSMK%" "%%f"
--- decryptall.cmd ---
Decrypted files have padding at the end. Count of bytes to be stripped from the end inside the last byte of decrypted file.
cmk files are encrytped with RSA. private RSA key inside the TV somewhere inside exeDSP.
need to go there and dig for it.