Sponsored Links

Sponsored Links

JaicraB on Cobra USB JIG Protection RTOC Trick for PS3


Sponsored Links
169w 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 728 Comments - Go to Forum Thread »

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

PS3 News's Avatar
#193 - PS3 News - 122w ago
Following up on the previous Cobra mmOS multiMAN Cobra Manager (mmCM) updates, today condorstrike has made available the mmCM v04.03.00 changelog alongside mmOS PS3 File Manager functions detailed below.

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

To quote from Tortuga-Cove.com (linked above) and via pastie.org/4004077 on the changes:

04.03.00 -

  • [Register or Login to view links]
  • Added support to launch DVD-Video titles (disc/folder format) from mmOS and other display modes (Showtime Media Player required)
  • Added support to load DVD-Video movies in ISO format from DVDISO folder (Showtime Media Player Required) (for non-Cobra Firmwares)
  • Added option to override SBS/TB modes in stereo player for .avi3d video titles (with L3/R3)
  • Changed: File Manager is replaced by a new powerful and memory efficient engine (mmOS) to resemble desktop environment

mmOS features:

  • Uses just 1-2MB of RAM (about 10-15 times less than the old File Manager mode), intuitive and faster
  • Desktop + Taskbar + 7 Windows + Desktop Shortcuts + Clock + Tray + Clipboard
  • Clipboard and each window support up to 4096 entries
  • Window properties: minimize, restore, close, move, sort contents by name/size/date (asc/desc), fast scroll in rows and pages
  • Window history: 16 path levels deep (forward and backward), window state and current scroll/cursor position
  • Window contents: content icons/names/size/date, status bar, header, scrollbar
  • Window actions (single click/tap): single/multiple entry selection
  • Window actions (double click/tap): start music playback, image viewer, hex/text viewer, launch executable files (.self/EBOOT.BIN), play video titles (standard 2D and AVI3D), play DVD folders/ISO, direct-boot or load "folder/jb" games, load Blu-ray/DVD-Video/PS3/PSP/PS2 ISO files and BIN+CUE PSX images, load AVCHD video folders, mount folders to install PKG files, install themes and launch PSX games from CD-R discs (when DDA mode is enabled: PSX.EXE/SYSTEM.CNF/ps1_*emu.self)
  • Taskbar actions: minimize/restore a window, minimize all, change active window
  • Context/command menu functions: Copy (copy selected entries to clipboard), Cut (copy selected entries to clipboard; entries will be deleted after "Paste"), Paste (paste clipboard contents), Paste as ISO (create an ISO file from a single folder selected with "Copy"), Delete, Rename, Properties, Create New Folder, Create Shortcut, Shadow for PKG game (when a PS3_GAME folder is selected from a game under /dev_hdd0/GAMES), Activate BD-Mirror (when a PS3_GAME folder is selected from a game under /dev_usb***/GAMES), Eject Disc, Open in HEX Viewer, Refresh Net Host
  • Added option in "Settings" - "Swap Sticks In mmOS - Change actions of Left and Right Sticks in mmOS."

Navigation:

  • Right Stick - Move mouse pointer (can be changed to Left Stick in Settings "Swap Sticks in mmOS")
  • Left Stick - Move active window (can be changed to Right Stick in Settings "Swap Sticks in mmOS")
  • LEFT/RIGHT - One directory level back (history) / forward
  • UP/DOWN - Scroll up/down window contents
  • L2/R2 - (PgUp/PgDn) Scroll window contents in pages
  • CROSS - (single tap) Select/Deselect entry
  • CROSS - (double tap) Execute/View/Play/Open folder
  • CIRCLE - (right click) Open command/context menu
  • SQUARE - (ALT-TAB) Switch active window
  • SELECT+(CROSS double tap) - Open folder in new window
  • SELECT+(CIRCLE) - (ALT-F4) Close active window
  • SELECT+(SQUARE) - (F5) Refresh active window
  • SELECT+(UP/DOWN/LEFT/RIGHT) - Move mouse pointer (useful with BD-Remote Controller)

Finally, below is how to launch PSN games via multiMAN for those interested from sealhealy (via psx-scene.com/forums/content/tutorial-2280/):

Launch PSN Games from multiMAN like any other PS3 backup:

1. Install your PSN package game like you normally would
2. In multiman go into file manager and navigate to /dev_hdd0/game
3. Find the corresponding game folder to the game you just installed eg. 'Tom Clancy's Splinter Cell HD' = NPEB00527
4. Copy this folder to your USB game folder /dev_usb000/GAMES
5. Now rename the copied folder to something meaningful eg./dev_usb000/GAMES/NPEB00527 becomes /dev_usb000/GAMES/[Splinter Cell HD]-NPEB00527
6. Inside the [Splinter Cell HD]-NPEB00527 folder create a new folder called PS3_GAME eg. /dev_usb000/GAMES/[Splinter Cell HD]-NPEB00527/PS3_GAME
7. Now move all files inside /dev_usb000/GAMES/[Splinter Cell HD]-NPEB00527/ into the PS3_GAME folder.
8. Go back to your Game list and refresh it, the new game will appear
9. Mount the game
10. When kicked back to XMB start the game from App_home not the disc icon

Notes:

  • You don't always need to copy all files sometimes just creating the file structure and copying the eboot.bin and param.sfo is enough.
  • I also think the reverse maybe true for some other games that don't work copying only eboot.bin eg. leave behind only eboot.bin param.sfo TROPDIR in the /dev_hdd0/game folder.
  • Creating a shadow copy of the USRDIR may also work? Nope

More PlayStation 3 News...

HeyManHRU's Avatar
#192 - HeyManHRU - 124w ago
It's about time MultiMan Manager become it's own OS. I wonder if it will have an inbuilt browser in the near future though, never like the PS3 one.

Roach95's Avatar
#191 - Roach95 - 124w ago
awsome

PS3 News's Avatar
#190 - PS3 News - 124w ago
Below are some details on the upcoming Cobra mmOS and multiMAN Cobra Manager (mmCM) updates from Gary Wayne Bowser aka GaryOPA (via ps3crunch.net/forum/threads/3597-EXCLUSIVE?p=40536#post40536) as follows:

It has been very silent recently in 'mmCM' updates, but we have good news today, developers behind 'Team Cobra' have contacted us and shared with us what they been working on since March, and it is is awesome, basically a full featured desktop enviroment called 'mmOS' to replace the old multiman file manager.

Click on the above picture, for a jaw-dropping HD screenshot of 'mmOS' in action, and after your jaw lifts off the keyboard, see below some of it's features:

  • supports 8 windows with up to 4096 entries per folder
  • double-click to launch video/music/picture/games...
  • single-click to multiple-select for copy/move
  • desktop icons for fast access to various options/functions
  • (shortcuts for showtime, games, themes, user created shortcuts)

This is just a hint of what is coming in the next big update, so we can't wait to see 'mmOS' all completed and fully in action with its many new jaw-dropping features on our PS3 consoles, and it might not be too long either as the developers are hinting at before this month's end for a big release, so this is already heating up to be nice hot summer for us Jailbreak Sony PS3 owners!

PS3 News's Avatar
#189 - PS3 News - 129w 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

Sponsored Links

Sponsored Links
Sponsored Links

Sponsored Links







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