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 

Spoofing module version

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



Joined: 27 Nov 2008
Posts: 108

PostPosted: Sat Feb 13, 2010 6:59 am    Post subject: Spoofing module version Reply with quote

This would normally be a fairly easy thing to do (I already did it), however, I know vshbridge has its own loadmodule, and I'm presuming its own querymoduleinfo.

Does anyone have any information about those vshbridge functions?

If not, does anyone know how I can edit an already-loaded modules version? I know psplink loads up a list of modules (And I think their versions), and since those hardcoded versions are well, hardcoded, how would I go about editing it? I think it's exported, I just don't know how to look up variable exports, as opposed to function exports, if there's any difference (I couldn't look up either in syslib for the sceVshNpSignin_Module)
_________________
Programming with:
Geany + Latest PSPSDK from svn
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Wed Feb 17, 2010 7:35 am    Post subject: Reply with quote

There you go. Have fun.

Code:
//change module version
unsigned int alterModuleVersion(const char * name, unsigned char major, unsigned char minor)
{
  //result
  unsigned int result = 0;

  //find module
  SceModule * mod = sceKernelFindModuleByName(name);
 
  //tada - it's loaded
  if(mod)
  {
    //change module version
    mod->version[1] = major;
    mod->version[0] = minor;
   
    //we are done
    result = 1;
  }

  //return result
  return result;
}


Requires you to have loaded the module already, so it gets linked into the module list.

If it ain't loaded, this function will do nothing and return zero, if it is loaded it will change the displayed version of the module in the module list.

I don't know whether this is what you wanted, if not feel free to ask for more help and I shall provide.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
NoEffex



Joined: 27 Nov 2008
Posts: 108

PostPosted: Wed Feb 17, 2010 3:59 pm    Post subject: Reply with quote

I think that's what I needed.

I thought it was readonly so to speak (Copy the structure over), and it couldn't be edited that way. I think I was wrong.
_________________
Programming with:
Geany + Latest PSPSDK from svn
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Thu Feb 18, 2010 6:56 am    Post subject: Reply with quote

Not trying to be nosy but... for what do you need that?

Did you discover some check that requires a specific module version or something of the sort?
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
NoEffex



Joined: 27 Nov 2008
Posts: 108

PostPosted: Sat Feb 20, 2010 7:20 am    Post subject: Reply with quote

Coldbird wrote:
Not trying to be nosy but... for what do you need that?

Did you discover some check that requires a specific module version or something of the sort?


No, I thought it did for a while, but then it became curiousity.

It noticed an 0x05000010 on 5.00 M33-6 and 0x05050010 on 5.50 GEN on npsignin_plugin.prx (I had dumped it and such before it was decrypted). I thought it was kinda odd. Also, it's exported.
_________________
Programming with:
Geany + Latest PSPSDK from svn
Back to top
View user's profile Send private message
Coldbird



Joined: 08 Feb 2007
Posts: 155

PostPosted: Sat Feb 20, 2010 11:00 am    Post subject: Reply with quote

Well I noticed that the Adhoc Library (Net Libraries in general...) have been changed on the jump from 5.00 to 5.50...

They remained the same from 5.50 till 6.20 though... ;)

Version 1.3 is on use on 5.00 while Version 1.4 is the latest one at the time of writing this article and is used up to 6.20...

I'm still trying to figure out some of the changes myself... as I'm really interested in the networking aspect of PSP.
_________________
Been gone for some time. Now I'm back. Someone mind getting me up-2-date?
Back to top
View user's profile Send private message MSN Messenger
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