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!

PS3 News's Avatar
#189 - PS3 News - 127w ago
Below are details from anonymous on IRC (via DemonHades - pastebin.com/a5fKfFHw) on using a USB drive as a Blu-ray drive to dump the entire RAM alongside the Cobra USB Payload 2 code leaked.

Using USB DRIVE as Blu-ray Drive:

[Register or Login to view code]


Using USB DRIVE as Blu-ray Drive:

[Register or Login to view code]


Dump entire ram when USB specific is introduced:
[code]
/****************************************************************/
/* JaiCraB 14/07/2011 */
/* Plugin TheGrid: */
/* Dump entire ram when USB especific is introduced */
/* Private use to demonhades.org */
/****************************************************************/
#include "defines.h"
#include "gccpch.h"
#include "ps3Utils.h"
#include "ps3FileSystemUtils.h"

void lv1dumplv1()
{
uint64_t Valor;
uint64_t x=0,i=0;

char internal_buffer[255];
unsigned char buffer_dump[0x400];
int result, fd;

for (i=0;i

PS3 News's Avatar
#188 - PS3 News - 131w ago
Here is the mmCM v04.02.04 (20120315) Update for those with the Cobra dongle and the changes outlined below, as follows:

Download: [Register or Login to view links] / [Register or Login to view links] (Mirror)

mmCM v04.02.04 Update (20120315) Changelog:

04.02.04 - (Stereo 3D related)

  • Fixed rare issue when launching video files from NTFS and /net_host (when file is >2GB and there is no space on /dev_hdd1)
  • Added support for playing video files (including AVI3D) from NTFS drives and remote /net_host servers
  • Returning from Stereo Player will fall back to standard 2D mode
  • Stereo files (avi3d) in 1920x1080 resolution are treated as SBS 960x1080 per eye (default)
  • Audio output uses Dolby Digital if available (for 5.1 AC3 audio)
  • Controls:
    [START] - Pause / Resume
    [RIGHT / LEFT] - Skip 120 sec forward/rewind
    [DOWN / UP] - Skip 10% forward/rewind
    [SELECT] - Toggle 4x fast-forward / normal playback
    [R3] - Toggles SBS and TB/OU modes if autodetection fails
    [CIRCLE] - Return to mM
    [TRIANGLE] - Exit to XMB
    [L1/R1/L2/R2] - Change L/R-eye color bias in anaglyph display mode

Finally, from zadow28:

Here is the Cobra-USB_PS3_Updater_v1_0.pkg unpacked and decrypted.

I named the eboot.bin cobra1.elf the eboot.bin decrypted: [Register or Login to view links]

The pkg extracted: [Register or Login to view links]

I've manage to sign the cobra1.elf with 3.55 keys:

[Register or Login to view code]


Here is the cobra eboot with 3.55 keys: [Register or Login to view links]

The strings from cobra.elf

[Register or Login to view code]


From CrashSerious: Case in point: (first 8 lines of the cobra driver)

[Register or Login to view code]


The device ID and Vendor ID should be useful eventually, but it's so easy to get I'm not sure it's worth mentioning. (Though, it is documented in the wiki.) The device GUID is simply a windows thing so the libusb drivers can be found in the registry, etc.

From lewy20041: Cobra PC update and Debugging Tools for Windows

I have used Debugging Tools for Windows when the proces cobraflash.exe were used to flash Cobra-USB_Firmware_v5.0.cba to dongle and here is the outcome to open this file you need to install Debugging Tools for Windows. maybe some one can look at this. there are wery interesting info about cobra update process on pc.. have fun.

Download: [Register or Login to view links]

Some of it:

[Register or Login to view code]



I used 7 zip on cobra.elf ([Register or Login to view links]), inside there are some more files without extensions.. ran it in ida pro and they are also regenized as PPC elf 64 and now the strings look little different: [Register or Login to view links]

From blazek566: Got this from the cobra1 file.. tell if its any good [Register or Login to view links]

Finally from zadow28: Been testing my new tracker on the cobraflash and got some visual results with big difference in security. you can see the results here.

first download: [Register or Login to view links]

small guide to open the visual files, then download the visual files: [Register or Login to view links]

just open the files with the guide. i would recommend cobratrack first. blue spot is start, and you scroll in with mouse. this is from start, too when i load the different images.

its show the way with fake loops, as they are in the software (encryption) the path. it speaks for themselves.

regards

PS3 News's Avatar
#187 - PS3 News - 131w ago
Here is the mmCM v04.02.03 (20120313) Update for those with the Cobra dongle and the changes outlined below, as follows:

Download: [Register or Login to view links] (7.67MB) / [Register or Login to view links] (7.67MB - Mirror) / [Register or Login to view links]

mmCM v04.02.03 Update (20120313) Changelog:

  • Added experimental/POC support for frame-packed 3D video playback
  • Video files in AVI 3D format must be named with .avi3d (AVI3D) file extension
  • Supported formats:
    - DivX or XviD in AVI container (FourCC codes must be divx/DX50. When XviD codec is used, mM will change the IDs automatically)
    - SIDE-BY-SIDE 3D: 1920x 720 ( 960x720 frame per eye)
    - TOP-BOTTOM(O/U): 1280x1080 (1280x540 frame per eye)
  • Simple video controls in stereo player: [START] - Pause playback, [CIRCLE] - Quit playback, [UP/DOWN/LEFT/RIGHT] - Adjustments for anaglyph mode
  • If TV set supports 3D video playback - 3D AVI files will be played back in 3D mode
  • If TV set does not support 3D video playback - 3D AVI files will be played back in red/cyan anaglyph mode (Red-Cyan glasses needed)
  • Two stereo samples in SBS and TB format (xvid_encraw used for encoding): [Register or Login to view links]

PS3 News's Avatar
#186 - PS3 News - 131w ago
Here is mmCM v04.02.02 (20120313) Update for those with the Cobra dongle and the changes outlined below, as follows:

Download: [Register or Login to view links] (7.50MB)

mmCM v04.02.02 Update (20120313) Changelog:

  • Added sort options in File Manager:
    -> SELECT+R2 changes sort order: name / date
    -> SELECT+L2 changes sort order: ascending / descending
  • Fixed overlapping of text entries in context menu in File Manager mode
  • Added function to change the font in File Manager mode by pressing [R3]
  • Exiting with {PS} button will save last state and options
  • Added custom commands to FTP (quit/restart the application and shutdown/restart the PS3)
  • Improved font rendering (faster and no more blue-tint artifacts)
  • Improved graphics rendering (no more GUI glitches

PS3 News's Avatar
#185 - PS3 News - 132w ago
Here is mmCM v04.02.01 (20120307) Update for those with the Cobra dongle and the changes outlined below, as follows:

Download: [Register or Login to view links] (6.56MB)

mmCM v04.02.01 Update (20120307) Changelog:

  • Improved FTP performance:
    -> 95% of theoretical speed over 100Mbit connection (send/receive)
    -> 90% of theoretical speed over 1Gbit connection (receive) (or 50% of max when sending to PS3)
  • Improved /net_host performance
  • Improved performance when copying files in File Manager mode
  • FTP test results: [Register or Login to view links]

When viewing the test results above you will see that this 'Minor Update for those who seek the fastest FTP performance on the PS3' infact will get it, as it beats all other 'homebrew' FTP apps like Blackbox, etc. hands down, no contest here.

[Register or Login to view code]


Sponsored Links

Sponsored Links
Sponsored Links

Sponsored Links







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