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 17th November 2016, 19:05   #21  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 402
Quote:
Originally Posted by spotter View Post
also any chance you would want to make this a project on github? Ex: I'd like to get it working within linux.
I'll publish the source on github after adding the last 1 or 2 features I'd like to implement.

It's written in Purebasic - and this language also supports linux (but I've never tried to compile something for linux... so I don't know how easy it will be).
nalor is offline   Reply With Quote
Old 17th November 2016, 20:30   #22  |  Link
spotter
Registered User
 
Join Date: Jan 2002
Posts: 265
I've never used pure basic, but i can help with getting it compiled on linux. I'm assuming you are are using the standard libraries libaacs libbdplus libraries from purebasic?
spotter is offline   Reply With Quote
Old 17th November 2016, 21:52   #23  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 402
Quote:
Originally Posted by spotter View Post
I've never used pure basic, but i can help with getting it compiled on linux. I'm assuming you are are using the standard libraries libaacs libbdplus libraries from purebasic?
Reimplemented the necessary parts directly in purebasic

So nothing external necessary to take into account.
nalor is offline   Reply With Quote
Old 29th November 2016, 06:26   #24  |  Link
spotter
Registered User
 
Join Date: Jan 2002
Posts: 265
weird Q, do you know how to handle bus encryption? In that case my ddrescue method would probably need to be implemented in place of whatever tool is doing the "bus decryption" unless its possible to authenticate to the drive and then reads just work as expected? (don't know enough about bus encryption obviously)
spotter is offline   Reply With Quote
Old 30th November 2016, 12:44   #25  |  Link
dizzier
Registered User
 
Join Date: Jan 2010
Posts: 74
Bus encryption is handled by libaacs if you have a working host certificate (which we have). Pretty nice description is available on libaacs git: http://git.videolan.org/?p=libaacs.g...e8912684fb7b9d
Most discs do not implement bus encryption anyway, so it probably is not really a big problem.
dizzier is offline   Reply With Quote
Old 30th November 2016, 17:53   #26  |  Link
spotter
Registered User
 
Join Date: Jan 2002
Posts: 265
ok, what that means to me is that my ddrescue type method to recover damaged disks will not work with a bus encrypted disc.

I was hoping it was more along the lines if you cryptographically authenticate to the player/drive/disc than any read will be unencrypted otherwise the drive will encrypt/mangle it, but guess that's not the case and that it's actually a generation of a "dynamic" key that is used to encrypt (in drive) and decrypt (in player) the data.

my current ddrescue methodology is essentially

ddresccue -> iso (repeat until one gets it 100% might require multiple media copies, but all can be damaged)

BlurayTestAndDecrypt -> decrypted iso

(and I'm trying to see how dvdfab/anydvd act on a encrypted and decrypted iso, would they decrypt an iso, would they remove the "structural" (i.e. non crypto) protections from a decrypted iso)

I guess its good that not many discs use it then.
spotter is offline   Reply With Quote
Old 10th December 2016, 14:18   #27  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,177
I want to test your tool, but after download I get a warning from Waterfox that this file is a Virus or Malware.
__________________
chapterEditor || Matroska-Playback || hSplit || DiscShare
hubblec4 is offline   Reply With Quote
Old 29th December 2016, 23:49   #28  |  Link
candela
Registered User
 
Join Date: Jun 2005
Posts: 216
1) There appears to be a problem with non-encrypted m2ts file in mode 3/4 (mode 2 works fine)

Mode3
Code:
2016-12-29 23:32:24 # 1000472648 # On Drive >F:\< - 1/46 - File >F:\BDMV\STREAM\00002.m2ts< Mode >Decrypt - StopOnError<
2016-12-29 23:32:24 # 1000472657 # Bluray_TestDecryptFile - SrcFile >F:\BDMV\STREAM\00002.m2ts< DstFile >D:\BDMV\EE59C14A4AD80A352295D2CDC7CF349F90E34250_ROPE_G51\00002.m2ts<
2016-12-29 23:32:24 # 1000472723 # Filename >F:\BDMV\STREAM\00002.m2ts< Size GB >  0.00< Unit_Enc >       0< Unit_Unenc >       9< Unit_Err >       0< Duration >0:00:00< DECS
2016-12-29 23:32:24 # 1000472734 # Something went terribly wrong - filesize different!!! Src >55296<Dst >-1<
Mode2
Code:
2016-12-29 23:45:40 # 1001268631 # 1/1 - Srcfile >F:\BDMV\STREAM\00002.m2ts< Mode >Test - AdvancedTest<
2016-12-29 23:45:40 # 1001268639 # Bluray_TestDecryptFile - SrcFile >F:\BDMV\STREAM\00002.m2ts< DstFile >D:\BDMV\00002.m2ts<
2016-12-29 23:45:40 # 1001268699 # Filename >F:\BDMV\STREAM\00002.m2ts< Size GB >  0.00< Unit_Enc >       0< Unit_Unenc >       9< Unit_Err >       0< Duration >0:00:00< TSTA
2016-12-29 23:45:40 # 1001268714 # Duration >0:00:00<
2016-12-29 23:45:40 # 1001268726 # Overall duration >0:00:00<
2) changing the DebugLog value in the ini doesn't appear to affect the log files, I always get the same information

3) Can you built in support for KEYDB.cfg entries with other keys than VUK:
- 1 or more UnitKey
- MK + VID
candela is offline   Reply With Quote
Old 30th December 2016, 23:55   #29  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 402
Quote:
Originally Posted by spotter View Post
ok, what that means to me is that my ddrescue type method to recover damaged disks will not work with a bus encrypted disc.
Best option: use a drive that is not bus-encryption-capable

This way there's no need to worry if a disc is bus-encryption-enabled or not.
nalor is offline   Reply With Quote
Old 31st December 2016, 00:02   #30  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 402
Quote:
Originally Posted by hubblec4 View Post
I want to test your tool, but after download I get a warning from Waterfox that this file is a Virus or Malware.
I know - this topic is a neverending story... I'm using purebasic to write my tools and there's something in the exe files that is suspicous to a few anti-virus/malware tools (take a look at the findvuk thread, I've tried to find a way to circumvent the problem but finally gave up because it's simply not possible without changing the dev-language or something like this.).

I'll promise that I've never and will never integrate harmful procedures into my tools - but finally it's up to you if you want to trust me or not.
nalor is offline   Reply With Quote
Old 31st December 2016, 00:11   #31  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 402
Quote:
Originally Posted by candela View Post
1) There appears to be a problem with non-encrypted m2ts file in mode 3/4 (mode 2 works fine)
Need to check - I know I've fixed a few bugs since my last release, but unfortunately also started to 'modularize' parts of the code and haven't finished yet.


Quote:
Originally Posted by candela View Post
2) changing the DebugLog value in the ini doesn't appear to affect the log files, I always get the same information
Debug log is only available in very few areas of the code - my current refactoring will introduce different loglevels that are available in all areas - so once I'm finished it should be easier to get more logoutput

Quote:
Originally Posted by candela View Post
3) Can you built in support for KEYDB.cfg entries with other keys than VUK:
- 1 or more UnitKey
- MK + VID
Should be possible - but need to finish the other work before I'll start to implement this one.
nalor is offline   Reply With Quote
Old 5th January 2017, 22:51   #32  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 402
Released a new build - it fixes the problem reported by candela and also introduces the ability to decrypt files with mediakey+volumeid or unitkeys from keydb.cfg file.
But I have to admit that I haven't tested this feature... so please keep me posted if it's working as expected

I've changed the logging procedure and splitted the source into lot's of smaller modules and it's possible to set the loglevel for each module as you want.
There's a new entry in the ini file called 'LogLevel' and usually only a 'Default' entry is present and set to level 2='INFO'

Logentries look like:
Code:
2017-01-05 22:28:20 # 13865088 #  [I] bluray_udf / _UDF_Parse_FileSystem /
format is:
date+time - milliseconds - loglevel - module - procedure - logentry

so in case you want for example less logoutput for the 'bluray_udf' module, simply add a line 'bluray_udf=1' into the loglevel ini section and now only errors and warnings are logged.

I made a few simply tests and I think it should work

In case of errors just come back to me and I'll try to fix them.
nalor is offline   Reply With Quote
Old 6th January 2017, 01:32   #33  |  Link
candela
Registered User
 
Join Date: Jun 2005
Posts: 216
Some basic test shows the unencrypted m2ts bug is fixed and it works with only a unitkey.

Btw, if a unitkey is missing (eg multiple unitkeys required but only 1 known) you get an error but the file isn't copied. Perhaps there should be an option to copy the file encrypted. Then the encryption can still be removed later if a "better" key is found

Last edited by candela; 6th January 2017 at 01:59.
candela is offline   Reply With Quote
Old 8th January 2017, 08:38   #34  |  Link
spotter
Registered User
 
Join Date: Jan 2002
Posts: 265
Quote:
Originally Posted by nalor View Post
Best option: use a drive that is not bus-encryption-capable

This way there's no need to worry if a disc is bus-encryption-enabled or not.
true, and it turns out the drive in my linux box where I make the ddrescue copies doesn't have bus encryption, but if this drive dies, then will be hard to replace.
spotter is offline   Reply With Quote
Old 8th January 2017, 11:12   #35  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 402
Quote:
Originally Posted by spotter View Post
true, and it turns out the drive in my linux box where I make the ddrescue copies doesn't have bus encryption, but if this drive dies, then will be hard to replace.
This is the reason why I started this thread here: List of bluray-drives with their features (e.g. BusEncryptionCapable)

This way it's easier to get a replacement drive
nalor is offline   Reply With Quote
Old 8th January 2017, 21:56   #36  |  Link
spotter
Registered User
 
Join Date: Jan 2002
Posts: 265
I understand, just that the vast majority (if not all?) of the ones without bus encryption aren't readily available.
spotter is offline   Reply With Quote
Old 8th January 2017, 22:23   #37  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 402
When I check my local online flee market I find a lot of available drives without bus encryption.
You cannot buy them new, but it's easy to find used drives.

Gesendet von meinem E5823 mit Tapatalk
nalor is offline   Reply With Quote
Old 13th January 2017, 21:53   #38  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,177
Quote:
Originally Posted by nalor View Post
I know - this topic is a neverending story... I'm using purebasic to write my tools and there's something in the exe files that is suspicous to a few anti-virus/malware tools (take a look at the findvuk thread, I've tried to find a way to circumvent the problem but finally gave up because it's simply not possible without changing the dev-language or something like this.).

I'll promise that I've never and will never integrate harmful procedures into my tools - but finally it's up to you if you want to trust me or not.
Thanks for this info.
I was wondering because I have no AntiVirus software installed.
And I have never seen before a virus warning directly from Waterfox.
__________________
chapterEditor || Matroska-Playback || hSplit || DiscShare
hubblec4 is offline   Reply With Quote
Old 21st January 2017, 00:13   #39  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 402
Released a new version - the only relevant change is a new mode to list the correct unit key for all files.
nalor is offline   Reply With Quote
Old 3rd February 2017, 22:22   #40  |  Link
nalor
Registered User
 
Join Date: Dec 2013
Posts: 402
Release 0.51 - includes 2 bug fixes that can be relevant in case you're using either testmode-simple or testmode-advanced
nalor 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 07:24.


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