Join Us and become a Member for a Verified Badge to access private areas with the latest PS4 PKGs.
Status
Not open for further replies.
Here's a brief guide based on what PlayStation 4 developer @Al Azif shared in the PSXHAX Shoutbox recently for those seeking Sony URL links to download PS4 Packages (PKG Files) for apps, games, etc to include in databases such as those from Octolus and OrbisModding similar to community projects like PSDLE, NoNpDrm Dump and NoPayStation.

He notes that this method will only allow you to get your legitimate PKG's back and not the licenses, however, once further details are available on Flat_z's Method along with PS4 IDX Generator which makes IDX files allowing the PlayStation 4 to see the RIF (Activation File) for apps and games everything should come together similar to what we've seen in the Custom / Repacked PS4 Package (PKG) Files demo video. ;)

Steps:

1. Sign into Account.SonyEntertainmentNetwork.com (or Store.SonyEntertainmentNetwork.com) with your PSN account.

Tip: Make sure you have always accept 3rd party cookies set on your browser, and try and access your "Account Settings" from the PS store before you try the URL in Step 2.

2. Then go HERE noting the number where it says total_results.

3. Replace the size=1 in the URL with a number larger than that number (for example, if you have 943 items in there change size=1 to size=1000) and then save (CTRL+S) the resulting .json file.

4. Inside it you'll find a complete record of every purchase made and download links for your legit PlayStation PKG's so that you can back them up, download, share them, etc.

In other words, whatever is in your library on the account you're signed into will display on that page... so if you buy a game on PSN though the browser the info will show up on that page, including PKG links. (y)

:alert: Note: Don't share your entire .json file only the PKG links it contains, as with an entire .json log Sony can determine which PSN account it belongs to based on the download timestamps.

5. Those who wish to clean up their resulting .json file for better readability can use this Python script from @Al Azif afterwards: Entitlement Stripper, or the latest version posted HERE.
Code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
""" Entitlements Stripper by Al-Azif
https://github.com/Al-Azif/
MIT License
"""

import json
import sys


def main():
    with open(sys.argv[1], 'r') as buf:
        raw_json = json.loads(buf.read())
        final_json = []

    for entitlement in raw_json['entitlements']:
        cid = entitlement['id']
        name = entitlement['game_meta']['name']
        pkg = ''
        size = ''

        try:
            pkg = entitlement['entitlement_attributes'][0]['reference_package_url']
            size = entitlement['entitlement_attributes'][0]['package_file_size']
        except:
            pass

        try:
            pkg = entitlement['drm_def']['drmContents'][0]['contentUrl']
            size = entitlement['drm_def']['drmContents'][0]['contentSize']
        except:
            pass

        try:
            if not size:
                size = "UNK"
        except:
            size = "UNK"

        try:
            if pkg:
                temp = {'CID': cid, 'Name': name, 'PKG': pkg, "Size": size}
                final_json.append(temp)
        except:
            pass

    final_json = json.dumps(final_json, indent=2)

    with open('output.txt', 'w+') as buf:
        buf.write(final_json)


if __name__ == '__main__':
    main()
Usage: python file.py entitlements.json
Result: will come out as output.txt
Obtaining PlayStation Package (PKG) Files via SEN by Al Azif Guide by seanp2500
Cheers to @Al Azif for the heads-up, and @LarryK for the reminder to make a quick tutorial for this handy technique for backing up PlayStation Package (PKG) files! :beer::beer:

Obtaining PlayStation Package (PKG) Files via SEN by Al Azif Guide.jpg
 

Comments

Dose anybody know if this works for getting DLC? I am not getting a link to the PKG just a link to the game image.
 
how to turn the PKGs into FPKGs? Can't dump them since they dont launch even with PS4HEN. :unsure: I'm on 4.55 and ive been following the scene since 1.76 but i'm a noob to game dumping lol
 
@Jack Mongolian You can't yet when you install them you will have a lock and it tell's you you have to purchase the game. I have figured out how to remove the lock but the game still won't run it gives a error code.

I was wondering if DLC was locked also or if it was like a update. I purchased some DLC but it didn't give me a link to it only the image to the game. So I don't think you can get DLC this way.
 
@jwooh Only way of obtaining DLCs that I know of is if you had DLCs downloaded and installed from PSN on your PS4 you can dump them, hopefully when 5.05 kexploit is released more people would have DLCs installed already.
 
@MODRuLeZ Okay thanks I am glad I didn't spend more than $3.00 then. It what just weird how I didn't get a link for the DLC but I did get one for a demo. Unless you half to actually download the DLC to a PS4 to get a link I might try that.
 
Hi. I know this is an old post, but I just got into the PS world. I was able to get the links for my purchased game pkgs, but I noticed every game has an Axxxx-Vxxxx.pkg and a Axxxx-Vxxxx-DP.pkg, but these are not listed.

Any pointers to how I can get the urls of these files just like this tutorial?
 
Status
Not open for further replies.
Back
Top