PS4 News on Facebook! PS4 News on Twitter! PS4 News on YouTube! PS4 News RSS Feed!

Home PS4 News - Latest PlayStation 4 and PS3 News

July 8, 2011 // 6:59 pm - 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.


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]

JaicraB on Cobra USB JIG Protection RTOC Trick for PS3

Follow us on Twitter, Facebook and drop by the PS3 Hacks and PS3 CFW forums for the latest PlayStation 3 scene and PS4 Hacks & JailBreak updates with PlayStation 4 homebrew PS4 Downloads.

#1239 - Isleofdoom - January 14, 2015 // 3:46 pm
Isleofdoom's Avatar
He is already available are of the lv2 patch issue in habib cfw n I'm working on ps2exit screen n controller

As far as I'm aware there won't be a leaked version as its one guy who is working on this as the other is only helping with things while I work on synch n what not

#1238 - drphuz - January 14, 2015 // 2:50 pm
drphuz's Avatar
Mm has been updated to 4.66.10 as of January 10th, supports Rebug 4.65.2 do not install the lvl2 patches on the release version, but its fine on the leaked

#1237 - Isleofdoom - January 14, 2015 // 2:37 pm
Isleofdoom's Avatar
Got to love his manager its ashame some1 else knows how it works and was explained to me in great detail and how new cfw support is added along with the cobra port but either way its a great manager I have respect for his programming

#1236 - loddi - January 14, 2015 // 2:26 pm
loddi's Avatar
The update works fine

#1235 - ivanvikal - January 14, 2015 // 11:30 am
ivanvikal's Avatar

#1234 - Chlob - January 13, 2015 // 7:14 pm
Chlob's Avatar
and for the 4.66?

#1233 - Ohneworte - January 11, 2015 // 2:10 pm
Ohneworte's Avatar
good work

#1232 - Skychaser - January 9, 2015 // 10:01 pm
Skychaser's Avatar
Thanks for the update!

#1231 - Isleofdoom - January 8, 2015 // 8:11 am
Isleofdoom's Avatar
MULTIMAN 4.66.09 with some new update fixes along with deank original ntfs support. Also changes within the sys folder of 2bin and 1elf.

Each containing valid info for cfw support in sub_directory. This cod possibly be used as a way around 3k if containing the ofw emu replacement

#1230 - topantita - January 5, 2015 // 10:49 pm
topantita's Avatar
great update!