How to decrypt .CMK and .SMK files

General Forum for talking area for E series TVs.

mamaich
Official SamyGO Developer
Posts: 65
Joined: Sun Nov 21, 2010 4:15 am

How to decrypt .CMK and .SMK files

Post by mamaich »

As I'm planning to buy a small TV for placing in a bedroom (probably UE32ES6727) - I've started to study recent firmware for new possibilities. Seems that noone have published keys to decrypt CMK files yet, so here are they:

Code: Select all

   openssl.exe aes-128-cbc -d -K B1D5F122E75D757C79F48886D42F8E1A -in index.html.cmk  -nosalt -iv BFE932F9273DC2A0DFC93F0B8E7AC7C2 -out index.html
Tested on T-MST10PDEUC, firmware 1029. Probably the keys are the same for all models, as I was able to decrypt files in samsung adhub archive downloaded from their site.
Of cause you can encrypt the files back with the same keys.

Edited, to be located in one place. Here is a command to decrypt .SMK files from SDK:

Code: Select all

  openssl.exe aes-128-cbc -d -K 84AA59959849F6DDD4823B90F7913902 -in config.xml.smk -nosalt -iv 1DA76DE2A0EE55C0DBCCEDA772E3684D -out config.xml
Obviously, Samsung would change keys, or (wiser) switch to a non-symmetric algo in next devices, but this would not be a big problem anyway.
Last edited by mamaich1 on Mon Nov 12, 2012 8:16 am, edited 1 time in total.
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: How to decrypt .CMK files

Post by juusso »

Hey, ??????, welcome back! And seems, you`re now not on Trident, but on ES series already :)
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
mamaich1
Posts: 1
Joined: Mon Nov 12, 2012 7:51 am

Re: How to decrypt .CMK files

Post by mamaich1 »

juuso wrote:Hey, ??????, welcome back! And seems, you`re now not on Trident, but on ES series already :)
Trident is almost dead (broken hardware, currently in service). ES series are much better - they are ARM, not big-endian mips, so it would be much easier to reverse.
I'll buy UE32ES6727 this or next weekend - currently just studying its ROM dumps.
User avatar
nobody
Posts: 182
Joined: Sat Nov 12, 2011 1:45 am

Re: How to decrypt .CMK and .SMK files

Post by nobody »

Any idea on the key used to sign widgets?
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: How to decrypt .CMK and .SMK files

Post by juusso »

Have you tried same key? :)
SpoilerShow

Code: Select all

openssl aes-128-cbc -e -K 84AA59959849F6DDD4823B90F7913902 -in config.xml  -nosalt -iv 1DA76DE2A0EE55C0DBCCEDA772E3684D -out config.xml.smk
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
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: How to decrypt .CMK and .SMK files

Post by arris69 »

juuso wrote:Have you tried same key? :)
SpoilerShow

Code: Select all

openssl aes-128-cbc -e -K 84AA59959849F6DDD4823B90F7913902 -in config.xml  -nosalt -iv 1DA76DE2A0EE55C0DBCCEDA772E3684D -out config.xml.smk
think he means smthg different stuff, some widgets have signature files inside (maybe this ones can use then also native api)
dajojo
Posts: 46
Joined: Thu Jun 21, 2012 12:43 am

Re: How to decrypt .CMK and .SMK files

Post by dajojo »

arris69 wrote:
juuso wrote:Have you tried same key? :)
SpoilerShow

Code: Select all

openssl aes-128-cbc -e -K 84AA59959849F6DDD4823B90F7913902 -in config.xml  -nosalt -iv 1DA76DE2A0EE55C0DBCCEDA772E3684D -out config.xml.smk
think he means smthg different stuff, some widgets have signature files inside (maybe this ones can use then also native api)
like youtube or you mean the channels /camera/browser ?
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: How to decrypt .CMK and .SMK files

Post by arris69 »

dajojo wrote:
arris69 wrote:
juuso wrote:Have you tried same key? :)
SpoilerShow

Code: Select all

openssl aes-128-cbc -e -K 84AA59959849F6DDD4823B90F7913902 -in config.xml  -nosalt -iv 1DA76DE2A0EE55C0DBCCEDA772E3684D -out config.xml.smk
think he means smthg different stuff, some widgets have signature files inside (maybe this ones can use then also native api)
like youtube or you mean the channels /camera/browser ?
think any widget what use native code (*.so files in the widget pack) or use some api's whare you can execute native code (some half documeneted plugin interface)
kukuku777
Posts: 1
Joined: Mon Jan 14, 2013 1:10 am

Re: How to decrypt .CMK and .SMK files

Post by kukuku777 »

does anyone have keys for Emulator2013_v4 smk/cmk files ??
Thx
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: How to decrypt .CMK and .SMK files

Post by juusso »

SpoilerShow

Code: Select all

2B421CC9A46A67A685873205212007838534CEF9B055FC016824FC01177E4C79
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] General”