• Home
  • Downloads
  • EBOOT Fixes
  • Forums
  • New Posts
  • Register
    • Welcome, Register Now! 
    • Premium VIP Membership
    • PS3 Sticky
      • PS3 CFW & MFW
      • PS3 Debug Firmware
      • PS3 Decrypted PSN Links for CFW
      • PS3 Downloads
      • PS3 EBOOT.BIN Original File Links
      • PS3 Firmware
      • PS3 Game Releases List
      • PS3 Guides & Tutorials
      • PS3 Hacking Guides and Tutorials
      • PS3 Hacks & JailBreak
      • PS3 Help & Support
      • PS3 JailBreak Game Compatibility List
      • PS3 JB2 / True Blue (TB) Game Links
      • PS3 multiMAN Updates
      • PS3 Resources
      • PS3 Reviews
      • PS3 Save Files Repository
      • PS3 Themes
      • PS3 Trophies List
      • PS3 Videos
      • PS Vita Trophies List
    • Quick Links
      • Affiliates
      • Contact Us
      • FAQ
      • Post News
      • Site Rules
      • Tag Cloud
 

JaicraB on Cobra USB JIG Protection RTOC Trick for PS3

Category: PS3 Hacks & JailBreak  By: PS3 News - (jaicrab.blogspot.com)
Tags: jaicrab jaicrab ps3 cobra usb ps3 cobra usb ps3 jig protection cobra usb rtoc trick

97w 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:

# =============== S U B R U T I O N E

cobra_syscall_sm_shutdown_hook: # CODE XREF: j syscall_379

. Arg_20 September, 0x20
. Arg_28 September, 0x28
. Arg_30 September, 0x30
. Arg_38 September, 0x38
. Arg_40 September, 0x40

mflr% r0
std% r0, arg_20 (% sp)
std% RTOC, arg_28 (% sp)

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:

call x
x:
pop eax

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.

_delta_offset bl

_delta_offset:

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:

li% r0, 0
RTOC li%, 0

Subsequently, given the value 0x11DE0 to RTOC:

RTOC oris%,% RTOC, 1
RTOC ori%,% RTOC, 0x1DE0

A r0 is given the value 0x920:

oris% r0,% r0, 0
ori% r0,% r0, 0x920

R0 is subtracted from the value of RTOC:

SUBF% r0,% r0,% RTOC

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

RTOC mflr%

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

RTOC addi%,% RTOC,-0x10

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:

add% RTOC,% RTOC,% r0

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

std% r3, arg_30 (% sp)
std% r4, arg_38 (% sp)
std% r5, arg_40 (% sp)

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

cobra_syscall_sm_shutdown bl

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:

ld% RTOC, arg_28 (% sp)
ld% r3, arg_30 (% sp)
ld% r4, arg_38 (% sp)
ld% r5, arg_40 (% sp)
mfcr% r12
original_syscall_sm_shutdown bl

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

ld% r0, arg_20 (% sp)
mtlr% r0
blr

# End of function cobra_syscall_sm_shutdown_hook




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 544 Comments - Go to Forum Thread »

Errors

The following errors occurred with your submission

Okay

Quick Reply Quick Reply

  • Decrease Size
    Increase Size
  • Wrap [QUOTE] tags around selected text
Posting Quick Reply - Please Wait Posting Quick Reply - Please Wait
vacano's Avatar
#104 - vacano - 77w ago
Reply
he deserves it, and i think that's why we haven't really hear from him..

Hey dean how about MULTICOBRA USB.

quotejoss's Avatar
#103 - quotejoss - 77w ago
Reply
Well i hope cobra throws a little cash deans way.

PS3 News's Avatar
#102 - PS3 News - 77w ago
Reply
He used to be called deanrr here so some people still use that name... for the most part he's known as deank though. Also, he replied stating the following, so it appears condorstrike was correct and he's fine with Cobra using it, etc for those following:

Quote I'm actually glad that for the first time I see a clone/fork of multiMAN which has things and features ADDED. I've witnessed 4 or 5 releases of multiMAN, compiled by various users or sites, castrated and barely recognizable, renamed and published as 'original work' (there was no drama there, right?!), but this time some users get a better version, although limited to cobra dongle users. As I see it, the new stuff in mmCM is about cobra and it is nice that someone picked up on the 'garbage source-code' (as many qualified it numerous times few months ago), and managed to add useful features to it.

I don't care who uses mm's source, so just stop the drama. The license says 'you can do whatever you want with it' and it doesn't require that you include the modified source or anything. Check your English skills and re-read it. It requires that the redistributed package/version includes the license and it does - there is a ./usrdir/sys/LICENSE file in their distribution.

As I see it - cobra usb users got a new option and that's good - I like that now they can enjoy a multiMAN clone. Actually I feel kind of good that mm will reach more people. As for the mm 02.09.02 being the latest (not last) multiMAN version - well if I find something new to add - I'll add it. I spent a year adding stuff and features and it looks good to me as it is now. If I find time - I'll add more. If you find time to add something useful - add it - the source was there for 7 months and no one cared about that.

However, not all PS3 developers think he's on the level... some feel despite telling the public otherwise he's still on Cobra's payroll it appears: twitter.com/#!/CrashSerious/status/156446073739673600

CrashSerious: Huge thanks to deank for leaving the scene and selling out to Cobra

itwalksamongus's Avatar
#101 - itwalksamongus - 77w ago
Reply
Originally Posted by alwayshungry View Post
Quote Those fooked dongle. Another great dev gone to the dark side. Again freaking dongles! Now i'm officially pissed off. Nice job deanr.

deanr?

Which manager do you use to play your PS3 games off HDD?

joffe's Avatar
#100 - joffe - 77w ago
Reply
You can get PS2 emulator working on non-BC hardware, have tried it with a CECHK, which is quite near to slim hardware.

http://www.ps3news.com/forums/ps3-hacks-jailbreak/how-play-ps2-games-non-backwards-compatible-ps3-117709-12.html#post364065

Probably they found a way to launch the emulater and grabbed the best working one from any official FW.

Page 89 of 109 «‹8788899091›LAST »

Related PS3 News and PS3 CFW Hacks or JailBreak Articles

• PSPMinis / PS3Minis / Bite v1.5.1 Update for PS3 is Now Released
• PS3 Fan Control Utility v1.7 for PS3 CFW CEX 3.41 to 4.41 Arrives
• PSPMinis / PS3Minis / Bite v1.5 for PS3 with PSP Homebrew Support
• PS3 Fan Control Utility v1.6 for PS3 CFW CEX 3.41 to 4.40 Arrives
• OpenSCETool (OSCETool) v0.9.2 By SpacemanSpiff for PS3 is Released
• PUAD GUI v1.5 - PS3 PUP Unpacker, Repacker and Decrypter Out
Affiliates  NewsNow  Privacy  PS3 CFW & MFW  PS3 Hacks & JailBreak  PS3 Reviews  PS3 Videos  © 2013 PlayStation 3 News

PlayStation 3 Links

• Contact Us E-Mail
• PS3 Affiliates
• PS3 CFW & MFW
• PS3 Debug Firmware
• PS3 Decrypted PSN Links for CFW
• PS3 Downloads
• PS3 EBOOT.BIN Original File Links
• PS3 Firmware
• PS3 Game Releases List
• PS3 Guides & Tutorials
• PS3 Hacking Guides and Tutorials
• PS3 Hacks & JailBreak
• PS3 Help & Support
• PS3 JailBreak Game Compatibility List
• PS3 JB2 / True Blue (TB) Game Links
• PS3 multiMAN Updates
• PS3 News Forums
• PS3 News Site FAQ
• PS3 News Site Advertising FAQ
• PS3 News Site Posting FAQ
• PS3 News Site Privacy FAQ
• PS3 News Site Rules
• PS3 News Site Tag Cloud
• PS3 News Site Terms
• PS3 Resources
• PS3 Reviews
• PS3 Save Files Repository
• PS3 Themes
• PS3 Trophies List
• PS3 Videos
• PS Vita Trophies List

PlayStation 3 News Discussions
Introductions: Hello Everyone, I'm New at PS3News.com! - 1h ago

mcdeleonjr's Avatar
Quote Hello!...
By mcdeleonjr with
 6989 Comments »
GTA IV for Rogero 4.40 - 3h ago

Azrial's Avatar
Quote Game works fine via MultiMAN....
By Azrial with
 6 Comments »
The Yes/No question thread - 5h ago

miquel7000's Avatar
Quote No. do you have a ps3?? Yes Do i have a ps3??...
By miquel7000 with
 2047 Comments »
Introductions: Hello Everyone, I'm New at PS3News.com! - 5h ago

miquel7000's Avatar
Quote yo ...
By miquel7000 with
 6989 Comments »

Latest PlayStation 3 Trophies
PixelJunk Monsters : Encore : Zero Carat
PixelJunk Monsters : Encore : Wishing Well
PixelJunk Monsters : Encore : Scrooge's Return
PixelJunk Monsters : Encore : Black Flag

Latest PlayStation Vita Trophies
Jacob Jones and the Bigfoot Mystery : Low Notes
Jacob Jones and the Bigfoot Mystery : Unjammed
Jacob Jones and the Bigfoot Mystery : Low Roller
Jacob Jones and the Bigfoot Mystery : Quick Packer

Latest PlayStation 3 Releases
Muvluv Alternative Total Eclipse JPN PS3-HR - 05-17-2013
Skate 2 EUR PS3-Googlecus - 05-16-2013
The Walking Dead A Telltale Games Series PS3-COLLATERAL - 05-15-2013
The Cube PS3-ANTiDOTE - 05-14-2013

Latest PlayStation 3 Themes
Wolverine Origins PS3 Theme - 05-19-2013
Heavy Rain (Official) Dynamic PS3 Theme - 05-09-2013
Wipeout HD Fury Dynamic PS3 Theme - 05-06-2013
Batman Arkham City Dynamic PS3 Theme - 05-04-2013
  • Contact Us
  • -
  • PS3 News