PSX-SCENE Forum Discussion for Sony PlayStation/PsOne/PS2/PS3/PSP/PS VITA
  • PS Vita Magic Reader - Firmware File Extractor Tool

    PsDev is back with another release for the PS Vita called Magic Reader. This script allows you to extract certain files from a PS Vita PUP (firmware file). He plans on adding more features in the near future to this new application. Continue reading for PsDev's official announcement.


    Made this script in about 10min. It extract the Magic ASCII, PUP Version and License.xml from a VITA PUP here is the script.

    Right now the script is stupid and doesn't do much, I plan on adding a full PUP dump and a SFO/PSF dumper.

    #!/bin/bash

    # PsDev 2012. this script extract the PUP magic.

    #Edit from PsiColio

    #Will be adding on more stuff for it to extract in time...



    # File names to extract from the PUP

    Extract=( "Magic" "PUP_Version" "license.xml" )







    #length starting from the offset and it ending in the offsets total length

    length=( 0x8 0x10 0x724B4) #how many long the file is how much to copy, for example the Magic starts at 0x0 and the length is 0x8 bytes.



    #offset of the Magic, Version and License

    offset=( 0x0 0x9FF 0xC00 ) #where the file dump begins in the hex.



    cont=0



    printf "____________________________\n"

    printf " PsDev \n"

    printf " PUP READER \n"

    printf "____________________________ \n\n"



    for file in "${Extract[@]}" #tells it for a file look in Extract = the the file names

    do

    printf "____________________________ \n"

    printf " %s\n" "${file}" #file name

    printf "____________________________ \n"

    printf "offset= %s\n" "${offset[$cont]}" #tells offset of file

    printf "length= %s\n" "${length[$cont]}" #tells total offset length of file

    printf "%s\n" "${cont}"

    dd if=$1 of=$file bs=1 obs=1 skip=$((${offset[$cont]})) count=$((${length[$cont]}))

    cont=$(($cont+1)) # make sure the usage is "./Magic-reader.sh PSP2UPDAT.PUP"

    done

    I added a lot of comments to it, just to make it more clear on what's going on. Also added a offset and length teller for the hex and then the rest of the edit of course

    How to:
    Make a new file named "Magic-reader.sh"
    Run "chmod +x Magic-reader.sh" to give to execution permissions
    Now in terminal run it. "./Magic-reader.sh PSP2UPDAT.PUP" It will output the three files in the folder/location the scripts located in.
    Example out Terminal LOG:
    ./Magic-reader.sh PSP2UPDAT.PUP
    ____________________________
    PsDev
    PUP READER
    ____________________________

    ____________________________
    Magic
    ____________________________
    offset= 0x0
    length= 0x8
    0
    8+0 records in
    8+0 records out
    8 bytes (8 B) copied, 0.0153084 s, 0.5 kB/s
    ____________________________
    PUP_Version
    ____________________________
    offset= 0x9FF
    length= 0x10
    1
    16+0 records in
    16+0 records out
    16 bytes (16 B) copied, 0.0528894 s, 0.3 kB/s
    ____________________________
    license.xml
    ____________________________
    offset= 0xC00
    length= 0x724B4
    2
    Introduction/PIC by tthousand
    Comments 1 Comment
    1. One2thr456svn's Avatar
      One2thr456svn -
      Cool, there are a lot of Vita programs coming out lately
  • Daily Digest


    Want to receive the latest PSX info in your email?

    Sign up for our Daily Digest!



    Want to learn more about the team keeping you up to date with the latest scene news?

    Read about them now!

    Check out our Developer bios, too!

  • Recent Threads

    Anno1404

    Upgrading to Rebug

    Thread Starter: Anno1404

    Hello,
    I finally chose to upgrade to Rebug 4.41.2 cause i've been going crazy with finding fixes , changing E-Boots , games not working.

    Last Post By: Anno1404 Today, 07:50 AM Go to last post
    gunas4

    Multiman cant mount game

    Thread Starter: gunas4

    hi,i have problem with my ps3,i had downgrade,have installed rogero 4.40 and multiman it was working fine but,one day my joystick was broked and i did

    Last Post By: gunas4 Today, 07:47 AM Go to last post
    Alderaan

    Help with PK2 file - Star Wars ROTS

    Thread Starter: Alderaan

    Can anyone help me with the exact location of the Jedi Mantra audio data (in the jedi temple you can hear a voice going through the sentences of the mantra)?

    Last Post By: Alderaan Today, 05:34 AM Go to last post
    InfernalFury

    Possible to transfer trophies to another profile user?

    Thread Starter: InfernalFury

    I've recently been banned a week ago due to using cfw. Created a new psn account using unban program and managed to resign my saves to match my newly

    Last Post By: bitsbubba Yesterday, 11:14 PM Go to last post
    nokiajavi

    USBUtil 2.1 Ultimate.REV.1.2[UPDATE]

    Thread Starter: nokiajavi

    USBUtil 2.1 (rev 1.2) May 2010

    Due to bugs reported these last weeks, USBUtil has been revised.



    Quote ISEKO

    Last Post By: RandQalan Today, 04:31 AM Go to last post
    Dante69

    THE DUPLEX VER OF Pixars UP Game is in French...Anyone know how to install in ENGLISH?

    Thread Starter: Dante69

    THE DUPLEX VER OF Pixars UP Game is in French...Anyone know how to install in ENGLISH?

    I installed this game called "Up (2009) "

    Last Post By: BahumatLord Yesterday, 09:01 PM Go to last post
  • Recent Comments

    Staylecrate

    English Patch version for Dynasty Warriors Strikeforce 2 PSP.

    Finished. It is on my dropbox account, PM or email me your email and I will share the folder, it's... Go to last post

    Staylecrate Today 07:51 AM
    mad mike 96

    Comedy on Demand: Laugh Factory on PS3 Updated

    Anyone have a link to the .pkg for this one? Go to last post

    mad mike 96 Today 07:31 AM
    aldostools

    Fan Control Utility v1.7 Relased CFW 4.41 Supported!!

    75C in idle (reported by multiMAN) after a short session of play videos... but my ambient... Go to last post

    aldostools Today 07:30 AM
    suaveburn

    Sony's Testing a Better, Faster Video Streaming Technology.

    I agree i have dropped my cable provider and simply added an internet plan i pay 50 dollars a month... Go to last post

    suaveburn Today 06:50 AM
    qrange

    Fan Control Utility v1.7 Relased CFW 4.41 Supported!!

    thanks. could you please confirm, is that 75C in idle?
    my PS3 is slim, CECH-25xxB (iirc) ,... Go to last post

    qrange Today 06:25 AM
    Staylecrate

    English Patch version for Dynasty Warriors Strikeforce 2 PSP.

    Hey atreyu, I found an ISO of the game. It should be finished 10-30hrs. I will let you know if/when... Go to last post

    Staylecrate Today 05:51 AM
    eustolio

    SDAT Creator by oakhead69

    Under this method, you can create edat_decrypter_creator?
    Thanks for u work oakhead69! Go to last post

    eustolio Today 04:53 AM
    opium2k

    {Guide} Install multiMAN Themes via a PKG File

    Nice of them to mention me but I haven't my multiMAN themes in ages. Probably best stick with more... Go to last post

    opium2k Today 03:35 AM
    the-green

    IrisManager v2.45 -- Various Additions and Improvements

    thanks for this update !!! Go to last post

    the-green Today 03:27 AM
    STLcardsWS

    Sony's Testing a Better, Faster Video Streaming Technology.

    :superfacepalm::superfacepalm:

    You get two :)

    More and more people are dropping... Go to last post

    STLcardsWS Today 02:45 AM