Page 1 of 2

How to decrypt .CMK and .SMK files

Posted: Mon Nov 12, 2012 8:03 am
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.

Re: How to decrypt .CMK files

Posted: Mon Nov 12, 2012 8:13 am
by juusso
Hey, ??????, welcome back! And seems, you`re now not on Trident, but on ES series already :)

Re: How to decrypt .CMK files

Posted: Mon Nov 12, 2012 8:16 am
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.

Re: How to decrypt .CMK and .SMK files

Posted: Sat Dec 22, 2012 1:32 am
by nobody
Any idea on the key used to sign widgets?

Re: How to decrypt .CMK and .SMK files

Posted: Sat Dec 22, 2012 8:56 am
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

Re: How to decrypt .CMK and .SMK files

Posted: Sat Dec 22, 2012 10:54 am
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)

Re: How to decrypt .CMK and .SMK files

Posted: Sun Dec 23, 2012 12:16 am
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 ?

Re: How to decrypt .CMK and .SMK files

Posted: Mon Dec 24, 2012 10:42 am
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)

Re: How to decrypt .CMK and .SMK files

Posted: Mon Jan 14, 2013 1:12 am
by kukuku777
does anyone have keys for Emulator2013_v4 smk/cmk files ??
Thx

Re: How to decrypt .CMK and .SMK files

Posted: Tue Jan 15, 2013 4:44 pm
by juusso
SpoilerShow

Code: Select all

2B421CC9A46A67A685873205212007838534CEF9B055FC016824FC01177E4C79