Sponsored Links

Sponsored Links

JaicraB on Cobra USB JIG Protection RTOC Trick for PS3


Sponsored Links
190w 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, Facebook and drop by the PS3 Hacks and PS3 Custom Firmware Forums for the latest PlayStation 3 scene and PlayStation 4 scene updates and fresh homebrew PS3 Downloads. Enjoy!
Sponsored Links
Sponsored Links

Comments 1258 Comments - Go to Forum Thread »

• Please Register at PS4News.com or Login to make comments on Site News articles.
 
#1228 - batesben - 8w ago
batesben's Avatar
thanx

#1227 - AseD - 8w ago
AseD's Avatar
thank you and merry christmas

#1226 - PS4 News - 9w ago
PS4 News's Avatar
27 - 12 - 2014 - Cobra ODE News - Update

We hope all our loyal supporters and users had a Merry Christmas!

We are happy to present Cobra 2.3 fw which adds DMC support across all version of Cobra ODE.

Installation instructions will follow over the next few days.

Download: Cobra_ODE_Firmware_v2.3.rar

In addition we are releasing a new accessory for 4.30A, 5.10B and 5.30A users. Instead of using the external clip on pcb to connect a USB storage device, you can now solder the Emu USB QSB to the second port of your PS3, which allows you to use your second USB port to connect USB storage for Cobra ODE.

If the USB storage is not present at boot of PS3, the port can be used for PS3 controller or normal XMB usb access. Check out the pictures below of the Emu USB QSB:

s3nint3!
Also below is multiMAN ver 04.66.08 BASE CEX (20150104) PKG from deank with the following changes:

Download: multiMAN ver 04.66.08 BASE CEX (20150104).pkg (39.82 MB) / Showtime 04.09.021 [CEX].pkg (7.50 MB) / Latest multiMAN Cover Packs by ZOMBIEKILLAH

Also available online (and from the WEB column).

Changes:

  • Fixed issues when using more than one external USB HDD on Cobra CFWs (4.46-4.66+)
  • Fixed issues with homebrew locks/blackscreen/invalid-discs and other weird errors (CFW 4.65CEX/DEX and 4.66CEX)
  • Removed habib's patches and added two different ones to improve compatibility
  • JB games from FAT32 USB HDDs will be mounted as /dev_usb (and not as /dev_usb***) - this issue appeared in CFW 4.20. /dev_usb is always the first usb hdd which the ps3 manages to mount. When it happens that your game is not on the first/fastest usb hdd it caused problems. "Reset USB Bus" was introduced to multiMAN more than a year ago, but it is now added to mmCM, too, without actual reset of the bus.

If you're running pre-patched CFW (4.65/4.66) I suggest that you use a clean one. wM/mM try to restore lv2 to original state, but sometimes it may not be possible.

I already posted about the 1st change, and the second (for now) is to ignore PARAM.SFO and a faulty LIC.DAT processing when launching a homebrew (the PS3 tries to check these files from /dev_bdvd). I don't like this patch, but all the tests I performed are positive and all games worked.

[Register or Login to view code]

This was all I can do for this weekend. When I find more time I may try to make it more robust and nice, but it will do for now. Please post back with your results.

IMPORTANT: if you are using webMAN and multiMAN/mmCM - UPDATE BOTH to the latest versions and restart your PS3 to start clean.

multiMAN ver 04.66.09 BASE CEX (20150107) PKG:

Download: multiMAN ver 04.66.09 BASE CEX (20150107).pkg (39.82 MB) / MultiMAN.CEX.Full.MEGA.RePacK.04.66.09.Plus.12,216.Covers.v6.8-ZMK.pkg by ZOMBIEKILLAH

multiMAN 04.66.09 is now available, too (online within mM and from the WEB column).

  • Fixed minor issue (mmCM) (regression from 04.66.07)
  • Added prompt to launch multiMAN if mmCM finds itself in non-cobra mode (fixes tiefputin1 issue)




multiMAN ver 04.66.10 BASE CEX (20150110) PKG:

Download: multiMAN ver 04.66.10 BASE CEX (20150110).pkg (39.82 MB) / multiMAN ver 04.66.10 BASE CEX (20150110).pkg (Mirror) / MultiMAN.FULL.12688.PS3.PSN.PS2.PSX.Covers.v7.0.(01.17.2015)-ZMK.pkg / MultiMAN.SMALL.x134.PS3.PSN.Covers.v7.1.Update.(02.01.2015)-ZMK.pkg

Changes in 04.66.09-10:

  • Fixed game covers for split ISO games
  • Fixed game backgrounds for ISO games
  • Fixed few issues introduced in .08

Dean

#1225 - jdim2006 - 9w ago
jdim2006's Avatar
thanks a lot

#1224 - PS4 News - 9w ago
PS4 News's Avatar
Quote Originally Posted by gundush View Post
Came to the party a little late. Is there a mirror for Cobra-USB_PS3_Updater_v1_0.pkg? Original host is no longer providing...

I merged your post in our ongoing Cobra support thread... there are related attachments in it here that may be of use: http://www.ps4news.com/forums/misc.php?do=showattachments&t=118726

#1223 - nukls - 9w ago
nukls's Avatar
thanks

#1222 - gundush - 9w ago
gundush's Avatar
Came to the party a little late. Is there a mirror for Cobra-USB_PS3_Updater_v1_0.pkg? Original host is no longer providing...

#1221 - bealzbub - 9w ago
bealzbub's Avatar
Great thread.

#1220 - parham62 - 9w ago
parham62's Avatar
Good Job

#1219 - apokalypse88 - 9w ago
apokalypse88's Avatar
Thanks

 

Sponsored Links

Sponsored Links







Advertising - Affiliates - Contact Us - PS4 Downloads - PS4 Forums - Privacy Statement - Site Rules - Top - © 2015 PlayStation 4 News