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

198w 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]



JaicraB on Cobra USB JIG Protection RTOC Trick for PS3

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




#163 - djcrysty - 171w ago
djcrysty's Avatar
how do i install this ?

#162 - PS4 News - 171w ago
PS4 News's Avatar
For those with the Cobra USB dongle, coveman has made available an Open PS2 Loader ISO File via tortuga-cove.com/hacking/31-ps3/2611-open-ps2-loader-iso-file.

Download: Open PS2 Loader (ISO) (1.27 MB)

To quote: I created an "Open PS2 Loader" ISO file, so you can just load it from Cobra Manager or multiMAN.

Just extract the .rar and transfer it to your internal HDD to /dev_hdd0/PS2ISO

  • You don't need SWAP MAGIC
  • You don't need any optical disc at all in your PS3
  • Works on PS3 non-BC (tested on my SLIM) (CobraUSB required)

I included the cover so you can either put it in /covers_retro/psx/SLES_806.08_COV.JPG or rename it to "Open PS2 Loader.jpg" and put it along side the ISO in PS2ISO folder.

#161 - DeViL303 - 171w ago
DeViL303's Avatar
Quote Originally Posted by kombat75 View Post
You mean Rename the MP3 songs From Techno.MP3 to SOUND.BIN will do or must follow the MP3 file we choose - Techno.MP3 to Techno.BIN ? I confuse over here..

Mostly if you Rename a MP3 file to SOUND.BIN it will should an error. -

If you change a filename extension, the file may become unusable. Are you sure you want continue ?


This is just the way multiman reads its music for the theme. I was trying to answer the question above my post. multiman looks for a sound.bin file. it must be a .mp3 file renamed to .bin.

You are right , under normal circumstances it would make the file unreadable but not in this case. .bin is used for lots of things like firmware updates for dvd drives etc, its basically just raw sequential data in a .bin file.

Quote Originally Posted by nickxab View Post
so guys with this you can play the newest games without the dongle ??

NO. Simple as that!

#160 - nickxab - 171w ago
nickxab's Avatar
so guys with this you can play the newest games without the dongle ??

#159 - kombat75 - 171w ago
kombat75's Avatar
You mean Rename the MP3 songs From Techno.MP3 to SOUND.BIN will do or must follow the MP3 file we choose - Techno.MP3 to Techno.BIN ? I confuse over here..

Mostly if you Rename a MP3 file to SOUND.BIN it will should an error. -

If you change a filename extension, the file may become unusable. Are you sure you want continue ?

Pls advise..

#158 - DeViL303 - 171w ago
DeViL303's Avatar
Q: How to change multiMAN's background music?
A: Pick a MP3 file of your choice. Rename it to SOUND.BIN. Copy it to /dev_hdd0/game/BLES80608/USRDIR/ on your PS3.

What the names of the actual songs are depends on the theme, google is your friend.

#157 - lzyslckr - 171w ago
lzyslckr's Avatar
I have but one question. What are the songs that play during the themes?

#156 - SigmaXIX - 171w ago
SigmaXIX's Avatar
As far as I know, CobraUSB will still be required if you have an old FAT and want to play PS2 imports, right?

#155 - DeVil3o3 - 171w ago
DeVil3o3's Avatar
Quote Originally Posted by DemonoidMaster View Post
alright thanks. also, you said he updated his original MM project with a new build ? so this means Cobra MM is at 4.00 'ish. Deank's MM is at v09.02.09 ..

any differences ? new stuff? best option (your opinion on which version is best)??

No, it was a internal update for the media player showtime that is built into multiman. deans multiman hasn't been updated.

Not 100& sure of exact differences, read changelogs. Cobra multiman has extra options compared to deans multiman but its only better in reality if you have a use for them of course.

#154 - zirosko - 171w ago
zirosko's Avatar
Is it possible to mount video_ts folder to be seen as inserted DVD in XMB and then watched with menus? Have 15 copies of DVDs on external HDD and only I can do is to watch VOBs.