Decoding smk/cmk

Ideas and dreaming will go this forum
Post Reply

dec0ding
Posts: 26
Joined: Sun Jan 06, 2013 2:23 pm

Decoding smk/cmk

Post by dec0ding »

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

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.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Decoding smk/cmk

Post by juusso »

Hi! Interesting stuff! Perhaps we need to move this post to
viewtopic.php?f=48&t=4994 ?

Waiting for further research results :)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
dec0ding
Posts: 26
Joined: Sun Jan 06, 2013 2:23 pm

Re: Decoding smk/cmk

Post by dec0ding »

Oh, looks like i'm inventing the wheel :)
I spent some time in IDA to crack wps.dll to find SMK keys and was really prepared to dump exeDSP process from my UE40EH or GDB it inside the shell
Keys in your topic work well
Thanx !
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Decoding smk/cmk

Post by juusso »

Thank you and welcome! Glad to know someone is working on it ;)
We have a lot of delicious here, just need to check time to time. Don`t stop to debug exeDSP, this kind of research is most wanted :roll:
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

Post Reply

Return to “[E] Brainstorm”