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. |
4th October 2024, 11:29 | #1 | Link |
Registered User
Join Date: Sep 2024
Posts: 12
|
Decrypting MKBv81 disc with libaacs
Hello!
This thread is not asking for solution but some background knowledge. I'm trying to understand how AACSv1 works and there is a strange phenomenon for me. I have an MKBv81 disc and a driver with LibreDrive enabled.
Here are some questions.
The following is the information from makemkv: Drive Information OS device name: F: Current profile: BD-ROM Manufacturer: BUFFALO Product: Optical Drive Revision: BU10 Serial number: ############ Firmware date: 2117-05-30 17:28 Bus encryption flags: 1F Highest AACS version: 81 LibreDrive Information Status: Enabled Drive platform: MT1959 Firmware type: Original (unpatched) Firmware version: 0.BU10O DVD all regions: Yes BD raw data read: Yes BD raw metadata read: Yes Unrestricted read speed: Yes Disc Information Label: ################### Timestamp: ################## Protection: AACS v81 Data capacity: 3.8 Gb Disc type: BD-ROM Number of layers: 1 Channel bit length: 74,5 nm (25.0 GB max. per layer) |
6th October 2024, 09:48 | #3 | Link |
Registered User
Join Date: Feb 2015
Posts: 52
|
You might have the keys cached from libaacs.dll. Check the MK, VID, and VUK directory in your Appdata\Roaming\aacs folder for files named with the DiscID. If they are cached libaacs.dll doesn't use your keydb.cfg file or need the HC.
You can always add the current v81 HC to your keydb.cfg. It might fix the Xreveal issue. The v81 HC can be found in this thread: https://forum.doom9.org/showthread.p...91#post1990091 I myself went down the rabbit hole of AACS when we lost AnyDVD-HD. I didn't want to depend on something that could go away, so I made my own program to generate keys using aacs_info and aacskeys with the help of libaacs.dll. Hasn't failed me yet with Xreveal using my generated keydb.cfg. Works with MKBv81 and BEE discs.
__________________
Blu-Ray Ripper 0.112c/0.21a |
6th October 2024, 11:48 | #4 | Link | |
Registered User
Join Date: Sep 2024
Posts: 12
|
Quote:
Thanks! I just tried on my old computer which did not install any blu-ray related software. And libaacs cannot decrypt the disc with only keydb. It might because of VUK cache or makemkv I installed. |
|
6th October 2024, 14:42 | #5 | Link |
Registered User
Join Date: Sep 2024
Posts: 12
|
The MKBv81 HC is somehow invoked by my drive ( at least aacskeys said so).
But aacskeys managed to extract MK. And thanks to makemkv, I can extract VID. So all I have to do is merely calculate VUK manually and use BlurayTestAndDecrypt to extract ISO. OK, now problem solved. |
6th October 2024, 15:22 | #6 | Link |
Registered User
Join Date: Feb 2015
Posts: 52
|
aacs_info.exe will give you MK, VID, VUK, and RDK with libaacs.dll.
You can try this. https://www.dropbox.com/scl/fi/zn4ey...=ayg873mi&dl=0
__________________
Blu-Ray Ripper 0.112c/0.21a Last edited by Bandits; 6th October 2024 at 15:26. |
6th October 2024, 15:37 | #7 | Link | |
Registered User
Join Date: Sep 2024
Posts: 12
|
Quote:
|
|
6th October 2024, 16:46 | #8 | Link |
Registered User
Join Date: Feb 2015
Posts: 52
|
You didn't have any other decrypter's running when you tried did you?
I've only used it for Blu-Ray's on one non-UHD drive that does support Bus Encryption. I have a UHD drive in another computer I can try later, but it is a UHD friendly drive.
__________________
Blu-Ray Ripper 0.112c/0.21a |
7th October 2024, 00:46 | #10 | Link |
Registered User
Join Date: Feb 2015
Posts: 52
|
Ya, totally not working on UHD. Does work in UHD friendly drive with a normal Blu-Ray but not UHD. Now that I broke out a UHD disc from storage, I will see if I can make it work.
__________________
Blu-Ray Ripper 0.112c/0.21a |
10th October 2024, 15:31 | #11 | Link | |
Mr Penguin
Join Date: Oct 2023
Posts: 37
|
Quote:
On Linux, this alternative implementation is called libmmbd.so.0. I don't know what it's called on Windows - perhaps libmmbd.dll? The ability to choose an alternative libaacs DLL at runtime is part of libbluray, which is one of VLC's dependencies. However, I would expect aacs_info to have a static dependency on libaacs. Last edited by MrPenguin; 10th October 2024 at 15:41. |
|
11th October 2024, 20:32 | #12 | Link |
Registered User
Join Date: Feb 2015
Posts: 52
|
So, trying to understand your issue better. You have a MKBv81 Blu-Ray (AACSv1) disc and are using an official UHD (AACSv2) drive?
I have tested a MKBv81 disc in a (AACSv1) and friendly (AACSv2) drive, both working with Generate Keys. I don't have an official (AACSv2) drive to test. If you have MakeMKV installed, could you test your official (AACSv2) drive by opening a command prompt, navigating to your MakeMKV directory, and running makemkvcon64.exe info X: (Where X is your drive letter). Leaving that window open, try running Generate Keys. I'm thinking bus encryption for your official (AACSv2) drive is where your issue is. Your drive might be Libredrive capable, but I don't think the bypass works all the time, only when something activates it. Using makemkvcon64.exe info X: will activate Libredrive, bypassing bus encryption until you eject the disc. As for MakeMKV's version of libaacs.dll. For Windows it's libmmbd.dll or libmmbd64.dll. Apparently, it can be renamed to libaacs.dll and libbdplus.dll and copied to your players directory. If you are using this setup, this is why it doesn't matter what is in your keydb.cfg. I can also confirm it won't work with aacs_info.
__________________
Blu-Ray Ripper 0.112c/0.21a |
12th October 2024, 08:48 | #13 | Link | |
Registered User
Join Date: Sep 2024
Posts: 12
|
Quote:
Last edited by prozistka; 12th October 2024 at 08:50. |
|
12th October 2024, 14:16 | #14 | Link | ||
Registered User
Join Date: Sep 2024
Posts: 12
|
I tried to use aacs_info and it showed:
Quote:
Quote:
|
||
12th October 2024, 19:53 | #15 | Link |
Registered User
Join Date: Feb 2015
Posts: 52
|
I take that your drive letter is "f"
What does "aacs_info.exe f: keydb.hed" report when ran from inside Generate Keys folder? What does "aacskeys.exe -v f" report? Or just "aacskeys.exe f"? Can you run "makemkvcon64.exe f --list" and get your disc:#? If you only have 1 drive it is usually disc:0. Then run "makemkvcon64.exe info disc:#". If it is working it should show "Using LibreDrive mode" and list the disc contents. If that works, leave the window open and retry getting your keys. When done, to turn Libredrive back off close the makemkvcon64.exe window and eject your disc. I still think bus encryption is blocking your official drive.
__________________
Blu-Ray Ripper 0.112c/0.21a |
13th October 2024, 07:21 | #16 | Link | ||
Registered User
Join Date: Sep 2024
Posts: 12
|
Quote:
Using libre drive mode changes nothing. orz Quote:
|
||
14th October 2024, 08:01 | #17 | Link |
Registered User
Join Date: Feb 2015
Posts: 52
|
The current keydb.cfg does have this:
0xF0F3C93672426E499F5DB4F7FBF297C5DFE75465 = BLUE_PROTOCOL_SONGS_COLLECTION (『BLUE PROTOCOL』Songs Collection) | D | 2024-04-23 | V | 0xA8826699531953FB8E657E1D5789A2A0 | M | 0x309C50F4694A78C5B80A5DF7C3D61217 | I | 0x0DAA713CFF7F0BEE65D77CF3831AEC84 | U | 1-0xEC1179CC6013653043597A992DF94CFE ; MKBv81/FindVUK 1.79 - MainPlaylist: 01001.mpls - VolumeSize: 3306749952 (BD) libaacs.dll will use this info to play the disc if it can't do it itself. I can only reproduce this error: ERROR: SENDHOSTCHAL: SK: 0x5, ASC: 0x6F, ASCQ: 0x00, errnr: -2 by not having the correct HC. Your logs show you have a good HC for v81 disc's, which is located in HostKeyCertificate.txt for aacskeys. This disc doesn't even require bus encryption, but I do not know if official drives use it all the time regardless of the disc's request. Seems crazy that aacs_info and aacskeys can't handle a AACSv1 disc regardless of the drive. These errors: bad entry at or around line 156839 syntax error: line 156839 bad entry at or around line 156839 indicate you have bad entries in your keydb.cfg. You should get the newest version.
__________________
Blu-Ray Ripper 0.112c/0.21a |
29th October 2024, 08:24 | #18 | Link | |
Registered User
Join Date: Sep 2024
Posts: 12
|
Quote:
I bought a cheap(like $3) normal AACSv1 drive and aacs_keys ran successfully! Last edited by prozistka; 29th October 2024 at 08:32. |
|
29th October 2024, 13:31 | #19 | Link | |
Mr Penguin
Join Date: Oct 2023
Posts: 37
|
Quote:
Now it is conceivable (because I have a LG drive that does this....) that your AACSv1 host certificate is being accepted by the AACSv1 revocation list, but is still being rejected by the AACSv2 one, despite you decrypting an AACSv1 disk. I also own a Pioneer UHD drive that does not apply the AACSv2 revocation list to an AACSv1 host certificate when decrypting an AACSv1 disk. So I consider my LG's behavior here to be down to buggy firmware. Last edited by MrPenguin; 29th October 2024 at 20:32. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|