Advertising (This ad goes away for registered users. You can Login or Register)

PS3 packages and how it leads to PSP signing

Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Davee
Guru
Posts: 278
Joined: Mon Jan 10, 2011 1:24 am

Re: PS3 packages and how it leads to PSP signing

Post by Davee » Wed Jan 19, 2011 1:54 am

Wololo wrote:
Davee wrote:There are many PSP executables that are user signed. Typically with a ~PSP header though.
You're implying that this won't be so easy to patch for Sony?
Fail on my end, I meant that there are many ELF PSP executables that are user signed. Unfortunately, I only recall those with a disc0 API encryption.
Advertising
Follow me on twitter: @DaveeFTW

coyotebean
Guru
Posts: 96
Joined: Mon Sep 27, 2010 3:22 pm

Re: PS3 packages and how it leads to PSP signing

Post by coyotebean » Wed Jan 19, 2011 5:05 am

kgsws wrote:Of course. I was trying it on 01g, but i had to reflash FW many times.
I guess it has to be GZipped (or another compression), but i don't know how to GZip it for PSP kernel.
Also, IIRC, pspbtcnfXXX.bin contains the bytes from 0x150-0x15F to validate the file being load.
EDIT: just chcked, it is 0x140-014F, not 0x150-0x15F. So nothing to worry.
Advertising
GBASP x1, GBM x2, NDSL x2, PSP 100X x3, PSP 200X x6, PSP 300X x5, PSP Go x4, Wii x1

jigsaw
Posts: 255
Joined: Sat Dec 18, 2010 12:49 pm

Re: PS3 packages and how it leads to PSP signing

Post by jigsaw » Wed Jan 19, 2011 11:31 pm

I guess it's possible to sign TN HEN since it's just another user mode homebrew, although vsh exploit and kernel exploit are used.
Actually it starts up and prints log - just one line "start...". But then it fails in different ways, either shutdown or freeze PSP.
Obviously sceUtilityHtmlViewerInitStart and sceKernelDelayThread are executed, but then search for string sceVshHV breaks sth. Looks to be caused by illegal access to some address?

So the question is: will encryption modify the memory layout of prx?


EDITED: I applied -mno-gpopt in my makefile so I think it's not relocation type related.

bbtgp
Posts: 9
Joined: Mon Jan 17, 2011 8:59 am

Re: PS3 packages and how it leads to PSP signing

Post by bbtgp » Thu Jan 20, 2011 12:12 am

I think it kills its self with a 1MB memory set, looking at the reverses around the net.
Last edited by bbtgp on Thu Jan 20, 2011 12:24 am, edited 2 times in total.

jigsaw
Posts: 255
Joined: Sat Dec 18, 2010 12:49 pm

Re: PS3 packages and how it leads to PSP signing

Post by jigsaw » Thu Jan 20, 2011 12:19 am

bbtgp wrote:I think it kills its self with a 1MB memory set, looking at the reverses around the net.
Thanks for reply. I don't quite get it - where is the 1MB memory set? I think I'm the only source of "reverses around the net" - http://code.google.com/p/hen/

bbtgp
Posts: 9
Joined: Mon Jan 17, 2011 8:59 am

Re: PS3 packages and how it leads to PSP signing

Post by bbtgp » Thu Jan 20, 2011 12:24 am

Sorry, i didn't see your post before i edited..... The kernel loads them around 0x08804000, HBL is much higher in memory.

EDIT: from that link its on line 215. There's also another reverse here viewtopic.php?p=11128#p11128

Mathieulh
Guru
Posts: 46
Joined: Thu Jan 06, 2011 6:17 am
Contact:

Re: PS3 packages and how it leads to PSP signing

Post by Mathieulh » Thu Jan 20, 2011 7:33 am

Just to confirm, you can still "sign" things for 6.37
---
PGP Fingerprint: DF46 8C79 5D1A 76FF 75B2 C345 4679 EDEF 1B5B B192
Public Key: https://pgp.mit.edu/pks/lookup?op=get&search=0x1B5BB192

Proof: https://keybase.io/mathieulh

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: PS3 packages and how it leads to PSP signing

Post by m0skit0 » Thu Jan 20, 2011 8:23 am

About signed TN HEN: maybe kernel refuses to resolve some imports, like VSH's, since it's not running from VSH mode? This doesn't happen on HBL since it's HBL who resolves the imports.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

JJS
Big Beholder
Posts: 1416
Joined: Mon Sep 27, 2010 2:18 pm
Contact:

Re: PS3 packages and how it leads to PSP signing

Post by JJS » Thu Jan 20, 2011 8:32 am

I can confirm what bbtgp writes above, the TN HEN loader simply overwrites itself with zeros because it assumes to be loaded to 0x08900000 by HBL whereas it is really loaded to 0x08804000 by the firmware. Besides, wouldn't it be better to discuss the HEN in its own topic?

Edit: Corrected the address.

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: PS3 packages and how it leads to PSP signing

Post by m0skit0 » Thu Jan 20, 2011 8:36 am

JJS wrote:the TN HEN loader simply overwrites itself with zeros because it assumes to be loaded to 0x08900000 by HBL whereas it is really loaded to 0x08840000 by the firmware
Such careless programming... :lol: And yes, I think TN HEN can be discussed on its own thread/forum.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

Post Reply

Return to “Programming and Security”