Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Decrypting

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th July 2023, 13:05   #21  |  Link
candela
Registered User
 
Join Date: Jun 2005
Posts: 259
Quote:
Originally Posted by demomode View Post
What am I doing wrong? What is this busencryption?

Code:
10:26:39 - ERROR! Disc in drive >E< is NOT BusEncryptionEnabled!
10:26:39 - BusEncryption is not active (drive is not BEC or disc is NOT BEE) - only VolumeID cache file will be created
...
10:26:46 - VID cache will be created >C:\Users\renan\AppData\Roaming\aacs\vid\72e1395b5f4c18110140a7940d108d0785cec94d<
10:26:46 - Created the VID cache file!

Why do you think something is wrong?
- The disc does not require busencryption so no RDK is needed
- The VID was retrieved and saved in VLC cache
candela is offline   Reply With Quote
Old 30th July 2023, 13:32   #22  |  Link
demomode
Registered User
 
Join Date: Apr 2020
Posts: 14
Quote:
Originally Posted by candela View Post
Why do you think something is wrong?
- The disc does not require busencryption so no RDK is needed
- The VID was retrieved and saved in VLC cache
Well, VLC still can't open the disc nor xreveal

I've just tested Sonic 2 Blu-ray and got this:

Code:
-----------------------------------------------------------
09:35:05 -  ----------- RDKfromMMKV 0.05 -----------
-----------------------------------------------------------
09:35:05 - Specified drive: e
09:35:05 - Drive >E< is BusEncryptionCapable
09:35:05 - ERROR! Disc in drive >E< is NOT BusEncryptionEnabled!
09:35:05 - BusEncryption is not active (drive is not BEC or disc is NOT BEE) - only VolumeID cache file will be created
09:35:05 - MakeMKV is installed :)
09:35:05 - MakeMKV has no license key - please visit >https://forum.makemkv.com/forum/viewtopic.php?t=1053< to get the current key
09:35:05 - MakeMKVcon path: C:\Program Files (x86)\MakeMKV\MakeMKVcon.exe
09:35:05 - Drivenumber is >0<
09:35:13 - discatt.dat appeared - kill MakeMKVcon now
09:35:13 - Target file >C:\Users\renan\AppData\Local\Temp\RDKfromMMKV_20230730_093505\discatt.dat<
09:35:13 - DriveId      >6B9F58D60858AD3161D22EE693BA11D8AA6E35F0<
09:35:13 - VolumeId     >81AA56CCF771AE1EAF8A1E5B9E4AA55F<
09:35:13 - DiscId       >EDD6461A74439799857701A5D4E040DF1C8A5434<
09:35:13 - KeyDB path >C:\Users\renan\AppData\Roaming\aacs\keydb.cfg<
09:35:13 - VID cache will be created >C:\Users\renan\AppData\Roaming\aacs\vid\edd6461a74439799857701a5d4e040df1c8a5434<
09:35:13 - Created the VID cache file!
Press ENTER to exit
Still can't get the keys and watch it.

Last edited by demomode; 30th July 2023 at 13:38.
demomode is offline   Reply With Quote
Old 30th July 2023, 14:00   #23  |  Link
Grimsdyke
Registered User
 
Join Date: Nov 2013
Location: Hannover, Germany
Posts: 295
This tool does not create/retrieves VUKs !!
Read here : https://forum.doom9.org/showthread.php?t=172472
__________________
MPC-BE feature wishlist: 1) DiscID
2) Two independent volume control sliders in the UI when using dual-audio-out.

Last edited by Grimsdyke; 30th July 2023 at 15:42. Reason: typo
Grimsdyke is offline   Reply With Quote
Old 1st August 2023, 13:30   #24  |  Link
demomode
Registered User
 
Join Date: Apr 2020
Posts: 14
Quote:
Originally Posted by Grimsdyke View Post
This tool does not create/retrieves VUKs !!
Read here : https://forum.doom9.org/showthread.php?t=172472
I was trying this because all my dvdfab registration expired and I can't get new keys.
demomode is offline   Reply With Quote
Old 2nd August 2023, 16:52   #25  |  Link
Grimsdyke
Registered User
 
Join Date: Nov 2013
Location: Hannover, Germany
Posts: 295
Do you maybe use an old version of keydb.cfg ?
__________________
MPC-BE feature wishlist: 1) DiscID
2) Two independent volume control sliders in the UI when using dual-audio-out.
Grimsdyke is offline   Reply With Quote
Old 3rd August 2023, 13:10   #26  |  Link
demomode
Registered User
 
Join Date: Apr 2020
Posts: 14
Quote:
Originally Posted by Grimsdyke View Post
Do you maybe use an old version of keydb.cfg ?
How do I know it's old and where can I get the updated one?
demomode is offline   Reply With Quote
Old 3rd August 2023, 14:07   #27  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,397
Quote:
Originally Posted by Grimsdyke View Post
This tool does not create/retrieves VUKs !!
Read here : https://forum.doom9.org/showthread.php?t=172472
You use this tool here to synchronize your keydb file. Even if you're not using it to find keys with DVDFab, it's still incredibly useful for managing your keydb file.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 4th August 2023, 19:06   #28  |  Link
Grimsdyke
Registered User
 
Join Date: Nov 2013
Location: Hannover, Germany
Posts: 295
Yepp, launch synchronize.bat and FindVUK does all the work for you but you can also download the latest keydb.cfg by yourself but then you have to do the rest (unpacking, etc.) yourself as well.
__________________
MPC-BE feature wishlist: 1) DiscID
2) Two independent volume control sliders in the UI when using dual-audio-out.
Grimsdyke is offline   Reply With Quote
Old 15th January 2024, 06:58   #29  |  Link
DanielH
Registered User
 
Join Date: Dec 2023
Posts: 4
Quote:
Originally Posted by nitro322 View Post
Feedback welcome if anyone else wants to try it. You can download from here:
https://www.legroom.net/files/software/gen-rdk.sh
I have made some bugfixes and improvements; diffs below. Feel free to bring them upstream etc.
  1. Remove openssl dep and fix related hexdump bug

    Originally, hashing was done with openssl piped into hexdump. However, the format provided to hexdump was buggy; if a byte were repeated, it would only show up once and have a * following it, which is not the format libaacs expects the hashes to be in.

    Changing the sha1 hashing to sha1sum, part of the already-assumed coreutils (or busybox or...) dependency, means that we no longer need a call to hexdump, since that outputs the hash in hexadecimal already: https://pastebin.com/xsnzKTfb
  2. Wait for disc to actually unmount: https://pastebin.com/1KW3qY8t
  3. Allow saving discatt.dat

    This is slightly inelegant; it does more work in the default case where we arenʼt saving discatt.dat, but it was easier to write this way and does only negligible extra work: https://pastebin.com/HGtCeekZ
  4. Add options to work without generating RDK

    This program extracts both RDK and VID. There are some reasons the RDK might not be available, or even reasons one might want to have makemkvcon enable libredrive, but still extract the VID: https://pastebin.com/xnEmfsf2

Putting all of these together gives gen-rdk-vid.sh.

If you like these changes feel free to incorporate them upstream
DanielH is offline   Reply With Quote
Old 14th February 2024, 00:15   #30  |  Link
coricopat
Registered User
 
Join Date: Jan 2024
Posts: 27
Just for my confirmation, the above method is not expected to work with UHD BDs (presumably because MakeMKV doesn't have a valid HC itself, and "merely" uses LibreMode to defeat Bus Encryption), or is it?

And I guess there is still no other known way to defeat UHD BEE, other than LibreMode Drives?

I also saw https://github.com/xbmc/xbmc/pull/17145, where the author claims to have tested "UHD BD playback from disc" any ideas how he did that?

Thanks :-)
coricopat is offline   Reply With Quote
Old 7th March 2024, 20:10   #31  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 499
Quote:
Originally Posted by coricopat View Post
Just for my confirmation, the above method is not expected to work with UHD BDs (presumably because MakeMKV doesn't have a valid HC itself, and "merely" uses LibreMode to defeat Bus Encryption), or is it?

And I guess there is still no other known way to defeat UHD BEE, other than LibreMode Drives?

I also saw https://github.com/xbmc/xbmc/pull/17145, where the author claims to have tested "UHD BD playback from disc" any ideas how he did that?

Thanks :-)

I think you're right - it's not possible to get the RDK or VolumeId from MakeMKV for UHD discs.
nalor is offline   Reply With Quote
Old 7th March 2024, 20:13   #32  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 499
Quote:
Originally Posted by coricopat View Post
And I guess there is still no other known way to defeat UHD BEE, other than LibreMode Drives?
FindVUK get's the RDK from the DVDfab Passkey memory dump and uses it - so you can use FindVUK to get the RDK and defeat BEE this way.
nalor is offline   Reply With Quote
Old 8th March 2024, 02:52   #33  |  Link
coricopat
Registered User
 
Join Date: Jan 2024
Posts: 27
Quote:
Originally Posted by nalor View Post
FindVUK get's the RDK from the DVDfab Passkey memory dump and uses it - so you can use FindVUK to get the RDK and defeat BEE this way.
That sounds interesting.

The RDK would be still per device+disc, right? But once I have the RDK (for a given disc+device), I should then be able to properly copy it just by using libaacs + dd?

I assume I'd need the "DVDFab Passkey for Blu-ray" version and not "DVDFab Passkey Lite"?

Doesn't that mean that they need to have a drive host cert for UHD somewhere in their program? Or how else could they get an RDK?

Do you happen to know whether DVDFab messes around with the drive Firmware? I.e. I don't want it to update/etc. the drive firmware, because I bought some LibreFriendly Panasonic drive.

Thanks :-)
coricopat is offline   Reply With Quote
Old 8th March 2024, 22:08   #34  |  Link
coricopat
Registered User
 
Join Date: Jan 2024
Posts: 27
I tried that now with a test version (most recent release) of DVDFab Passkey for Blu-ray, but that doesn't seem to work.

First, DVDFab Passkey itself said, that it couldn't open the UHD, as the drive wouldn't be supported (it's a LibreFriendly drive with AACS2.0 module, Pioneer BDR-XS07TUHD).
So... do I need another drive?

Second, FindVUK said that DVDFab Passkey would no longer have the keys in memory and I'd need to downgrade. Could I just use DVDFab itself (no passkey) and would that still work to get the RDK of an UHD?
coricopat is offline   Reply With Quote
Old 10th March 2024, 01:16   #35  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,397
Not with that drive. DVDFab doesn't support Pioneer for UHD.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 12th March 2024, 13:58   #36  |  Link
MrPenguin
Mr Penguin
 
Join Date: Oct 2023
Posts: 26
MakeMKV with UHD

And yet MakeMKV still creates discatt.dat / discattd.dat files when creating encrypted / decrypted UHD backups. These files must contain something, or else why create them in the first place? Granted, I understand that enabling LibreDrive mode must make it impossible for MakeMKV to obtain an RDK, but what about the UHD's VID?

Last edited by MrPenguin; 12th March 2024 at 15:37.
MrPenguin is offline   Reply With Quote
Old 12th March 2024, 22:35   #37  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,397
Yes the VID is contained in the discatt.dat file. I have tools to extract it but nothing I can do with it except look at it. To use the VID you need a Media Key (which requires a device key), which we don't have. In any case, look at the very first post of this thread for information on the discatt.dat and how to extract the VID. When LibreDrive is enabled, the RDK is not there, as stated.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 12th March 2024, 23:13   #38  |  Link
MrPenguin
Mr Penguin
 
Join Date: Oct 2023
Posts: 26
Quote:
Originally Posted by SamuriHL View Post
Yes the VID is contained in the discatt.dat file. I have tools to extract it but nothing I can do with it except look at it.
How did you extract the VID please? This is the code for AACSv1:
Code:
VIDOFFSET=$(LC_ALL=C grep -m1 -aobP "\x04\x00\x00\x80\x00\x00\x00\x10" "${DAT}" | cut -f1 -d:)
is_int "${VIDOFFSET}"
if [ $? -ne 0 ]; then
        echo "Error: VID could not be located."
        exit 2
fi
VID=$(hexdump -e '16/1 "%02x"' -s $((VIDOFFSET + 8)) -n 16 "${DAT}")
but I have generated a discatt.dat for the same UHD disk using two different LibreDrive-enabled drives, and did not generate the same VID this way, suggesting that there must be more to it.

Quote:
To use the VID you need a Media Key (which requires a device key), which we don't have.
In theory, yes. Except that I have also noticed that two different disks can sometimes use the same Media Key. So it did occur to me at least to try every Media Key we know for the matching MKB version, just to see if it happens to unlock a working VUK...

Last edited by MrPenguin; 12th March 2024 at 23:22.
MrPenguin is offline   Reply With Quote
Old 12th March 2024, 23:34   #39  |  Link
SamuriHL
Registered User
 
SamuriHL's Avatar
 
Join Date: May 2004
Posts: 5,397
Code:
04 00 00 80 00 00 00 10
Search for those bytes. Then read 32 bytes after it. That's the VID. This is why I said read the first post cause it's all listed there. Using swiss file knife:

Code:
sfk hexdump -raw c:\temp\getrdk\discatt.dat +xex "/0400008000000010[32 bytes]/[part2]/" -tofile c:\temp\getrdk\vid.txt
That'll extract it. I created my own tools to read it using the same method.
__________________
HTPC: Windows 11, AMD 5900X, RTX 3080, Pioneer Elite VSX-LX303, LG G2 77" OLED
SamuriHL is offline   Reply With Quote
Old 12th March 2024, 23:41   #40  |  Link
MrPenguin
Mr Penguin
 
Join Date: Oct 2023
Posts: 26
Quote:
Originally Posted by SamuriHL View Post
Code:
04 00 00 80 00 00 00 10
Search for those bytes. Then read 32 bytes after it. That's the VID. This is why I said read the first post cause it's all listed there.
Yes, I have tried that already. Except that two different LibreDrive-enabled drives gave me two different VIDs for the same UHD disk, which doesn't sounds right.
MrPenguin is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:59.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.