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 

vshAvcResumeDebugGetVTimerBase, fake name or nid collision?

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



Joined: 26 Oct 2005
Posts: 567

PostPosted: Wed May 03, 2006 5:50 am    Post subject: vshAvcResumeDebugGetVTimerBase, fake name or nid collision? Reply with quote

Do you know what the vshAvcResumeDebugGetVTimerBase (from sceVshBridge) does?

It... executes the games/homebrews in the memory stick!!!

Yeah, the code of this function (which can be called from vsh mode), simply sets the kernel mode and then execute the function LoadExecForKernel_28D0D249, which requires kernel mode and it's the one that does the real thing.

My question for those md5 experts... How big is the posibility of a collision between two strings that have sense? Do you think this is more probably a false name to fake us?
Back to top
View user's profile Send private message
kuroitenchi



Joined: 23 Apr 2006
Posts: 10

PostPosted: Wed May 03, 2006 6:19 am    Post subject: Reply with quote

Great finding ! :) I think Mathieulh spoke somewhere on this forum of some hidden debug functions within vshbridge (without giving further details) it seems to be one of them.
I am no expert but I presume that it is just a forgotten debug function forgotten in the retail firmwares that doesn't do what it was meant to.

Anyway it's a great step into running kernel mode in 2.00 :)
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Wed May 03, 2006 6:24 am    Post subject: Reply with quote

kuroitenchi wrote:
Great finding ! :) I think Mathieulh spoke somewhere on this forum of some hidden debug functions within vshbridge (without giving further details) it seems to be one of them.
I am no expert but I presume that it is just a forgotten debug function forgotten in the retail firmwares that doesn't do what it was meant to.

Anyway it's a great step into running kernel mode in 2.00 :)


This functions is actually the one that the vsh uses to execute our apps :)

Maybe those functions that Mathieulh talked about are some like sceKernelLoadExecBufferPlain :D, sceKernelLoadExecFromHost and their vshbridge equivalents, which were misteriously removed in 2.00

But actually, i don't think it can be used to get access to kernel mode in 2.00. In 1.50, the LoadExec family of functions can execute unsigned elf's (but not unsigned prx's, not unsigned pbp's), that's why we have homebrew now a days, but that stupid error of sony was patched.
Back to top
View user's profile Send private message
kuroitenchi



Joined: 23 Apr 2006
Posts: 10

PostPosted: Wed May 03, 2006 6:28 am    Post subject: Reply with quote

so, vshAvcResumeDebugGetVTimerBase cannot actually be used to run homebrews on 2.00 because LoadExecForKernel_28D0D249 wont run decrypted elfs ?

Last edited by kuroitenchi on Wed May 03, 2006 6:43 am; edited 2 times in total
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Wed May 03, 2006 6:32 am    Post subject: Reply with quote

kuroitenchi wrote:
so, vshAvcResumeDebugGetVTimerBase cannot actually be used on 2.00 because LoadExecForKernel_28D0D249 wont run decrypted elfs ?


Exact. It has been patched in 2.00 (maybe it's also patched from 1.51)
It was one of the most stupid errors of Sony. In some parts they have put a lot of effort in security, but then they have lame mistakes like that...
Back to top
View user's profile Send private message
kuroitenchi



Joined: 23 Apr 2006
Posts: 10

PostPosted: Wed May 03, 2006 6:38 am    Post subject: Reply with quote

Well from my point of view I don't think that fw 1.00 was what I'd call secured. You could run any decrypted elfs as long as it was packed within a pbp and reverse engeneering the how the pbp is done isn't rocket science.

I wonder what LoadExecForKernel_28D0D249 in newer firmwares need to actually execute an elf, does the elf only need to be encrypted, or does it needs to comply some other restrictions ?
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Wed May 03, 2006 6:57 am    Post subject: Reply with quote

There are alot of collisions in the md5 brute forcing because only 32bits of the md5sum are used by the nid. In all likelyhood it is the same function name as the unknown sceLoadExec one just with vsh at the front. We may never know the real name :(

And the elf will probably always need to in a ~PSP wrapper on the 2.0+ (and possible 1.51+) firmwares, that isn't to say of course that the elf has to be encrypted but we have yet to really determine what all the fields mean. Perhaps if people look hard enough there might be an exploit in the decryption code. Who knows if noone looks too hard :)
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Wed May 03, 2006 7:22 am    Post subject: Reply with quote

TyRaNiD wrote:

And the elf will probably always need to in a ~PSP wrapper on the 2.0+ (and possible 1.51+) firmwares, that isn't to say of course that the elf has to be encrypted but we have yet to really determine what all the fields mean. Perhaps if people look hard enough there might be an exploit in the decryption code. Who knows if noone looks too hard :)


Yeah, that worths a look :)
Back to top
View user's profile Send private message
jas0nuk



Joined: 27 Apr 2006
Posts: 137

PostPosted: Wed May 03, 2006 7:29 am    Post subject: Reply with quote

I'm not too knowledgable when it comes to the VSH and how ELFs are executed... does this mean that the ELF must be encrypted so that the header begins ~PSP instead of ~ELF before it can run through this method?
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