XboxHacker BBS
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2013, 11:53:29 AM


Login with username, password and session length


Pages: 1
  Print  
Author Topic: CDB11 calculation  (Read 4205 times)
ReX
Member
**
Posts: 17


View Profile
« on: May 02, 2006, 05:10:50 AM »

Someone can help me to understand MMC commands and particularly the CDB11, 12th byte (control). How to calculate control byte please?


Thx
Logged
carranzafp
Master Hacker
****
Posts: 337


View Profile
« Reply #1 on: May 02, 2006, 11:53:35 PM »

What exactly do you want achieve?
Logged
ReX
Member
**
Posts: 17


View Profile
« Reply #2 on: May 03, 2006, 01:56:09 AM »

I'm developping a Delphi project. the goal of the software is to automate the calculation of SS address, the reading of the SS on an original DVD, the dump and the modification of an ISO image.

For the reading of the SS on an original DVD, I need to know MMC commands.

Of the beginning I thought that it twelfth byte (CONTROL) was a CRC calculation, but now I have the impression that while leaving this byte to 0x00h it works without problem.

I read "Working Draft" MMC-5 and it's not clear for me concerning 12th byte.


If someone want to join this project he's welcome :-)
Logged
ReX
Member
**
Posts: 17


View Profile
« Reply #3 on: May 03, 2006, 02:04:15 AM »

I give an example:

MMC command to read SS (thanks Arakon):

AD | 00 | FF 02 FD FF | FE | 00 | 08 00 | 00 | C0

MMC-5 document says:

AD = opcode to READ DISC STRUCTURE
00 = Media Type: DVD
FF 02 FD FF = Address (however SS address is PSN 0xFD021E ??)
FE = Layer Number (Layer 0xFE ??)
00 = Format (OK)
08 00 = Allocation Length (OK)
00 = AGID (OK)
C0 = Control (??)


You see? it's not clear for me ...
Logged
MacDennis
Xbox Hacker
*****
Posts: 614


View Profile
« Reply #4 on: May 03, 2006, 02:18:24 AM »

The control byte is nothing special. It's not a checksum and it's not calculated. Just set it to 0xC0 when needed.
Logged
ReX
Member
**
Posts: 17


View Profile
« Reply #5 on: May 03, 2006, 02:25:50 AM »

The control byte is nothing special. It's not a checksum and it's not calculated. Just set it to 0xC0 when needed.

Ok, thx MacDennis and what about:
  FF 02 FD FF = Address (however SS address is PSN 0xFD021E ??)
  FE = Layer Number (Layer 0xFE ??)
Logged
ReX
Member
**
Posts: 17


View Profile
« Reply #6 on: May 03, 2006, 03:28:52 AM »

This CDB command given by Commodore4eva, who is this guy?

Where did he find these informations?


...
Logged
Interloper
Master Hacker
****
Posts: 186


Im with stupid ^


View Profile
« Reply #7 on: May 03, 2006, 03:40:57 AM »

This CDB command given by Commodore4eva, who is this guy?

Where did he find these informations?


...

Hes my hero Cheesy
perhaps dude working for samsung ?
Logged

My hand writing is too bad for a signature.
MacDennis
Xbox Hacker
*****
Posts: 614


View Profile
« Reply #8 on: May 03, 2006, 05:33:57 AM »

The control byte is nothing special. It's not a checksum and it's not calculated. Just set it to 0xC0 when needed.

Ok, thx MacDennis and what about:
  FF 02 FD FF = Address (however SS address is PSN 0xFD021E ??)
  FE = Layer Number (Layer 0xFE ??)
What about it? Leave it as it is. Those values are only checked and aren't actually used. Just use the default CDB command to read the SS.
Logged
MacDennis
Xbox Hacker
*****
Posts: 614


View Profile
« Reply #9 on: May 03, 2006, 05:35:39 AM »

Hes my hero Cheesy
perhaps dude working for samsung ?
Never heard about reverse engineering? This is xboxHACKER right? Learn some assembly and you can discover the exact same debug commands ..
Logged
ReX
Member
**
Posts: 17


View Profile
« Reply #10 on: May 03, 2006, 06:53:27 AM »

The control byte is nothing special. It's not a checksum and it's not calculated. Just set it to 0xC0 when needed.

Ok, thx MacDennis and what about:
  FF 02 FD FF = Address (however SS address is PSN 0xFD021E ??)
  FE = Layer Number (Layer 0xFE ??)
What about it? Leave it as it is. Those values are only checked and aren't actually used. Just use the default CDB command to read the SS.

Ok, therefore isn't interesting to try to understand?


Hes my hero Cheesy
perhaps dude working for samsung ?

Commodore4eva is'nt a hero. I find his behavior very strange. If I were paranoid I would say that its intrigues are calculated
To follow...
Logged
MacDennis
Xbox Hacker
*****
Posts: 614


View Profile
« Reply #11 on: May 03, 2006, 06:58:22 AM »

Ok, therefore isn't interesting to try to understand?
Correct, it's a non-standard CDB command. Not much to understand about it.
Logged
uberfry
Xbox Hacker
*****
Posts: 862



View Profile
« Reply #12 on: May 03, 2006, 11:23:49 AM »

Commodore4eva is'nt a hero. I find his behavior very strange. If I were paranoid I would say that its intrigues are calculated
To follow...

I just hope he's not in trouble...
Logged
Interloper
Master Hacker
****
Posts: 186


Im with stupid ^


View Profile
« Reply #13 on: May 03, 2006, 01:52:46 PM »

Hes my hero Cheesy
perhaps dude working for samsung ?
Never heard about reverse engineering? This is xboxHACKER right? Learn some assembly and you can discover the exact same debug commands ..

Reverse Engi- WhA?? goodness
Logged

My hand writing is too bad for a signature.
Interloper
Master Hacker
****
Posts: 186


Im with stupid ^


View Profile
« Reply #14 on: May 03, 2006, 01:57:35 PM »

Rex, if i want, i'll choose oscar the garbage man grouch to be my hero. MINE I SAY
Logged

My hand writing is too bad for a signature.
carranzafp
Master Hacker
****
Posts: 337


View Profile
« Reply #15 on: May 03, 2006, 06:22:44 PM »

I dont want to interrupt you research, but my tool already do all the thing you want to achieve... (including dumping the Security Sector from original game inserted) using cdb comands.

http://www.xboxhacker.net/index.php?option=com_smf&Itemid=33&topic=744.0

Of course you can work on any application you want but would be better develop new features

by the way, I used windows api DeviceIoControl to send commands to the drive.  I didn't try to decrypt the command to read the SS, I just send it like commodore4eva says: AD 00 FF 02 FD FF FE 00 08 00 00 C0  does not make much sense (appears to be an Read dvd structure command) but could have been any command that he wanted to patch on the firmware.
« Last Edit: May 03, 2006, 06:36:41 PM by carranzafp » Logged
ReX
Member
**
Posts: 17


View Profile
« Reply #16 on: May 04, 2006, 02:37:35 AM »

I dont want to interrupt you research, but my tool already do all the thing you want to achieve... (including dumping the Security Sector from original game inserted) using cdb comands.

http://www.xboxhacker.net/index.php?option=com_smf&Itemid=33&topic=744.0

Of course you can work on any application you want but would be better develop new features

by the way, I used windows api DeviceIoControl to send commands to the drive.  I didn't try to decrypt the command to read the SS, I just send it like commodore4eva says: AD 00 FF 02 FD FF FE 00 08 00 00 C0  does not make much sense (appears to be an Read dvd structure command) but could have been any command that he wanted to patch on the firmware.
Thanks a lot carranzafp, your app is exactly what I started to develop. I can stop it now... But i'me very interested by your source (look your PM), and if you want to share it then you will be MY hero  Wink


Rex, if i want, i'll choose oscar the garbage man grouch to be my hero. MINE I SAY
Of course Interloper, I did not want to criticize you, just to deliver my opinion (Commodore4eva could be a member of the SONY team or another competitor, why not?  Grin)

Logged
Pages: 1
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM