Advertising (This ad goes away for registered users. You can Login or Register)

[Suggestion] HBL as signed EBOOT

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.
User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

[Suggestion] HBL as signed EBOOT

Post by m0skit0 » Thu Jan 20, 2011 8:43 am

Maybe converting HBL into an EBOOT and signing him will allow for easier homebrew running from HBL, so you don't have to pass through a demo exploit to launch HBL. This would get rid for the need of any exploit, and also from all the cleaning since we already know what has to be cleaned :mrgreen:

But I'm thinking also that HBL won't have its "syscall information charge" to be able to resolve the homebrews, but HBL can include any number of imports to be resolved by the OFW kernel as well.
Advertising
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

JJS
Big Beholder
Posts: 1416
Joined: Mon Sep 27, 2010 2:18 pm
Contact:

Re: [Suggestion] HBL as signed EBOOT

Post by JJS » Thu Jan 20, 2011 9:06 am

It would probably be possible to hack this is in with minimal effort by doing this:
- Have the signed eboot equipped with imports for every useful library.
- Make the signed eboot perform the functions of h.bin, that is loading hbl.bin and resolving its imports (i.e. copying them to the scratchpad).
- Set the config files to point to the import stubs of the signed eboot, just like you would do it with the exploitet game and its other modules.

So the signed eboot would perform both the functions of the launcher and the exploitet game.

Edit: There would be no changes required to hbl.bin at all. But thinking about it, you could also just have h.bin as it is and only load it to RAM with the signed eboot. Then just have the eboot have a lot of imports and adapt the exploit_config.h file accordingly. Everything else runs at is it. You would basically exploit your own eboot.
Advertising

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: [Suggestion] HBL as signed EBOOT

Post by m0skit0 » Thu Jan 20, 2011 9:21 am

JJS wrote:But thinking about it, you could also just have h.bin as it is and only load it to RAM with the signed eboot.
Yes, nice thinking, it's even simpler.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

Strangelove
Posts: 286
Joined: Thu Nov 25, 2010 6:32 pm

Re: [Suggestion] HBL as signed EBOOT

Post by Strangelove » Thu Jan 20, 2011 11:34 am

Good idea. I think many people are sick of hearing the Patapon theme song now. :) I take it that means it will be compatible with TN HEN as well?

The minimal hack sounds like the way to go, I mean you wouldn't want to ruin HBL by changing it so much that it can't perform it's original function. If someday Sony fixes the signing issue, then HBL is once again needed to load from an exploit.
"If you have specific questions ... don't hesitate to ask as the more generic the question is the more philosophic the answer will be" - PSPWizard

wololo
Site Admin
Posts: 3614
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: [Suggestion] HBL as signed EBOOT

Post by wololo » Thu Jan 20, 2011 11:49 am

Strangelove wrote:I mean you wouldn't want to ruin HBL by changing it so much that it can't perform it's original function. If someday Sony fixes the signing issue, then HBL is once again needed to load from an exploit.
That's not really an issue though, we could reorganize the code, have 2 separate makefiles for the "game exploit" mode and for the "eboot" mode.

JJS's solution is nice because it probably involves not so much changes to the code, we just need to create a separate Eboot that will act as a fake game that gets exploited
If you need US PSN Codes, this technique is what I recommend.

Looking for guest bloggers and news hunters here at wololo.net, PM me!

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: [Suggestion] HBL as signed EBOOT

Post by m0skit0 » Thu Jan 20, 2011 12:25 pm

Strangelove wrote: I think many people are sick of hearing the Patapon theme song now.
You just have to mute the sound. And I'm sure wololo and me heard that dang song more than anyone, maybe even more than Patapon developers themselves :lol:
Strangelove wrote:If someday Sony fixes the signing issue
I hardly think Sony can fix the signing issue...
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

wololo
Site Admin
Posts: 3614
Joined: Wed Oct 15, 2008 12:42 am
Location: Japan

Re: [Suggestion] HBL as signed EBOOT

Post by wololo » Thu Jan 20, 2011 12:32 pm

m0skit0 wrote:
Strangelove wrote: I think many people are sick of hearing the Patapon theme song now.
And I'm sure wololo and me heard that dang song more than anyone, maybe even more than Patapon developers themselves :lol:
Lol, every day, when I turn my PSP on, and the "gameboot" sound starts, my wife starts singing "Pata Pata Pata Pooooon... yo ho hoi!..." before the game even runs
I think I semi-bricked my wife :mrgreen:

Edit: back on topic, how do we create an Eboot that has all the imports we need? It's fun to think that I have no good idea how to write a homebrew that hacks itself :lol:

I guess it will go something like:

Code: Select all

//import libraries?

main{
void * h_bin_entry = 0x08810000;
fd = fopen(h.bin)
char * buffer = h_bin_entry;
fread(fd, buffer, 10000);
fclose(fd);

h_bin_entry();
}
If you need US PSN Codes, this technique is what I recommend.

Looking for guest bloggers and news hunters here at wololo.net, PM me!

User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: [Suggestion] HBL as signed EBOOT

Post by m0skit0 » Thu Jan 20, 2011 1:34 pm

Yeah something like that will work just fine. But it has to import some stuff, otherwise it will be useless.

PD: remember the forum rules, thanks. No useless posts here.
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

Libre
Posts: 47
Joined: Sat Jan 01, 2011 4:51 pm

Re: [Suggestion] HBL as signed EBOOT

Post by Libre » Thu Jan 20, 2011 1:55 pm

I was trying to do just that since yesterday, either one of those ways, but unsuccessfully :
- Build the h.bin (loader.c) as signed eboot (-> The original hbl/hbl.bin is loaded but crashes when building NIDS)
- Build the hbl.bin (eloader.c) as signed eboot (-> Crashes after boot screen whenever I include some NIDs from sdk_hbl.S)

Obviously I do this the wrong way, I'll wait to see how your guys will do it, and learn.

some1
HBL Collaborator
Posts: 139
Joined: Sun Dec 12, 2010 4:19 am

Re: [Suggestion] HBL as signed EBOOT

Post by some1 » Thu Jan 20, 2011 2:13 pm

Libre wrote:I was trying to do just that since yesterday, either one of those ways, but unsuccessfully :
- Build the h.bin (loader.c) as signed eboot (-> The original hbl/hbl.bin is loaded but crashes when building NIDS)
- Build the hbl.bin (eloader.c) as signed eboot (-> Crashes after boot screen whenever I include some NIDs from sdk_hbl.S)

Obviously I do this the wrong way, I'll wait to see how your guys will do it, and learn.
As mentioned above, I think the best way is to make a signed Bin Loader (I just tried it, very easy), and from the bin loader you import all the usefull lib's (not quite sure how to do this), and then adjust the sdk files (also very easy) and the rest should be just troubleshooting :P

In reality, the only thing you need to get hbl going is scePaf_Module, however if you want net, ad hoc, ect you will need others...
Last edited by some1 on Thu Jan 20, 2011 2:18 pm, edited 2 times in total.
way to keep a secret malloxis...erm jeerum
Hmm, a demo user mode exploit doesn't seem as important anymore, I wonder why... xP

Post Reply

Return to “Half Byte Loader Development”