Sponsored Links

Sponsored Links

Results 1 to 2 of 2



  1. #1
    Forum Moderator PS3 News's Avatar
    Join Date
    Apr 2005
    Posts
    27,639
    Sponsored Links

    PS Vita Magic Reader Script Out, PUP / SFO / PSF Support Incoming

    Sponsored Links
    Today PlayStation Vita developer PsDev has made available a PS Vita Magic Reader script for those interested and noted that PUP, SFO and PSF support are also currently in the works.

    To quote from his blog (linked above): Made this script in about 10 min. It extracts 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.
    Code:
        #!/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=( 08 010 0x724B4) #how many long the file is how much to copy, for example the Magic starts at 00 and the length is 08 bytes.
    
        #offset of the Magic, Version and License
    
        offset=( 00 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
    Code:
        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= 00
        length= 08
        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= 010
        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
    PS Vita Magic Reader Script Out, PUP / SFO / PSF Support Incoming

    More PlayStation 3 News...

  2. #2
    Forum Moderator PS3 News's Avatar
    Join Date
    Apr 2005
    Posts
    27,639
    Sponsored Links

    PS Vita Magic Reader Script v1.1 Update is Now Available

    Sponsored Links
    Following up on his initial release, today PlayStation Vita homebrew developer PsDev has updated his PS Vita Magic Reader Script to version 1.1 with the details below.

    To quote: A while back as a test I made Magic Reader v1 that extracted the Magic (SCEUF), the FW version and license.xml out of the Vita PUP. Well I just added a extraction for the whole Vita Header of PUP.

    This script extracts the following:
    • Magic(SCEUF)
    • PUP Version
    • License
    • Package Version
    • Image Version
    • File Count
    • Header length
    • Package length
    • A Unknown bit of values 0x50 in length
    • FileTable
    • HashTable
    • HeaderHash

    Also later I'll add a FileTable extractor. which is determined by the FileCount.

    This is a linux script and will run in any linux environment.
    Code:
        #!/bin/bash
        # PsDev 2012. this script extract the PUP magic.
        #Edit from PsiColio lv1.self extractrion
        #just extracts the header info from a vita pup, good for comparison kinda useless atm and most likely always.
    
        # File names to extract from the PUP
        Extract=( "Magic" "PUPVersion" "License.xml" "PackageVersion" "ImageVersion" "FileCount" "HeaderLength" "PakageLength" "UNKNOWN" "FileTable" "HashTable" "HeaderHash" )
    
        #length starting from the offset and it ending in the offsets total length
        length=( 0x8 0x10 0x724B4 0x8 0x8 0x8 0x8 0x8 0x50 0x20 0x40 0x20) #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 0x8 0x10 0x18 0x20 0x28 0x30 0x80 0x100 0x130 ) #where the file dump begins in the hex.
    
        cont=0
    
        printf "____________________________\n"
        printf " PsDev \n"
        printf " Magic 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
    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 of the old Terminal LOG in v1, not updated there is a lot more files:
    Code:
        ./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
    PS Vita Magic Reader Script v1.1 Update is Now Available

    More PlayStation 3 News...

 

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