forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Kernel access with 2.6 (hitchhikr and Ookm codes)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
tnt



Joined: 11 Oct 2006
Posts: 9

PostPosted: Wed Oct 11, 2006 10:08 pm    Post subject: Kernel access with 2.6 (hitchhikr and Ookm codes) Reply with quote

I'm trying to understand what is currently possible in 2.6 and how.
When searching for kernel mode access in 2.6, I found mainly :

- The proof of concept 2.6 ( Exploit_2.6.zip ) written by hitchhikr / Neural.
- The code posted by Ookm ( 25_26_VSH_KA.zip ) named "Kernel access under FW2.50/2.60 VSH"
- eloader 0.99 with "partial kernel support"

My questions / interrogations are :

* I've never been able to execute successfully the hitchhikr code. Either with eloader 0.98 and 0.99 (both tiff version), it just freeze the PSP. It is said it should be run using GTA eloader but what's the difference ? What
should be done to make it compatible with the tiff exploit ?

* The Ookm code : It runs fine with eloader 0.98 but not with 0.99. I would guess the "partial kernel support" of eloader 0.99 actually use the same exploit and so both can't be used at the same time. But then why isn't eloader 0.99 providing full kernel mode ? The Ookm code seems to launch any kernel thread or am I missing something ?

Secondly about the Ookm code, the comment says :
Game mode Kernel access by hitchhikr / Neural.
VSH mode Kernel access by moonlight
I guess what he means by that is that first VSH access is obtained using the tiff exploit, then from there using the hithickr exploit, kernel mode is accessed. But then why can't I run the hithickr exploit from the tiff eloader 0.98 ?

Finally, does the Ookm code do more than the hithickr exploit ?


My hw : A recent PSP but not ta-082 with firmware 2.60. I have eloader 0.98 and 0.99 installed, both using the tiff exploit.

PS: About the tiff exploit, eloader works fine with it, but both tiffsdk example (1.0 and 1.1 tetris) just don't load, they simple freeze the psp ... any idea ?
Back to top
View user's profile Send private message
0okm0000



Joined: 13 Jan 2006
Posts: 116

PostPosted: Wed Oct 11, 2006 11:12 pm    Post subject: Re: Kernel access with 2.6 (hitchhikr and Ookm codes) Reply with quote

tnt wrote:
* I've never been able to execute successfully the hitchhikr code. Either with eloader 0.98 and 0.99 (both tiff version), it just freeze the PSP. It is said it should be run using GTA eloader but what's the difference ? What
should be done to make it compatible with the tiff exploit ?

because eloader(TIFF) run in VSH mode, so can't use "sceKernelLoadExec"
in eloader(TIFF) need to use "vshKernelLoadExecVSH"

tnt wrote:
* The Ookm code : It runs fine with eloader 0.98 but not with 0.99. I would guess the "partial kernel support" of eloader 0.99 actually use the same exploit and so both can't be used at the same time. But then why isn't eloader 0.99 providing full kernel mode ? The Ookm code seems to launch any kernel thread or am I missing something ?

because eloader0.99 Unloaded "vshbridge", so can't use "vshKernelLoadExecVSH"
_________________
PSP hardware hack
http://0okm.blogspot.com/
Back to top
View user's profile Send private message Visit poster's website
tnt



Joined: 11 Oct 2006
Posts: 9

PostPosted: Thu Oct 12, 2006 5:09 am    Post subject: Re: Kernel access with 2.6 (hitchhikr and Ookm codes) Reply with quote

Hi 0okm0000,
thanks for the answer.

0okm0000 wrote:
tnt wrote:
* I've never been able to execute successfully the hitchhikr code. Either with eloader 0.98 and 0.99 (both tiff version), it just freeze the PSP. It is said it should be run using GTA eloader but what's the difference ? What
should be done to make it compatible with the tiff exploit ?

because eloader(TIFF) run in VSH mode, so can't use "sceKernelLoadExec"
in eloader(TIFF) need to use "vshKernelLoadExecVSH"


yes, using vshKernelLoadExecVSHs1 works great ! Thanks.


0okm0000 wrote:

tnt wrote:
* The Ookm code : It runs fine with eloader 0.98 but not with 0.99. I would guess the "partial kernel support" of eloader 0.99 actually use the same exploit and so both can't be used at the same time. But then why isn't eloader 0.99 providing full kernel mode ? The Ookm code seems to launch any kernel thread or am I missing something ?

because eloader0.99 Unloaded "vshbridge", so can't use "vshKernelLoadExecVSH"


Any idea why it does that ?
Since it doesn't support yet full kernel support, using the exploit inside the homebrew eboot looks like the only solution for now. (I mean to have a custom eboot doing kernel stuff)
Back to top
View user's profile Send private message
tnt



Joined: 11 Oct 2006
Posts: 9

PostPosted: Thu Oct 12, 2006 6:20 pm    Post subject: Reply with quote

Another question is about the magic addresses in those code :

* Like why 0x09f02020 is a "safe place"
* And what are the 0x880bdcc4 and 0x880be2ac functions
(or where to find this infos)

Thanks for any insight you may have ...
Back to top
View user's profile Send private message
hitchhikr



Joined: 04 Feb 2006
Posts: 83

PostPosted: Thu Oct 12, 2006 9:01 pm    Post subject: Reply with quote

The 0x09f02020 address will be part of the overflow string so each byte of that address needs not to be zero (and doesn't contain 0x3a as this char is needed to control the length of that string).
Back to top
View user's profile Send private message
Fanjita



Joined: 28 Sep 2005
Posts: 217

PostPosted: Fri Oct 13, 2006 6:54 pm    Post subject: Re: Kernel access with 2.6 (hitchhikr and Ookm codes) Reply with quote

Quote:
Any idea why it does that ?
Since it doesn't support yet full kernel support, using the exploit inside the homebrew eboot looks like the only solution for now. (I mean to have a custom eboot doing kernel stuff)


To use the limited kernel support in eLoader, you need to flag your module with kernel mode attributes, and make a function with the attribute '__constructor__', e.g.
Code:

void __constructor__ MyKernelProc()
{
  // Here I am in kernel mode
}


Note that MyKernelProc will be called as the first thing that your program does, and that it is unable to create kernel threads (due to permissions checks in sceKernelCreateThread). However, you could do any kernel mode initialisation that you wanted, including patching of functions in kernel memory, for example to allow creation of kernel threads.

We unload VshBridge simply because it takes up a lot of user memory, and most users of eLoader are more concerned with running high-occupancy usermode games, than working with smaller kernel mode apps.
_________________
Got a v2.0-v2.80 firmware PSP? Download the eLoader here to run homebrew on it!
The PSP Homebrew Database needs you!
Back to top
View user's profile Send private message
tnt



Joined: 11 Oct 2006
Posts: 9

PostPosted: Fri Oct 13, 2006 7:20 pm    Post subject: Re: Kernel access with 2.6 (hitchhikr and Ookm codes) Reply with quote

hitchhikr wrote:

The 0x09f02020 address will be part of the overflow string so each byte of that address needs not to be zero (and doesn't contain 0x3a as this char is needed to control the length of that string).


Ok, thanks. Damn it was so simple ...
I thought there was just something special in memory at that location, silly me ...

Fanjita wrote:
Quote:
Any idea why it does that ?
Since it doesn't support yet full kernel support, using the exploit inside the homebrew eboot looks like the only solution for now. (I mean to have a custom eboot doing kernel stuff)

We unload VshBridge simply because it takes up a lot of user memory, and most users of eLoader are more concerned with running high-occupancy usermode games, than working with smaller kernel mode apps.


Ok, good reason ;)


Thanks for the input to all of you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group