Sponsored Links

Sponsored Links

JaicraB on Cobra USB JIG Protection RTOC Trick for PS3


Sponsored Links
167w ago - Today Spanish PlayStation 3 developer JaicraB has explained the Cobra USB JIG protection RTOC trick implemented for the PS3 against cloning the device.

To quote, roughly translated: Flynn sent me this text explaining this protective carrying the Cobra, I hope it will open the eyes of those interested in reversing the dumps.

EXPLAIN RTOC COBRA TRICK

The JIG Cobra has several protective measures to ensure that your code could not be used correctly even if your code could be dumped.

This trick RTOC in the registry is the first used for this purpose in addition to hinder analysis.
Registration is initially RTOC stored in the battery to keep the RTOC of lv2 and power it back later:

[Register or Login to view code]


At this point we have to explain that the OFFSET DELTA. DELTA OFFSET is a method used in the x86 in its original moments in the creation of computer viruses, to calculate the memory address in which we are in the sea of ​​bytes in RAM.

In the original time a computer virus when I did not know where he was pulled into an executable,
depending on the executable it could be an initial site or another, for it was invented DELTA OFFSET.

DELTA OFFSET can be used in any system, the procedure is:

  • Using the record that indicates the current execution address (or the next depending on the system)
  • Reducing the size of the previous code we use the value obtained from the registry.

Knowing this, and taking for example the x86 processor where the EIP register can not be read directly invented the trick make a call to a "subfunction" which is simply the following line to the call:

[Register or Login to view code]


X86 call instruction saves the top of the stack the address of the next instruction to itself. Thus using pop draw from the top of the stack this value, and stored in eax for example, and having the memory address where we only subtract the above would be missing and we have the exact calculation.

The PowerPC can use this trick using the BL instruction is equivalent (LINK BRANCH), which jumps to a "subfunction" but before you save LR in the record the following address to BL.

[Register or Login to view code]


At this point we see the trick used for the creation of the RTOC of charges at this time. If you look both r0 and RTOC are passed to 0:

[Register or Login to view code]


Subsequently, given the value 0x11DE0 to RTOC:

[Register or Login to view code]


A r0 is given the value 0x920:

[Register or Login to view code]


R0 is subtracted from the value of RTOC:

[Register or Login to view code]


Unlike the PowerPC x86 LR register can be read directly with mflr instruction, we put in RTOC the value obtained by the delta offset:

[Register or Login to view code]


To calculate the delta offset subtract final instructions executed before the delta offset, which were 4, or 16 bytes:

[Register or Login to view code]


Finally we add the value of r0 at the end of the delta offset RTOC, storing the result in the RTOC and this already takes RTOC suitable for this hook:

[Register or Login to view code]


It takes having the RTOC stored in the stack 3 arguments that the hook received:

[Register or Login to view code]


You call the function of the charges where the first argument will check for command 0x8202 (a special command to the usual):

[Register or Login to view code]


After making the necessary steps as charged, the battery recovers the original RTOC, like the arguments the hook received, it executes the original instruction that was overwritten in the syscall entry 379 (in this case) to have our hook, and call the original syscall lv2:

[Register or Login to view code]


Upon returning to retrieve the original LR from the stack and returns to the prompt

[Register or Login to view code]





Stay tuned for more PS3 Hacks and PS3 CFW news, follow us on Twitter and be sure to drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene updates and homebrew releases!

Comments 714 Comments - Go to Forum Thread »

• Please Register at PS3News.com or Login to make comments on Site News articles. Thanks!

Ron36's Avatar
#274 - Ron36 - 104w ago
dean has made small uninformative posts and many members have asked him to elaborate on his knowledge of the cfw but he has not responded to any of the requests, so either he knows nothing about the cfw or he can not say or is not willing to.

i suggest stop asking him and wait patiently to see where the cards will fall!

JOshISPoser's Avatar
#273 - JOshISPoser - 104w ago
my brain is barely working right now... this is hard.

uhhh... i don't like this (what we're discussing). i can't keep a thought for a minute though. deank, you need to not surround yourself with controversy like with dongles. you gotta let out a few more words; realize this, you're like a president or a leader to the ps3 scene. when you say something, it's gonna get dissected and stuff. idk what i'm talking about.

utar's Avatar
#272 - utar - 104w ago
For Deank to have developed the new version with the "Added support for 4.21 CFW (CEX)" he clearly must have access to the firmware, or at the very least have testers who do have access. I think it is safe to say this is legit.

From the changelog it is interesting though as there is clearly more than one 4.21CFW in development. I would think it is unlikely these were all developed independently and just so happened to be ready for Deank to add support at the same time. Presumably some new exploit must have been shared behind the scenes among a number of developers.

Anyway I'm sure if we all wait a short while these new cfws will appear

JOshISPoser's Avatar
#271 - JOshISPoser - 104w ago
that is what is confusing and bothering me. we can't make assumptions here, cause then consoles can be compromised. i sure hope another wanikoko brick fiasco doesn't happen.

deank, do you trust this source? if so, that's great! cause i do trust you

Longshot's Avatar
#270 - Longshot - 104w ago
Well guys you should update your multiman to the new version 04.06.00

It says:

  • Added support for 4.21CFW(CEX) (syscalls 6-10 required)

and some more so i wouldn't already run around and saying CFW 4.21 will never happen.. i would assume it will happen very soon if MultiMan adds support for it ! Don't you think so ?!

Sponsored Links

Sponsored Links
Sponsored Links

Sponsored Links







Advertising - Affiliates - Contact Us - PS3 Downloads - Privacy Statement - Site Rules - Top - © 2014 PlayStation 3 News