-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dvr Keyfile extraction from LG TV #4
Comments
The dvr key is unique for each TV, you have to extract /mnt/lg/cmn_data/dvr (if i recall correctly) from the running device |
I do not have shell access, however I am able to modify extracted firmware inserting a cp command in rsc script to copy it to usb. Is it safe? |
rcs script |
No its not. You will not be able to use a modified firmware, nor to create an EPK out of it due to the signature. |
Is there any solution to get shell access for the LM series smart TV. I tried to get the debug menu in power only mode, but it says Need access USB authentication. After exiting power only mode the TV does not respond to the normal RS232 commands. Shall I assume the TV is in debug mode? The Instart menu still shows Release debug status. |
Do you know how to access to internal memory of LG Smart TV? I have a 60LB650V-NZ TV, with webOS 1.4.0. |
I have tv LG 65UH651Y. I have access yo the OS file system. How can I find the dvr key? What is the file name? |
It is in the path /mnt/lg/cmn_data/dvr If you can copy it to a mounted usb or do a hex dump in the command line as here: https://stackoverflow.com/questions/2614764/how-to-create-a-hex-dump-of-file-containing-only-the-hex-characters-without-spac The file is 24 bytes long as I remember. |
@fteplitsky how do you have access to smart Tv? Please pm with your experience, or write here. It would be more appreciate. I'm trying with my LG without success... |
klode82
|
Hi |
They probably moved it in the Webos devices. Run epk2extract on downloaded firmware update then use a good arm disassembler (Hopper is quite good) or run a linux string extraction on binary executables you extracted with epk2exctract. Look for a path and file name dvr. |
The key is stored in a crypted partition often referred to as "sedata" (secure data). This partition is guarded by the TEE firmware (tzfw), which has its own master key to decrypt the partition data. The easiest way to get the keys (including the epk keys that we make available on the repository), is by either intercepting the calls (gdb), linking against LG HAL libraries and writing your own code, or instrumenting RELEASE/tvservice. |
After |
We dump AES keys from running devices with shell access |
How??? |
Hey @ smx-smx, how do you do this? |
Try rootmy.tv for getting shell access. You'll need to uninstall DevMode app. |
Is there a step by step guide to convert lg TV recordings and get them playable on PC? Being a newbie I am unable to extract files. |
Hi, Vince |
very easy to do, 5 lines of python executed on the same tv. |
So, long story short: uname -a
Another LG tv roots just fine (more recent model), just difficulties with ca-certificates are too old and running recent Kodi seems impossible. Whole point of this is to decrypt dvr files from hockey Olympics 2022. |
get root and run this command: |
Do not use GetMeIn. It is generally broken and unsafe. The hardcoded commands it runs are very fragile and lack any kind of error handling. At least one person has had their TV broken to the point that they would probably have to enable DEBUG to recover. Bind mounting over There is a modified version named Once you have a root shell, you just need to make You can update the CA certificate store by having an init script add new certs. There's an example here, although you can use OverlayFS instead of bind mounts on webOS 2. Note that there are multiple cert stores, and which one is used will vary by application. The PVR key is not in PEM format. I'm pretty sure |
Thank you! I'll look into these. I can confirm there is no /mnt/lg/cmn_data/dvr on my devices. EDIT:TV is now rooted with getmenow and everything is good, but where I can find dvr/pvr encryption key? |
I extracted dvr_std_mtk.bin from the epk firmware and renamed it to dvr to use with epk2extract. The unwrapped key is still reported 00 00 00 00 00... Are there some requirements for the keys that arbitrary keys cannot be used?
The text was updated successfully, but these errors were encountered: