LAN.ST  

Go Back   LAN.ST > Forum > Console Hacking & Development > Sony PlayStation Portable

Sony PlayStation Portable Sony PlayStation Portable related development discussion.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2011, 10:26 AM
daxgr daxgr is offline
Junior Member
 
Join Date: Apr 2011
Posts: 3
Exclamation Kernel PRX export/import tutorial REQUEST

I studied hellcat's tutorial but i still need to know how to identify what functions are already exported by the firmware kernel prx files. What i want to achieve is to have a prx that intercepts all requests to usb driver for sending/receiving data, write them to a file and then call the proper functions of the original(but now renamed prx) with the original data. It should be possible, right?
And i also i would like to know the name of a function that can list all currently loaded modules and it's associated prx file. Much appreciated.


EG let's say that usermode module user.prx wants to send data using USB.
It call sth like that sceUSBSendData(data,endpoint blah blah) which resides in file kusb.prx.

What i want to achieve is rename kusb.prx to kusb_orig.prx then modify the process as follows


user.prx calls sceUSBSendData(data,endpoint blah blah) which resides in my kusb.prx which has a function

sceUSBSendData(data,endpoint blah blah)
{
dump data; //only a stub for the actual process
sceUSBSendData(data,endpoint blah blah) // which is from the kusb_orig.prx
}

and here are other functions that kusb_orig.prx exports in the form:

sceUSBotherfunction(arguments)
{
sceUSBotherfunction(arguments) // which calls original kusb_orig.prx
}


Thanks for your time and (hopefully) help.
Reply With Quote
  #2  
Old 08-18-2011, 09:57 AM
arnold arnold is offline
Senior Member
 
Join Date: Feb 2007
Location: Where Specter lives.
Posts: 381
Default

Look into PSPLink source code. It has a lot to learn from.

What you are trying to do is hook the USBdriver.

Imports and exports of a PRX can be displayed using PRXTool. You can find that everywhere.

I'm sorry I don't have time to go into a lot of detail.

I hope that helps.

-arnold
__________________
irc.malloc.us
#Arnold

Come and chat with Arnie
UTOPIA Project Awesomeness

http://arnold.hyperphp.com/forums

Reply With Quote
  #3  
Old 08-20-2011, 12:54 PM
daxgr daxgr is offline
Junior Member
 
Join Date: Apr 2011
Posts: 3
Default

thanks i figured it out by hooking sceUsbdReqSend and sceUsbdReqRecv.
Reply With Quote
Reply

  LAN.ST > Console Hacking & Development > Sony PlayStation Portable

Tags
hijack, kprx, prx, usb

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for admin(s). J697 Ultimate Hall of Shame 4 02-21-2011 09:20 AM
[Request]Have anyone the OFW 6.11? emink123 Sony PlayStation Portable 9 12-03-2010 01:18 PM
Kernel Mode on 3.71 m33/3.80 m33 no 1.50 kernel add-on Pirata Nervo Sony PlayStation Portable 4 06-22-2008 11:44 PM


All times are GMT +1. The time now is 01:34 AM.

Design Developed by CompleteGFX
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.