how to hook a func in prx loaded(PSP_MEMORY_PARTITION_USER)

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
cooleyes
Posts: 123
Joined: Thu May 18, 2006 3:30 pm

how to hook a func in prx loaded(PSP_MEMORY_PARTITION_USER)

Post by cooleyes »

use the code in psplink, I can hook a func in prx loaded(PSP_MEMORY_PARTITION_KERNEL)

but it can not hook a func in prx(PSP_MEMORY_PARTITION_USER).

anyone know how to do it ?
cooleyes
Posts: 123
Joined: Thu May 18, 2006 3:30 pm

Post by cooleyes »

no one know this? :(

I can get the func exported address like 0x9xxxxxx, is not kernel memory address,
so I can not find out the syscall_addr.
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

You can probably hook the import (instead of the export in psplink), so find the module which is calling the exported function and do a 'apihook @importmod ImportLIb @function/nid
cooleyes
Posts: 123
Joined: Thu May 18, 2006 3:30 pm

Post by cooleyes »

TyRaNiD wrote:You can probably hook the import (instead of the export in psplink), so find the module which is calling the exported function and do a 'apihook @importmod ImportLIb @function/nid
how can Ido to find out the func imported address?
can you give me a sample code ?
whazilla
Posts: 13
Joined: Sat Sep 09, 2006 10:20 pm

Post by whazilla »

hi,

cant u find the exports/imports with prxtool ?
peb
Posts: 26
Joined: Mon Mar 12, 2007 10:01 pm

Post by peb »

Maybe psplink hook's could help you.

I tried to use it, the code is working and I think he could help you, but me I have little problem :

I call psplink hook's and I run the EBOOT2 which not start ... when I quit EBOOT1, the EBOOT2 start! It's normal when you read the code, but It's not same result like psplink ;)

I think you can use this code but change only LoadExec by LoadModule.


EDIT: sorry, I didn't see you use this actualy XD
Sorry for my English, I'm french.
Post Reply