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 

About releasing MoHH eloader source code
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Thu Nov 12, 2009 9:55 pm    Post subject: About releasing MoHH eloader source code Reply with quote

Ok I want to release an alpha version of the Medal of Honor Heroes eloader I've been working on with ab5000 and n00b81, but since I want it to be open source and I've been asked by some devs to keep some parts closed, like syscall estimation. I just want to make clear that we have discovered how to estimate syscalls with no external help (wasnt that hard though), so we have all the right to open the source. This is just to have more experienced developers' advice and consider what to do: release ALL the source or keep some parts closed.

Thanks for reading and giving your opinion :)
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Producted



Joined: 04 Jun 2009
Posts: 56

PostPosted: Fri Nov 13, 2009 2:38 am    Post subject: Reply with quote

+1 for sharing

A question; what's the last version this will work on? 5.50?
~~
No idea if you already did, but I think Freeplay needs some help. :P
_________________
Producted.net
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Fri Nov 13, 2009 3:01 am    Post subject: Reply with quote

5.55

Freeplay didn't contact me. I heard he just sought source from another eloader, that's all.

Anyway our eloader still needs a lot of optimizations, but at least we did it ourselves ;) And dude, you really learn a lot (and bang your head against a wall a lot xDDD)
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Fri Nov 13, 2009 6:52 am    Post subject: Reply with quote

Does it matter that sony also knows what it's actually doing when the source is released?
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Fri Nov 13, 2009 6:57 am    Post subject: Reply with quote

+1 for the share
-1 because you give sony idea to fight custom firmware

Does it contain documentation more important value or just
the code ?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Fri Nov 13, 2009 8:04 am    Post subject: Reply with quote

I think Sony can just reverse it to know how it works, even if they dont have the source. So I think the pros have more stakes than the cons. And sincerely, I dont think our code has something Sony doesnt already know about. There are no exploit or whatsoever to be kept in secret, maybe just syscall number estimation, which is sincerely something very very simple and basic (I dont know if there are more advanced estimations).

And I dont think Sony can fight better CFW with this, because an eloader it's not a CFW. I just remind that we dont have kernel access whatsoever, so CFW are basically different as they patch kernel modules, something I cant do with user mode access only.

Please correct me if I made wrong assumptions.
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
willow :--)



Joined: 13 Jan 2007
Posts: 126

PostPosted: Fri Nov 13, 2009 12:08 pm    Post subject: Reply with quote

+1 for open source eLoader.

I'm not one of the "experienced developers" in terms of firmwares and code reverse, but I think sharing this eloader's source is a good idea.

As far as "fighting custom firmware" goes, I believe Sony already have more sources than they need. After all, they do have the source code for their firmware... so as you said, I think the pros outweight the cons.
_________________
Wagic. Play that card game against an AI on your PSP
Back to top
View user's profile Send private message
ab5000



Joined: 06 May 2008
Posts: 74

PostPosted: Fri Nov 13, 2009 11:31 pm    Post subject: Reply with quote

The eLoader isn't complex.
It just load the ELF in memory (along with all the sections), resolve imports and jump to start address of ELF.
The really PSP-dependent part is resolving the imports.
Resolving user-to-user imports is a bit complex but it isn't the really difficult part because we can do it from user mode with no problems.
The real problem is resolving user-to-kernel imports.
Syscall estimation allow us to resolve syscalls without having kernel mode (if we can go into kernel mode then we can simple query the syscall table).
In older FWs (like 2.00) syscalls were fixed, so you can just make a file with nid-syscall pairs and the work is done.
In newer FWs (from 2.50) syscalls are randomized.
They aren't REALLY randomized so we managed to estimate them (i can't say how we do it). Estimation isn't perfect but we have got a good grade of precision, and I got some ideas to optimize it.

The problem is: If we release syscall estimation code with the eLoader, Sony will probably find another method to randomize syscalls. And if this happens, the work we have done will be nearly useless.
I'm sure they aren't going to TOTALLY randomize syscalls (it's a BIG waste of memory), but a great part of the work should be remade from scratch.

So, I think we should release the source BUT keep the syscall estimation code closed.

P.S. If the source will be released, make LITTLE changes each time. Otherwise you will probably become crazy watching excpetions xD
_________________
Code:
%:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%>
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Sat Nov 14, 2009 12:00 am    Post subject: Reply with quote

You forgot that when working with PRXs you must also relocate all the stuff.

Do you really think Sony doesnt know how we could estimate syscalls? They know how they "randomize" them, so they surely know how we can estimate them, don't you think? Team Noobz already did it in their eloader.

And one of the primary reasons I want to release this open source is that other devs can contribute freely, but they cannot do that if we keep syscall closed, except providing syscall.c as a .o already compiled library, which in my opinion is as much as giving the source because it can be easily disassembled.
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Visigotico



Joined: 23 Apr 2008
Posts: 11

PostPosted: Sat Nov 14, 2009 1:01 am    Post subject: Reply with quote

whatever. Releasing or not the source, Sony is sure to
find another way to randomize the system calls, causing the eLoader to stop working.
Back to top
View user's profile Send private message
Davee



Joined: 22 Jun 2009
Posts: 59

PostPosted: Sat Nov 14, 2009 3:07 am    Post subject: Reply with quote

m0skit0 wrote:
5.55

Freeplay didn't contact me. I heard he just sought source from another eloader, that's all.

Anyway our eloader still needs a lot of optimizations, but at least we did it ourselves ;) And dude, you really learn a lot (and bang your head against a wall a lot xDDD)



Good job mate. I completely agree, you do learn a lot when you start making these things yourself :P
Back to top
View user's profile Send private message
PsPfReAK



Joined: 28 Mar 2009
Posts: 61

PostPosted: Sat Nov 14, 2009 3:28 am    Post subject: Reply with quote

What if you just send the source to developers rather then having it open to download?

thats seems more like an idea.
Back to top
View user's profile Send private message Visit poster's website
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Sat Nov 14, 2009 4:16 am    Post subject: Reply with quote

PsPfReAK wrote:
What if you just send the source to developers rather then having it open to download?

Giving the source to devs is the same to open the source. Who to trust? Would those devs who get it keep syscall estimation secret? I sincerely prefer open the source. And honeslty I don't want to keep track of people and judging who deserves the source and who not.

Development communities work way better with open source. You have a lot of examples in real world (Linux, Firefox...). Yes I know PSP cannot be compared with open standards but I think putting this elaoder open source would benefit the whole scene. New developers can find it very useful to know how execution and linking is done in PSP with a full C example. I would have been happy to have found an example such as this one. And even if Sony changes the syscall "randomization", the scene would find a way of reversing that, as it has already done with this supposed "randomization".

Visigotico wrote:
Releasing or not the source, Sony is sure to find another way to randomize the system calls, causing the eLoader to stop working.

They didnt do so with Noobz eloader. And I doubt they will with this prototype.

Davee wrote:
I completely agree, you do learn a lot when you start making these things yourself :P

Thanks Davee, but there's still a lot of work to be done to make this really functional.
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Lechter



Joined: 03 Nov 2009
Posts: 8

PostPosted: Sat Nov 14, 2009 6:06 am    Post subject: Reply with quote

+1 for open source eLoader.
Back to top
View user's profile Send private message
Draan



Joined: 17 Oct 2009
Posts: 55

PostPosted: Sat Nov 14, 2009 6:28 am    Post subject: Reply with quote

First Bubbletune + adding icons to XMB, now eLoader...it's going really hot there :)
Back to top
View user's profile Send private message
MaTiAz



Joined: 17 Nov 2006
Posts: 3

PostPosted: Sat Nov 14, 2009 7:14 am    Post subject: Reply with quote

You're missing a point here - telling SCE engineers to reverse something costs a lot of money. Money that they most likely will not spare.

By your logic, Sony could've started randomizing NIDs the moment stuff patching the kernel started appearing (ie. 1.50 times). Remember the wildc*rd source leak? That's when Sony started randomizing NIDs, when they got their hands on the -source-.

There's (usually) a reason why something stays closed-source. Be it financial or whatever, but often it's good.
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Sat Nov 14, 2009 7:42 am    Post subject: Reply with quote

Thanks for pointing that, MaTiAz.

Yeah, Sony should spend money to reverse scene stuff, which they'll unlikely do. But it should also spend more money to change the current syscall randomization. The point is they already know the scene can estimate the FW syscalls, and without doubt they also know where the flaw lies (or else their engineers are really stupid), but they haven't done a thing to prevent this from Noobz's eLoader times (2.7x iirc).

Will the source of an unfinished eloader for an already patched game exploit make them spend more money just to patch a flawed syscall randomization they're using for 4 FW major versions now?
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Sat Nov 14, 2009 9:21 pm    Post subject: Reply with quote

ab5000 wrote:
The problem is: If we release syscall estimation code with the eLoader, Sony will probably find another method to randomize syscalls. And if this happens, the work we have done will be nearly useless.
I'm sure they aren't going to TOTALLY randomize syscalls (it's a BIG waste of memory), but a great part of the work should be remade from scratch.

So, I think we should release the source BUT keep the syscall estimation code closed.

The very fact you are telling us the hint is enough to alert Sony and make their mind up to change the way to "randomize" their kernel NID again. So having the source or not doesn't change anything for Sony as changing them is safer than reading source or reverse-engineering it.
Back to top
View user's profile Send private message
willow :--)



Joined: 13 Jan 2007
Posts: 126

PostPosted: Sat Nov 14, 2009 9:32 pm    Post subject: Reply with quote

People should stop being paranoid. When Sony change their code, other vulnerabilities will be found. How fun would it be for hackers if the same vulnerability existed for years ?
_________________
Wagic. Play that card game against an AI on your PSP
Back to top
View user's profile Send private message
Visigotico



Joined: 23 Apr 2008
Posts: 11

PostPosted: Sun Nov 15, 2009 12:04 am    Post subject: Reply with quote

If Sony is interested in making the eLoader stops working, it will
do, regardless f the source code have been released or not.
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Sun Nov 29, 2009 12:04 pm    Post subject: Reply with quote

Sorry for reviving this again, but II finally decided to release it, but keep syscall estimation closed until I can discuss the matter personally with ab5000, as he coded that part, although I had the idea on how to estimate them.

I still think opening the source has more benefits than keeping it closed. Closeness only endangers the freedom of the scene by concentrating code towards one direction and enhances secrecy over cooperation. And I dont think that's good for any community, and definitely only benefits Sony, first advocate for secrecy.

Hope you understand my position
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
mohh eloader



Joined: 27 Nov 2009
Posts: 3
Location: lauisiana

PostPosted: Sat Dec 05, 2009 8:13 am    Post subject: Reply with quote

so m0skit0 not to bother u r any thing but tell me plz all u know we will b able to run like homebrew and maybe a hint on when u think it'll b released because thats the question all over the world right now ; )
email me: jafus_fleming @yahoo.com
Back to top
View user's profile Send private message MSN Messenger
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Sat Dec 05, 2009 10:16 am    Post subject: Reply with quote

It is already released, but dont put much hope on it. It's a premature alpha. And dude, dont post your email on forums :P
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
mohh eloader



Joined: 27 Nov 2009
Posts: 3
Location: lauisiana

PostPosted: Sun Dec 06, 2009 4:06 am    Post subject: Reply with quote

i only c the source...dude when will u have the actual eloader for normal users to run homebrew?
Back to top
View user's profile Send private message MSN Messenger
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Sun Dec 06, 2009 4:48 am    Post subject: Reply with quote

Nope. For devs only.
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
mohh eloader



Joined: 27 Nov 2009
Posts: 3
Location: lauisiana

PostPosted: Tue Dec 08, 2009 8:05 am    Post subject: Reply with quote

devs ONLY WHAT THA FUCK.....i guesse u arnt the answer to 5.5X ofw >.>
Back to top
View user's profile Send private message MSN Messenger
willow :--)



Joined: 13 Jan 2007
Posts: 126

PostPosted: Tue Dec 08, 2009 10:02 am    Post subject: Reply with quote

Do we ban people here? If so, I think we have a good candidate...
_________________
Wagic. Play that card game against an AI on your PSP
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Wed Dec 09, 2009 2:09 am    Post subject: Reply with quote

I'm the answer to nothing. I only do as I please. Don't like it? Make the eloader yourself, whining boy.
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Wed Dec 09, 2009 5:15 am    Post subject: Reply with quote

m0skit0 wrote:
I'm the answer to nothing. I only do as I please. Don't like it? Make the eloader yourself, whining boy.

I guess willow was more likely referring to "mohh eloader"... so no need to take it personal for you :)
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
Draan



Joined: 17 Oct 2009
Posts: 55

PostPosted: Wed Dec 09, 2009 6:06 am    Post subject: Reply with quote

mohh eloader wrote:
devs ONLY WHAT THA FUCK.....i guesse u arnt the answer to 5.5X ofw >.>

m0skit0 wrote:
I'm the answer to nothing. I only do as I please. Don't like it? Make the eloader yourself, whining boy.


See? :)

This wasn't reply to willow :D
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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