Page 1 of 3

[App] H offline decrypting of recordings

Posted: Sun Apr 19, 2015 10:45 am
by zoelechat
Finally. Needs to be tested, should work on T-MST14, T-GFP and T-GFS firmwares (actually all rootables for now), ONLY on new recordings once patch is injected and resident.

Usage:
  • Get latest samyGOso from there and copy/overwrite samyGOso file (not folder) to /mnt/opt/privateer/usr/bin
  • Set permissions if needed (usually not if overwritten)

    Code: Select all

    chmod +x /mnt/opt/privateer/usr/bin/samyGOso
  • Extract whole content of libPVRMakeFixedkey.zip archive to /mnt/opt/privateer/usr/libso
  • Execute

    Code: Select all

    samyGOso -d -T -r -l /mnt/opt/privateer/usr/libso/libPVRMakeFixedKey.so
    Then recordings should all need the same and only attached key (mst14.key/golfp.key/gfs.key depending on your fw) to be decrypted.
    Either manually use drmdecrypt to do so, or if you want to use PVRdecoder in offline mode: copy .key for each recording and rename it to corresponding .srf (e.g. for 20150418103523.srf, duplicate key to 20150418103523.key in CONTENTS folder).

    Logfile is written to /dtv/libPVRMakeFixedKey.log
  • Autostart
    • Extract 99_91_PVRMakeFixedKey.zip to /mnt/etc/init.d
    • Set permissions

      Code: Select all

      chmod +x /mnt/etc/init.d/99_91_PVRMakeFixedKey.init
    Autostart script will also auto-duplicate keyfile for each new recording on startup (it means it's done only after TV reboot).
    Then you should be able to use PVRdecoder (any version) in offline mode, or in online mode using old E/F version (only!!!), it will behave reliably crash-free and fast as hell as it did on E/F :)
Credit goes to bugficks

edit 7/11/2015: Added NT14U and NT14M keys

Re: [App] H offline decrypting of recordings

Posted: Mon Apr 20, 2015 10:30 am
by zoelechat
Moved to public, enjoy! :)

Re: [App] H offline decrypting of recordings

Posted: Mon Apr 20, 2015 11:40 am
by juusso
Finaly :) @Lordbyte, your turn?

Re: [App] H offline decrypting of recordings

Posted: Mon Apr 20, 2015 1:55 pm
by Lordbyte
I am under massive reallife pressure, having purchased a new house 2 weeks ago.

The amount of paper banks, lawyers, realestate agents, goverment tax agents, and
all their families produce, is massively impressive. I can heat up my new house for
a full year on paperwork alone.

Thus, - the PVRDecoder *will* be updated, but the deadline for that event is unknown.

Maybe next weekend ... MAYBE :-)

Re: [App] H offline decrypting of recordings

Posted: Fri Apr 24, 2015 8:28 am
by zoelechat
Added keyfile suitable to T-GFS fw to first post archive.
Also improved startup script to auto-duplicate .key for new recordings on startup, so that you can directly use PVRdecoder in E/F mode, either online or offline :)

Re: [App] H offline decrypting of recordings

Posted: Sat May 30, 2015 4:54 pm
by mikemcgear
Hi,

thanks for the lib! I have installed it on the TV. However, I have issues with the offline decrypting on the PC.
I only have PVRDecoder versions for E/F/H. Where can I find E/F-only versions?

I also tried with drmdecrypt.exe which gives me a broken .ts file as a result - here is the output.

Code: Select all

c;\temp>drmdecrypt.exe -d 20150530152634.srf
INFO AES-NI CPU support enabled
INFO drm key successfully read from 20150530152634.mdb
INFO KEY: 00 00 00 00 00 00 00 00 00 03 1D 4C 00 00 00 00
INFO Writing to ./20150530152634-Testrecording.ts
INFO Filesize 346640384
INFO synced at offset 0
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
ERROR scrambling info seems to be invalid!
INFO short read while reading stream
Thanks!

Re: [App] H offline decrypting of recordings

Posted: Sat May 30, 2015 5:51 pm
by zoelechat
mikemcgear wrote:I only have PVRDecoder versions for E/F/H. Where can I find E/F-only versions?
In 1st post of PVRdecoder thread :) (v1.5.3.4)
mikemcgear wrote:I also tried with drmdecrypt.exe which gives me a broken .ts file as a result - here is the output.
Key is in keyfile (.key), not in .mdb

Re: [App] H offline decrypting of recordings

Posted: Sat May 30, 2015 7:05 pm
by mikemcgear
Thanks for the hints! I found the 1.5.3.4 somewhere in the thread but only now I realized that "offline" decoding means taking the harddisk from the TV to the PC which I cannot do right now.

So I would like to try again with drmdecrypt.exe. It does not have a parameter to specify a certain keyfile. If I rename the .key file to have the same same as the recording but with .mdb, drmdecrypt will again complain

Code: Select all

ERROR short read while reading DRM key
which is not surprising since the key file only has 16 bytes and the .mdb is over 1 MB. What is my mistake? Thanks!

Re: [App] H offline decrypting of recordings

Posted: Sat May 30, 2015 7:36 pm
by zoelechat
mikemcgear wrote:Thanks for the hints! I found the 1.5.3.4 somewhere in the thread but only now I realized that "offline" decoding means taking the harddisk from the TV to the PC which I cannot do right now.
Not necessarily. As soon as you have .srf/.inf/.key in ANY folder accessible from Windows you can use offline decoding, no need for whole HDD. The only difference with drmdecrypt is that it doesn't automatically rename .ts so it doesn't need .inf to get recording infos.
mikemcgear wrote:So I would like to try again with drmdecrypt.exe. It does not have a parameter to specify a certain keyfile. If I rename the .key file to have the same same as the recording but with .mdb, drmdecrypt will again complain
You're probably using some antic drmdecrypt version and/or misuse it.
Check that one and usage: viewtopic.php?f=63&t=6511&p=62953#p62953

Re: [App] H offline decrypting of recordings

Posted: Sun Aug 23, 2015 12:33 pm
by hobbesGo
How can i pass a directory to drmdecrypt ?

with this "Testscript"

Code: Select all

#!/bin/bash
for file in *.srf; do prefix="${file%.*}";
drmdecrypt "$prefix.srf $prefix.key";
done
i get following output in console

===============================================================================
SamyGO - Samsung LED TV PVR Recording Decrypt (w64)
Cannot open 20150712102549.srf 20150712102549.key file
===============================================================================
SamyGO - Samsung LED TV PVR Recording Decrypt (w64)
Cannot open 20150712102709.srf 20150712102709.key file


with "echo"

Code: Select all

#!/bin/bash
for file in *.srf; do prefix="${file%.*}";
echo drmdecrypt "$prefix.srf $prefix.key";
done
it seems to be ok:

drmdecrypt 20150712102549.srf 20150712102549.key
drmdecrypt 20150712102709.srf 20150712102709.key


when i execute single decoding job then it works:

Code: Select all

drmdecrypt 20150712102709.srf 20150712102709.key
===============================================================================
SamyGO - Samsung LED TV PVR Recording Decrypt (w64)
291717120 bytes to decrypt
291717156 - 100% decrypted OK!


is there any possibility to pass whole directory to drmdecrypt ?