Hacking PKG Installer 2.0!

DarthNuts088

Member
Newcomer
Joined
Aug 15, 2016
Messages
5
Trophies
0
Age
35
XP
62
Country
Serbia, Republic of
You misread that lots im saying .pkgs can be extracted with 7zip.
.pkg can be extracted.. i just donno how. if someone can find a way to extract a .pkg but not decrypt it.. then
we can convert .pkg to .pkgs!
Hello! I can download PSP Demo PKG (US - Petz Saddle Club Demo ) from here
http://zeus.dl.playstation.net/cdn/...2NbYFU9hRJVDm1JR07CIihnsu3u2ePveDuihJlblj.pkg

I can extract it with PSN PKG Decryptor & Extractor Written By LMAN
https://sites.google.com/site/theleecherman/psnpkgdecryptor-extractor

How repack it to PKGS after extracting ?
 

SonyUSA

We're all mad here
Editorial Team
Joined
May 12, 2006
Messages
1,780
Trophies
2
XP
5,624
Country
United States
Hello! I can download PSP Demo PKG (US - Petz Saddle Club Demo ) from here
http://zeus.dl.playstation.net/cdn/...2NbYFU9hRJVDm1JR07CIihnsu3u2ePveDuihJlblj.pkg

I can extract it with PSN PKG Decryptor & Extractor Written By LMAN
https://sites.google.com/site/theleecherman/psnpkgdecryptor-extractor

How repack it to PKGS after extracting ?

That's for PS3 and PSP packages, not Vita

Though I am curious, can we extract then repack those DRM free games (linked on Wololo) ?
 

MRsonic699

Well-Known Member
OP
Member
Joined
Jun 30, 2011
Messages
116
Trophies
0
Location
Brasov, Romania
Website
soundcloud.com
XP
243
Country
That's for PS3 and PSP packages, not Vita

Though I am curious, can we extract then repack those DRM free games (linked on Wololo) ?
Well, that's what we wanna do in this thread, but we don't quite know how to. PKG files need an AES key, and only the old tool does it. I'm guessing there'd be a clever way to extract a PKG using the old tool on a vita, and then just move the files onto your PC, where the rest is easy. It just needs to be not decrypted, for PKG installer 2.0 to be able to handle it. I only have a 3.60 vita, so I can't help in any way.
 

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
Now now, PKG installer 2.0 is installing the files that's downloaded from vita using ps store

I don't think extracting a pkg gives us the same files. as that

Actually... AFAIK, I believe it does...
because when you download from the PSN, you are actually downloading a PKG file that's being extracted on the go.
 

SonyUSA

We're all mad here
Editorial Team
Joined
May 12, 2006
Messages
1,780
Trophies
2
XP
5,624
Country
United States
As of right now there is no way to extract a retail .pkg > 1.0 because we do not have the keys. We also do not have a way to re-enable the built in pkg installer because it's not as easy as enabling it anymore (crashes on launch).

So we currently cannot repack a DRM free .pkg into a .pkgs because we have no method to do it.

As a side note, all those DRM free .pkg on wololo are just demos and useless junk.
 
  • Like
Reactions: Subtle Demise

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
this is a start hopefully


This, mostly, will not work.
Everything will be encrypted.
I already tried it with the latest EU DIVA X Demo. You can transfer the content of the folders, yes. But everything will be encrypted, and garbaged.

All you need is try to open one of the PNG used, like ICON0 or similar, and you'll see that it won't open on the PC. It will say it's damaged
 
D

Deleted User

Guest
This, mostly, will not work.
Everything will be encrypted.
I already tried it with the latest EU DIVA X Demo. You can transfer the content of the folders, yes. But everything will be encrypted, and garbaged.

All you need is try to open one of the PNG used, like ICON0 or similar, and you'll see that it won't open on the PC. It will say it's damaged
The files do actually need the PFS encryption to be able to be installed via the notifications/downloads menu on the home screen. I have made installation packages before where this needed to be the case.
 

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
The files do actually need the PFS encryption to be able to be installed via the notifications/downloads menu on the home screen. I have made installation packages before where this needed to be the case.
Wait, so you're saying that If I transfer the PFS encrypted files to my PC and create a PKGS with them, they will install on the Vita system, even being PFS'd?
 
D

Deleted User

Guest
Wait, so you're saying that If I transfer the PFS encrypted files to my PC and create a PKGS with them, they will install on the Vita system, even being PFS'd?
Well they have to be PFS'd, bearing in mind these PKGS files install the exact same way as when you have downloaded content from the PS Store, and it's ready to be installed from the notifications screen.

I have tried installing files that don't have PFS encryption, and it just doesn't work.
 

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
Well they have to be PFS'd, bearing in mind these PKGS files install the exact same way as when you have downloaded content from the PS Store, and it's ready to be installed from the notifications screen.

I have tried installing files that don't have PFS encryption, and it just doesn't work.

Hmm... I had in mind that the Vita would automatically decrypt/strip the files from that protection.
 
D

Deleted User

Guest
Hmm... I had in mind that the Vita would automatically decrypt/strip the files from that protection.
What happens is, when a PKG is downloaded from the PS Store, it is stored in ux0:bgdl/t/ and that PKG is extracted to a new folder in the same directory. This is where the game files are extracted to, and PFS protection is applied to the files as they are being extracted. Afterwards, when the extraction is complete, the PKG is automatically deleted, and the extracted game files are now waiting to be properly installed to their appropriate place.
The files stay encrypted throughout all the process.

However, when you launch the game/app, all of the files will actually be decrypted by the system, and we are now able to take advantage of that fact thanks to Major_Tom's game decryption method for 3.60 by replacing the game's main executable with VitaShell's, and obtaining the temporarily-unencrypted files from the game's filesystem.
 
  • Like
Reactions: MRsonic699

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
What happens is, when a PKG is downloaded from the PS Store, it is stored in ux0:bgdl/t/ and that PKG is extracted to a new folder in the same directory. This is where the game files are extracted to, and PFS protection is applied to the files as they are being extracted. Afterwards, when the extraction is complete, the PKG is automatically deleted, and the extracted game files are now waiting to be properly installed to their appropriate place.
The files stay encrypted throughout all the process.

However, when you launch the game/app, all of the files will actually be decrypted by the system, and we are now able to take advantage of that fact thanks to Major_Tom's game decryption method for 3.60 by replacing the game's main executable with VitaShell's, and obtaining the temporarily-unencrypted files from the game's filesystem.

Yes, I was already aware of the decryption method. But didn't knew about that previous info. Thanks. =)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub:
  • Sheeba- @ Sheeba-:
    I can't wait to hack my 11.00 PS4 pro
    Sheeba- @ Sheeba-: I can't wait to hack my 11.00 PS4 pro