Random Homebrew: Sketch a Etch
It's an improved version of a 'etch a sketch' but to avoid copyright infringement, I've called it sk [...]
Friends: Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita

anyway to unload modules without sceUtilityUnloadModule?

This is the development forum of the half-byte loader project. For general Half Byte Loader questions, visit the Half Byte Loader forum.
Forum rules
This forum is for HBL Development discussions ONLY. For User support or HBL general discussions, go to viewforum.php?f=3 . Messages that are not development related will be deleted.

anyway to unload modules without sceUtilityUnloadModule?

Postby wololo » Fri Jun 22, 2012 1:13 pm

As you might have guessed by the title, an exploit I am working on does not import sceUtilityUnloadModule.
I've used my trick from last month to load as much as I can and retrieve some essential nids from additional modules (+ p5 stubs), but that function is nowhere to be found. For now I can probably try to live without it, but it would be great to be able to unload modules though... at least the one from the game...
I have a few US PSN codes to sell for a reasonable price (cheaper than pcgamesupply). PM me if interested, 1st come 1st serve basis..

Looking for guest bloggers and news hunters here at wololo.net, PM me!
wololo
Site Admin
 
Posts: 4641
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: anyway to unload modules without sceUtilityUnloadModule?

Postby wololo » Fri Jun 22, 2012 2:11 pm

Update:
I have access to SysMemUserForUser_35669D4C which seems to be an equivalent for sceKernelSelfStopUnloadModule.

Not sure how I can leverage that though, I assume to stop the game module I need to be in the game's thread, and if I do that, then some things will stop working...
An idea is probably to force each module/thread to jump to that function from within its own memory space...

I think I have the idea but if somebody has the actual code to handle that I would be super grateful.

TL,DR: the game is to reimplement sceUtilityUnloadModule with sceKernelSelfStopUnloadModule (or, in my case, SysMemUserForUser_35669D4C)
I have a few US PSN codes to sell for a reasonable price (cheaper than pcgamesupply). PM me if interested, 1st come 1st serve basis..

Looking for guest bloggers and news hunters here at wololo.net, PM me!
wololo
Site Admin
 
Posts: 4641
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: anyway to unload modules without sceUtilityUnloadModule?

Postby JJS » Fri Jun 22, 2012 2:37 pm

I am not sure the kernel will like that. It probably thinks that the utility module is still loaded and you won't be able to reload it later with sceUtilityLoadModule.

This is only my guess though. Maybe you should test this on a PSP with CFW first by writing a small program that loads a utility with sceUtilityLoadModule. Then you unload the module through PSPLink (easier than trying to get the module id and doing it in the program I think). And then have the program try to load the utility module again.
JJS
Big Beholder
 
Posts: 1516
Joined: Mon Sep 27, 2010 2:18 pm

Re: anyway to unload modules without sceUtilityUnloadModule?

Postby m0skit0 » Fri Jun 22, 2012 3:57 pm

I'm not so sure you can't reload it later. Savegame module for example loads and unloads a lot of times (not sure if this is what you mean though).
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
User avatar
m0skit0
Guru
 
Posts: 4785
Joined: Mon Sep 27, 2010 6:01 pm

Re: anyway to unload modules without sceUtilityUnloadModule?

Postby wololo » Fri Jun 22, 2012 4:22 pm

m0skit0 wrote:I'm not so sure you can't reload it later. Savegame module for example loads and unloads a lot of times (not sure if this is what you mean though).

That's not what he meant. He meant that if the module is not unloaded properly, the kernel might think it is still loaded, and therefore refuse to load it a second time.

JJS: at the very least if I can unload the game's main module, I'll free somewhere between 5 and 10MB, which will put me in a more acceptable situation. And this one, I never need to reload :)
I have a few US PSN codes to sell for a reasonable price (cheaper than pcgamesupply). PM me if interested, 1st come 1st serve basis..

Looking for guest bloggers and news hunters here at wololo.net, PM me!
wololo
Site Admin
 
Posts: 4641
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: anyway to unload modules without sceUtilityUnloadModule?

Postby wololo » Fri Jun 29, 2012 2:04 pm

Sigh, I just can't get it to work.
I wasted close to 10 hours on this lead. I'm sure there has to be a way to stop that module, and it's probably a simple mistake on my end, but it just refuses to stop.

For now I'll assume that a game that does not import sceUtilityUnloadModule is probably a no go.
It sucks because I did manage to load homebrews with that exploit, just not complicated ones :(
I have a few US PSN codes to sell for a reasonable price (cheaper than pcgamesupply). PM me if interested, 1st come 1st serve basis..

Looking for guest bloggers and news hunters here at wololo.net, PM me!
wololo
Site Admin
 
Posts: 4641
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: anyway to unload modules without sceUtilityUnloadModule?

Postby wololo » Sat Jun 30, 2012 1:00 am

Hmm, my problem is elsewhere. sceUtitlityUnloadModule is only to unload those external user mode modules.
Now I realize I have only 15MB of contiguous ram after freeing, despite having 24MB total. A few "small" things are in the middle of the user ram and not getting freed, this could be one of my issues
I have a few US PSN codes to sell for a reasonable price (cheaper than pcgamesupply). PM me if interested, 1st come 1st serve basis..

Looking for guest bloggers and news hunters here at wololo.net, PM me!
wololo
Site Admin
 
Posts: 4641
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan


Return to Half Byte Loader Development

Who is online

Users browsing this forum: No registered users and 0 guests