• 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
 

PS3 C2D CEX to DEX Flash Patcher, LibEEID EID0 Library Arrives

Category: PS3 Hacks & JailBreak  By: ConsoleDev - (tortuga-cove.com)
Tags: ps3 c2d ps3 cex to dex flash patcher c2d flash patcher libeeid eid0 library ps3 hacks

44w ago - Following up on the PS3 CEX (Retail) to DEX (Debug) Conversion Method from earlier this week, today PlayStation 3 developer andbey0nd has released an easy C2D CEX to DEX Flash Patcher conversion tool for Windows (currently only works with the 16mb NOR) alongside PS3 LibEEID (library related to EID0) source code below.

Download: PS3 C2D CEX to DEX Flash Patcher (Windows) / LibEEID Source Code / GIT

To quote: andbey0nd has released (pastie.org/4243807) another tool to us this morning. c2d is a Cex 2 Dex Flash Patcher. Currently it only works with 16mb NOR. Slowly but surely the scene seems to be coming back to life. 1 hack at time... Thanks andbey0nd and keep up the awesome work!

[andbey0nd] works for 16MB flash dumps (NOR) only
[andbey0nd] also if for some reason a WRONG EID key is provided - the program will abort and will not generate invalid DEX flash.. so no chance for bricking
[andbey0nd] if an output DEX flash file is created - it means that it is valid

c2d.exe (win32 app)

Requires:

  • OpenSSL 1.0.1 installed in c:\openssl or d:\openssl (http://slproweb.com/download/Win32OpenSSL_Light-1_0_1c.exe)
  • EID root key (per_console_key) obtained with metldrpwn
  • CEX (NOR) flash dump
  • Extract c2d.rar in a local folder (c:\c2d or d:\c2d)

Usage:

  • c2d.exe eid_key_file.bin in_cex_flash.bin out_dex_flash.bin

Output:

c:\c2d> c2d.exe eid_root_key.bin flashCEX.bin flashDEX.bin

EID key : 48 bytes (eid_root_key.bin)
Flash size : 16 MB (flashCEX.bin)
Target ID : $85

EID ROOT KEY: 64D20967DEACDA16ACADBE289B0EE2C25EE77331A5040C5DC9DF67B3FE574F6D
EID ROOT IV : 6BD7C324D3B213A647DC31987345595E

EID0 KEY : 9C1C4A93666EF67941F54679A7199D7553C8F0F50F3548C8966D6872FC8CD668
EID0 IV : 2DC374E270F851EB0D524F89790F2563

EID0 SEC KEY: 4C40F3E244EF2BF29A9D48BE26FEEEEB

Target ID : $85 (from decrypted EID0 section)
CMAC HASH : F1053CC3818DD6CE2775F0273DFC212E

Writing modified flash (flashDEX.bin)... Done!
Enjoy!
andbey0nd

From naehrwert: oh look what a little bird has brought us: libeeid crypto library <3 also if someone want's to get a set of cprm device keys, he should look at eid3_decrypt_buffer

messing with eid4 on your box will destroy your bd-drive pairing, so I wouldn't do that.

PS3 LibEEID Source Code

A >>PS3D<< original: libeeid (C) 2011-2012 ps3dev.net

If you can't deliver the complete stuff, you should just keep your mouth shut and not spread the EID0 algo out. This lib was meant to stay private because we didn't like the idea of every 1337 kiddo having a DEX console and annoying developers with questions about running pirated games on it. Now we decided to release it all into public although we won't provide any support or do any further work on it.

A lot of dedication, knowledge and time has gone into reversing ALL of the SPU binaries to collect the informations in this library (that's the fun part). This is as far as you will get with firmware versions <= 3.56.

Btw.: have fun reversing the SPU modules to find the required keys...

Special thanks to the people there: gitorious.ps3dev.net/+ps3dev-net

How to W/R NOR from petitboot:

READ NOR : dd if=/dev/ps3nflasha of=/tmp/petitboot/mnt/sda1/cexnor.bin bs=1024

WRITE NOR: dd if=dexnor.bin of=/dev/ps3nflasha bs=1024

READ eEID : dd if=/dev/ps3nflasha skip=$((0x2F000)) of=/tmp/petitboot/mnt/sda1/eid.bin bs=1 count=$((0x10000))

WRITE eEID: dd if=eid.bin.dex of=/dev/ps3nflasha bs=1 seek=$((0x2F000)) count=$((0x10000))

After getting the tip on howto build OMAC cex/dex hash with FileHash and passing me the "batch" files to AES EN/Decrypt, then you need to check/read it a couple time to fit the puzzle together.. i recommended if you perform this, do not to rely on the 1click tools at first, c2d works perfect and makes valid dexdump, you can use it to compare it with the one u did by hand, they MUST be identical, at least do it a couple times so you'll understand proccess.

I used run.sh like this without providing eid0 as it's commented out in the script and not required, only "metldr" from original cexdump

In terminal:

cd into mtldrpwn folder
type: make
type: ./run.sh

outputs correct root_key

To be on the save side, pwn metldr couple times to see if you get matched ones, some are having weird "dump" or must reboot to get correct "dump" need to use either debian/ubuntu install or live disc linux2.6.39_rnd.ISO / or new prebuild petitboot image/or rc5 red ribbon a little modified.. options enough.

From dlbogdan: I've dumped NOR (and eEID) from petitboot.. for linux n00bs. It doesn't work until you remount your usb drive as RW.

# mount -n -o remount,rw /dev/sda1 /tmp/petitboot/mnt/sda1

then you dump with:

dd if=/dev/ps3nflasha of=/tmp/petitboot/mnt/sda1/cexnor.bin bs=1024
dd if=/dev/ps3nflasha skip=$((0x2F000)) of=/tmp/petitboot/mnt/sda1/eid.bin bs=1 count=$((0x10000))

as written above.

From badhabit: I can confirm the cex2dex patcher method works.

  • used memdump to dump the Nor (thx an0n, you tha man !!)
  • HW Flasher output is exactly the same.. tried it
  • used Flowrebuilder to unpack the Nor Dump (btw. Flowrebuilder can also unpack 4.11 dumps where norunpack fails..)
  • had to recompile the metldrpwn as the compiled one from glevant didnt work for me ..
  • used petitboot and red ribbon for the root key
  • used cex2dex patcher (thx andbey0nd, acab, zadow) for dex.bin
  • flashed back via hw flasher / also tried petitboot works good aswell

So now i am on 3.55 dex ; gonna try E3 cex/dex dualboot.. has anyone an idea if i need to patch the dex FW "no check" for downngraded consoles ?? kudos to zecoxao and the others for helping all the people out !! that's the spirit dudes !!

From butnut: I am on 3.74 debug and playing a backup of my FF XIII-2 from a sd card formatted as bd-emu. I can go into the casino and play the games and bet on chocobo's and what not. I used psdevs gui tools to unpack the 1.06 update and then when I was still on 3.55 debug I used multiman to transfer the update to my dev/hdd0/game. then I went into recovery mode and chose rebuild database, when the system rebooted I updated to 3.74. None of my homebrew works now but I can downgrade later.

Oh yeah here is how to get those keys you want... Major thanks to everybody who helped me, without you I would still be sitting here with my thumb up my butt.

  • Dump your flash name it cexnor.bin
  • Use flow rebuilder to get metldr file
  • Use XMB EIDX Dumper to get EID0
  • Install petitboot and red ribbon rc5

Note: Do not type any words with quotes around them.

Open a terminal and type:

apt-get update
apt-get install make
apt-get install wget
apt-get install gcc
apt-get install libncurses5-dev

when that is done type:

wget http://gotbrew.org/git/linux-2.6.tar.gz
After it has downloaded type:

tar xvfz linux-2.6.tar.gz
and then type:

rm -rf linux-2.6.tar.gz

ln -s /usr/src/linux-2.6 /lib/modules/2.6.38-powerpc64-otheros/build

cd linux-2.6
cp ps3_linux_config .config
make menuconfig
"Just press exit, when you will see the grey and blue menu."

make
make install
make modules_install
"open a file manager and go to /etc/ and copy the kboot.config to a usb drive"

"open the kboot with a text editor and add as the last line"

test=/boot/vmlinux root=/dev/ps3dd1
"save the kboot and put it back where you found it"

"go to /boot/ and rename vmlinux-2.6.39 to vmlinux"

"restart ps3 into petitboot and boot test=/boot/vmlinux root=/dev/ps3dd1"

"open a terminal and type"

http://www.ps3devwiki.com/files/devtools/dump-metldr/metldrpwn.zip
unzip metldrpwn.zip

cd metldrpwn && make
"open the file manager and transfer your metldr file to metldrpwn"

"I think you should put the EID0 file in there too, but some people say it is not needed."

"go back to terminal window and type"

chmod 755 run.sh

./run.sh

cp /proc/metldrpwn/dump /home/dump
"open a file manager and transfer the file called dump to usb"

"move it to your pc and use a hex editor to copy the first three lines(48 bytes) to a new hex file. Save this file as key.bin "

"install c2d"

"put key.bin and cexnor.bin in the same folder as c2d.exe"

"open a command prompt and type"

cd c:\c2d
c2d.exe key.bin cexnor.bin dexnor.bin
"If you did every thing right you will see a message saying done"

"if this message gives you an error then you must reboot your ps3"

"and try again from "

./run.sh
"if you did not get an error then flash dexnor.bin to your ps3 and install 3.55 debug from the xmb"

From JLM (via ps3crunch.net/forum/threads/4023-Method?p=45359#post45359):

You don't need to fiddle with kboot.

The red ribbon 5 headers are here (7.03mb): http://redribbon.t15.org/apt/dists/stable/main/binary-powerpc/linux-headers-2.6.38-powerpc64-otheros_2.6.38-powerpc64-otheros-10.00.Custom_powerpc.deb

1. unpack it in a subdirectory of your home directory: /home/username/headers

2. Create a link to it in the appropriate lib/modules directory
link command syntax: ln -s target linkname
(-s means it's a symbolic link/shortcut)

for mine it is:

/lib/modules/2.6.38-powerpc64-otheros

open a terminal (as root) in that folder and create the link:

ln -s /home/username/headers/usr/src/linux-headers-2.6.38-powerpc64-otheros /lib/modules/2.6.38-powerpc64-otheros/build

that command will create a symlink (shortcut) to the header files/module.symvers, the link will be called build. If you already have a build link (in /lib/modules/directory with kernel name/) then you prolly don't need those header files or to create the link.

3. Compile the exploit(not as root):

cd metldr838exploit && make

Depending on your compiler settings you may get these two warnings(it's ok): warning label 'bad5' defined but not used or warning '/*' within comment.

4. Copy the other files you will need for running the exploit to the exploit directory:

For example, someone on rebug 3.41.3 other os with ss patches:
metldr (extracted from a flash dump of the nor, use yours)

from ofw 3.41v2 (using fail tools or ps3tools gui):
isoldr, spp-verifier.self, defaut.spp
(You may want to rename the metldr file that is already in the exploit directory so it won't be overwritten.)

5. run the exploit at the commandline:

sudo ./run.sh

It will ask for your password (the one for your username, not the root password). Using sudo will give you the elevated privileges necessary to run the exploit, ./ insures the script in your directory will be the command that the shell runs (if it doesn't execute, then you might need to set the permission with: chmod u+x run.sh)

A bunch of messages scroll by, then copy the output file (dump) to your home directory:

cp /proc/metldrpwn/dump /home/username/ (there is a space between /dump and /home/username/) Since you just used sudo, you shouldn't have any problem with permissions. If you do, use sudo cp.

Note: If petitboot stalls going down (to load linux), unplug your usb items. Please no controller plugged into usb port. Most keyboards are ok plugged in, some aren't. Linux doesn't need the keyboard plugged in to boot. It's okay to unplug it after making your boot selection in petitboot. I select otheros. Plug it back in after linux boots. No you don't need to be on 3.50. This is not a tutorial! I don't know how to do the conversion to dex, just the linux step.

Finally, HERE is a brief guide by Sony PlayStation 3 hacker evilsperm which uses the PS3Tools GUI Edition v2.6 with PS3 CEX to DEX support, HERE is a Pawnmetldr Using Red Ribbon guide by technodon and HERE is another PS3 DEX (Test - Debug) Conversion Method Step by Step tutorial from ing_pereira for those interested.

Also below is a related guide (via pastie.org/4262855) by bleh as follows:

Part-1 Installing Petitboot

  • Prepared files you might/will need: http://www.mediafire.com/?ny2tj269h1tjrf3
  • Extract the files and copy them into root of your USB drive. I did not include metldr but you can get it here: (ps3devwiki.com/files/devtools/dump-metldr/metldrpwn.zip)
  • Every *pkg should beep if not repeat - only reboot.pkg will not beep.

1. Install CFW OTHEROS++ from here: gitbrew.org/~glevand/ps3/cfw/ (I picked eight size)
2. When installation is finished, reboot into Recovery Mode and choose "Restore PS3 System"
3. Run setup_flash_for_otheros.pkg
4. Reboot your PS3 (Manual reboot)
5. Store dtbImage.ps3.bin on USB drive, plug it in and run install_otheros.pkg
6. Run boot_otheros.pkg
7. Run reboot.pkg (use the package, not manual reboot!)
8. You should be in petitboot now.
9. Exit to shell
10. cd /tmp/petitboot/mnt/sda1/
./create_hdd_region.sh
11. Reboot your PS3 and run reboot.pkg again.

If you have any problems with any steps above contact me.

Part-2 Installing Debian (Auto) requires INTERNET CONNECTION.

1. boot into petitboot
2. exit to shell
3. cd /tmp/petitboot/mnt/sda1/
sh debian-installer.sh
4. select no at partition the installer will do it for you.
6. once install is done boot into petitboot and select the first option.
7. tasksel install standard
startx

If you have any problems with any steps above contact me.

Part-3 metldrpwn

1. dump your nor in GameOS using this tool: http://www.mediafire.com/?vwe5oi7em54dwk9 (use memdump_0.01-FINAL.gnpdrm.pkg)
2. now you will need to unpack your nor, use norunpack
3. open your unpacked nor folder, copy the "metldr" from "asecure_loader" folder into "metldrpwn" folder.
4. copy "metldrpwn" folder to /home/yourusername
5. start terminal
6 cd metldrpwn
make
sudo ./run.sh
cp /proc/metldrpwn/dump /home/yourusername/

7. open "dump" in hex editor
8. copy the bytes 0x00-0x0f
9. use your hex editors search function and paste the bytes (0x00-0x0f)
10. your keys will be at 0x0000C7xx (i had different offset in 2 dumps, so use search)
11. copy your keys into a new file and save as eid_root_key.bin & rename your nor dump to "CEXFLASH.bin"
12. open "PS3Tools v2.6" run cex to dex (it will error if the keys are wrong.. so nothing to worry about)
13. copy the DEXFLASH.bin to root of your USB drive.

Part-4 write dexnor

1. boot into petitboot

2. cd /tmp/petitboot/mnt/sda1/
dd if=DEXFLASH.bin of=/dev/ps3nflasha bs=1024
reboot

Go into recovery mode and install dex fw. If you have any problems with any steps above contact me. Have fun with your DEX.. bleh

Note: you have to use a different debian-installer.sh for nand, link: nand debian installer: http://dl.dropbox.com/u/56336/PS3Linux/nikitis-PS3-Debian-Installer.zip




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 587 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
niciuffo's Avatar
#567 - niciuffo - 27w ago
Reply
I shouldn't have kept trying entering service mode then. Can you still link me to a tutorial? And about the flasher, could I use a solderless E3 if I find it? I apply it, re-flash the NOR and remove it? Or does it have to be always attached to the MB?

Thanks for the reply.

G Sus's Avatar
#566 - G Sus - 27w ago
Reply
i could have aimed you towards a tutorial for the 10 bleeps semi-brick, but sadly this is no use now.

looks like your gonna be doing a lot of soldering too, cos progskeets are virtually impossible to get hold of at the moment and e3s are getting just as hard to find.

Unless your really comfortab'e with tiny soldering, id strongly suggest you get someone to do this for you. it usually works out cheaper, and a lot of people dont charge if they cant fix it.

niciuffo's Avatar
#565 - niciuffo - 27w ago
Reply
So, I recently converted my CEX3.55 to DEX in order to play the newest games, since nothing was happening in the scene for alot of time. Of course 3 days later 4.21CFW was already out. Anyway, when I was bored by DEX3.55 (I never updated it to DEX4.21 or anything) I decided to convert it back to original OFW or Rebug 3.55.3 and then update to one of the available cfw's.

I still had my original NOR dump of course, so straight away I put it on a USB stick and flashed it again using Multiman (as I had read on a tutorial). Of course that didn't work. When I attempted to turn it on again it simply gave me the infamous 10 beeps, so I searched if I could fine a solution for that.

Some said the problem would be solved by just putting a FW on a USB stick and putting the ps3 in service mode. So, I brought back my Teensy 2.0++ I used on the old days of 3.41 cfw, and put the PS3 in service mode (using the Lv2diag.self IN file) then it started flashing blue (they say after 5 minues it should re-install the fw, but it didn't). I waited for nearly 30 minutes and nothing happened, plus HDD light and USB light were off. I decided to turn it off and retry.

I retried twice and same problem, and then after re-booting the ps3 bang, YLOD. The ps3 would of course not boot in service mode, so I tried the reflowing method to try to fix this. I tried doing that THREE TIMES, and it never worked. Now I don't know what to do, the only thing I can think of about this maybe I didn't apply enough thermal compound since the syringe was almost empty.

Anyway, the only thing working now it the super-spinning fans thing. I still have my Teensy 2.0++, so I could flash it to the PS3 and try to re-flash the NOR I guess? I that would be the only solution, could you link me to a guide, since I couldn't find any.

The only thing stopping me from doing that is that I would have to solder a lot of wires, and I really don't want to. If that is the only solution, I might even consider one of those E3's or progskeet's or wait for a proper cfw to install on my third ps3

ANYWAY, thanks everyone for reading, and hopefully for helping me resolve this problem!

G Sus's Avatar
#564 - G Sus - 29w ago
Reply
Originally Posted by kevin1fsu View Post
Quote Hey guys hoping someone can point me in the right direction on this. So in a moment of stupidity when I flashed my CEX over my DEX I turned off the system without installing a CEX firmware so now when my PS3 boots up it beeps about 10 times and turns off.

i did the same thing, an e3 worked for me, it got me into fsm but without screen output, you just got to do it blindly. but it did work.

saved my ps3

KLAYPEX's Avatar
#563 - KLAYPEX - 29w ago
Reply
is this a good news for fw 4.25? i'm on fw 4.25 can i install this?

Page 5 of 118 «‹123456789›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
The Yes/No question thread - 43m ago

mm4dsc's Avatar
Quote No. Will you be traveling out your home country in the next week?...
By mm4dsc with
 2046 Comments »
GTA IV for Rogero 4.40 - 45m ago

Liongooder's Avatar
Quote Here you go: Grand Theft Auto IV: The Complete Edition US http://letitbit.net/download/88501.805e2447bdaf7d6768fd8cafa455/Grand_Theft_Auto_IV_...
By Liongooder with
 5 Comments »
Introductions: Hello Everyone, I'm New at PS3News.com! - 47m ago

aishah001's Avatar
Quote Hello, users. I'm new to the forum & planning on getting a PS Vita. I want to play Ni No Kuni & other games on the system, but I'm worried wit...
By aishah001 with
 6987 Comments »
Introductions: Hello Everyone, I'm New at PS3News.com! - 3h ago

jeantremere's Avatar
Quote Good mornig friends! Eu sou brasileiro e fă de games... Parabéns pelo site!...
By jeantremere with
 6987 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-11-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