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

PSPLIBDOC.xml Update 6.60

Open discussions on programming specifically for the PS Vita.
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
thecobra
HBL Collaborator
Posts: 167
Joined: Thu Feb 24, 2011 7:50 pm

PSPLIBDOC.xml Update 6.60

Post by thecobra » Tue May 29, 2012 12:07 am

Hi everyone,

I just updated/Edited the psplibdoc.xml based on some interesting strings i found from the PSP Vita 660 kernel dump that was posted here on wololo blog. This May not be useful to everyone but it may help some people.

All credit goes to http://silverspring.lan.st/ and everyone that helped/developed in the PSP scene. I only just changed some function name based on what i found on the prx.

Here are some of the functions i found there name for [Total of 10 functions]:

Code: Select all

0x1196472E [0x00005538] - sceKernelLoadModuleBufferMs
0x24EC0641 [0x00005638] - sceKernelLoadModuleBufferApp
0x1CF0B794 [0x00005CCC] - sceKernelLoadModuleBufferBootInitBtcnf
0x253AA17C [0x00005B40] - sceKernelLoadModuleBufferForExitVSHKernel
0x2F3F9B6A [0x00005724] - sceKernelLoadModuleBufferForLoadExecBufferVSHUsbWlan
0x4E38EA1D [0x00005C00] - sceKernelLoadModuleBufferForRebootKernel
0x4E62C48A [0x00005A68] - sceKernelLoadModuleBufferForKernel
0x61E3EC69 [0x00005478] - sceKernelLoadModuleBufferForExitGame
0x9236B422 [0x000059A8] - sceKernelLoadModuleBufferForExitVSHVSH
0xC13E2DE5 [0x000057F0] - sceKernelLoadModuleBufferForLoadExecBufferVSHUsbWlanDebug
I don't know about anyone else but I like the names i see ;)

By the Way, Before anyone ask how i know these name are correct, I not sure my self. I just based it on how these string appear inside the exported function the same way it appears in some of the function that we Already know there name from. Also that they seem to print out this name as a debug string like some of us developer do when we want to make sure a function is called.

Example of this is :

Code: Select all

; ======================================================
; Subroutine ModuleMgrForKernel_4E62C48A - Address 0x00005A68 
; Exported in ModuleMgrForKernel
ModuleMgrForKernel_4E62C48A:
	0x00005A68: 0x27BDFF40 '@..'' - addiu      $sp, $sp, -192
; Data ref 0x00009784 "sceKernelLoadModuleBufferForKernel()\n"
	0x00005A6C: 0x3C020001 '...<' - lui        $v0, 0x1
	0x00005A70: 0xAFB200A8 '....' - sw         $s2, 168($sp)
	0x00005A74: 0x03609021 '!.`.' - move       $s2, $k1
	0x00005A78: 0x001BDAC0 '....' - sll        $k1, $k1, 11
	0x00005A7C: 0xAFB100A4 '....' - sw         $s1, 164($sp)
	0x00005A80: 0x00808821 '!...' - move       $s1, $a0
......

Code: Select all

; ======================================================
; Subroutine sceKernelLoadModuleBufferUsbWlan - Address 0x00001568 
; Exported in ModuleMgrForUser
sceKernelLoadModuleBufferUsbWlan:
	0x00001568: 0x27BDFF30 '0..'' - addiu      $sp, $sp, -208
; Data ref 0x00009580 "sceKernelLoadModuleBufferUsbWlan()\n"
	0x0000156C: 0x3C020001 '...<' - lui        $v0, 0x1
	0x00001570: 0xAFB400C0 '....' - sw         $s4, 192($sp)
	0x00001574: 0x0360A021 '!.`.' - move       $s4, $k1
	0x00001578: 0x001BDAC0 '....' - sll        $k1, $k1, 11
	0x0000157C: 0xAFB200B8 '....' - sw         $s2, 184($sp)
	0x00001580: 0x00809021 '!...' - move       $s2, $a0
........
As you can see, they have reference to those name inside there exported function. If anyone has a link of a tool like nidattack for mac lion, i willing to try to test out to see if it is the correct name for those functions.
Advertising
Attachments
psplibdoc_660.xml.zip
PSPLIBDOC_660.xml Update
(119.04 KiB) Downloaded 401 times
Image
Cheap & Fast VPS Server from DigitalOcean
PSVita 3.xx eCFW <Thank to wololo Community>
PSVita 1.67 vHBL Dead :(
PSP FAT 6.60 - CFW pro

poettlr
Posts: 38
Joined: Mon May 14, 2012 2:10 pm

Re: PSPLIBDOC.xml Update 6.60

Post by poettlr » Tue May 29, 2012 7:23 am

Since i really do not know that much about the firmware... please dont be harsh :)

The odd numbers and letters are an adress of in the memory?

If yes..

Is the memory map of the psp firmware encapsulated from the one of the vita?`

If no..

Can we assume that we "know" the memory map position of the psp firmware?

thx in advance..
Advertising

User avatar
Yoti
VIP
Posts: 360
Joined: Sun Oct 17, 2010 4:49 am
Location: Russia

Re: PSPLIBDOC.xml Update 6.60

Post by Yoti » Tue May 29, 2012 8:39 am

Thx, thecobra!
IF SOMEONE HAS AN 07G PSP-3000 PLZ CONTACT ME VIA PM.

Image
Do not forget about adb kill-server. Really.

anhell28
Posts: 33
Joined: Mon Apr 16, 2012 2:07 am

Re: PSPLIBDOC.xml Update 6.60

Post by anhell28 » Tue May 29, 2012 9:32 am

this sounds very interesting thnx for the info thecobra.

thecobra
HBL Collaborator
Posts: 167
Joined: Thu Feb 24, 2011 7:50 pm

Re: PSPLIBDOC.xml Update 6.60

Post by thecobra » Tue May 29, 2012 12:05 pm

poettlr wrote:Since i really do not know that much about the firmware... please dont be harsh :)

The odd numbers and letters are an adress of in the memory?
Yes, In the first one where i post the 10 functions name that i found. The first hex numbers are the NID of the function, The second hex number is the offset of the function from where the prx is loaded in memory [prx memory location + offset = Function]
poettlr wrote: If yes..

Is the memory map of the psp firmware encapsulated from the one of the vita?`
I don't think i quite understand your question here. Are you asking if the address above are from the PSP Emulator in side the PSP Vita? if so, Then yes and no. They are based on the prx loaded from psp emulator on the vita but they aren't the complete address/the correct location in memory. Like i said above, they just offset inside the prx which is loaded into memory by the firmware.
poettlr wrote: If no..

Can we assume that we "know" the memory map position of the psp firmware?

thx in advance..
This one is also a yes and no answer, knowing the offset, we can somewhat know where in memory we can find the "rest" of the prx since we can map the address we get of the prx in memory with the address we get from the decompiler prx. No because, the PRX on the vita are a bit different than the one on the normal PSP. So they may be located at a different location than the ones on the normal PSP. We can do a search in memory to find where they loaded but we need a kernel exploit for that since most of the "Good" prx are loaded in kernel land.

Someone more experience than me can correct me if i am wrong.
Image
Cheap & Fast VPS Server from DigitalOcean
PSVita 3.xx eCFW <Thank to wololo Community>
PSVita 1.67 vHBL Dead :(
PSP FAT 6.60 - CFW pro

wth
HBL Developer
Posts: 834
Joined: Wed Aug 31, 2011 4:44 pm
Contact:

Re: PSPLIBDOC.xml Update 6.60

Post by wth » Wed May 30, 2012 7:58 pm

thecobra wrote:

Code: Select all

0x1196472E [0x00005538] - sceKernelLoadModuleBufferMs
0x24EC0641 [0x00005638] - sceKernelLoadModuleBufferApp
0x1CF0B794 [0x00005CCC] - sceKernelLoadModuleBufferBootInitBtcnf
0x253AA17C [0x00005B40] - sceKernelLoadModuleBufferForExitVSHKernel
0x2F3F9B6A [0x00005724] - sceKernelLoadModuleBufferForLoadExecBufferVSHUsbWlan
0x4E38EA1D [0x00005C00] - sceKernelLoadModuleBufferForRebootKernel
0x4E62C48A [0x00005A68] - sceKernelLoadModuleBufferForKernel
0x61E3EC69 [0x00005478] - sceKernelLoadModuleBufferForExitGame
0x9236B422 [0x000059A8] - sceKernelLoadModuleBufferForExitVSHVSH
0xC13E2DE5 [0x000057F0] - sceKernelLoadModuleBufferForLoadExecBufferVSHUsbWlanDebug
Apparently like freddy just published, the NIDs are just the first 32 bits (little-endian) of the SHA1 of the function names
but here with your functions and their NIDs, this rule doesn't work so maybe you haven't the correct NIDs

User avatar
FrEdDy
HBL Collaborator
Posts: 243
Joined: Mon Sep 27, 2010 7:08 pm
Contact:

Re: PSPLIBDOC.xml Update 6.60

Post by FrEdDy » Wed May 30, 2012 8:31 pm

wth wrote:
thecobra wrote:

Code: Select all

0x1196472E [0x00005538] - sceKernelLoadModuleBufferMs
0x24EC0641 [0x00005638] - sceKernelLoadModuleBufferApp
0x1CF0B794 [0x00005CCC] - sceKernelLoadModuleBufferBootInitBtcnf
0x253AA17C [0x00005B40] - sceKernelLoadModuleBufferForExitVSHKernel
0x2F3F9B6A [0x00005724] - sceKernelLoadModuleBufferForLoadExecBufferVSHUsbWlan
0x4E38EA1D [0x00005C00] - sceKernelLoadModuleBufferForRebootKernel
0x4E62C48A [0x00005A68] - sceKernelLoadModuleBufferForKernel
0x61E3EC69 [0x00005478] - sceKernelLoadModuleBufferForExitGame
0x9236B422 [0x000059A8] - sceKernelLoadModuleBufferForExitVSHVSH
0xC13E2DE5 [0x000057F0] - sceKernelLoadModuleBufferForLoadExecBufferVSHUsbWlanDebug
Apparently like freddy just published, the NIDs are just the first 32 bits (little-endian) of the SHA1 of the function names
but here with your functions and their NIDs, this rule doesn't work so maybe you haven't the correct NIDs
That doesn't apply to kernel nids in newer firmwares, kernel nids are random (I thought I explained they change?)
https://github.com/freddy-156
<@n00b81> FREDDY CUTTIES

wth
HBL Developer
Posts: 834
Joined: Wed Aug 31, 2011 4:44 pm
Contact:

Re: PSPLIBDOC.xml Update 6.60

Post by wth » Thu May 31, 2012 1:35 am

FrEdDy wrote:That doesn't apply to kernel nids in newer firmwares, kernel nids are random (I thought I explained they change?)
yeah you did I just only tested with user syscalls I guess lol
but I figured if kernel NIDs were changing, maybe that just meant they had been renamed ? xD

User avatar
FrEdDy
HBL Collaborator
Posts: 243
Joined: Mon Sep 27, 2010 7:08 pm
Contact:

Re: PSPLIBDOC.xml Update 6.60

Post by FrEdDy » Thu May 31, 2012 11:26 am

wth wrote:
FrEdDy wrote:That doesn't apply to kernel nids in newer firmwares, kernel nids are random (I thought I explained they change?)
yeah you did I just only tested with user syscalls I guess lol
but I figured if kernel NIDs were changing, maybe that just meant they had been renamed ? xD
Nah they are not renamed, I don't know how they are calculated anyways
https://github.com/freddy-156
<@n00b81> FREDDY CUTTIES

Post Reply

Return to “Programming and Security”