Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <pspkernel.h>
- #include <systemctrl.h>
- PSP_MODULE_INFO("MacSpoof",0x1007,2,0);
- STMOD_HANDLER previous = NULL;
- wchar_t mac[] = L"PATCHED";
- void SysconfPatch(u32 text_addr)
- {
- memcpy((void *)(text_addr+0x272FC),mac,strlen(mac));
- }
- int OnModuleStart(SceModule2 *mod)
- {
- if(strcmp(mod->modname,"sysconf_plugin_module") == 0)
- {
- SysconfPatch(mod->text_addr);
- }
- if(!previous)
- return 0;
- return previous(mod);
- }
- int module_start(SceSize args,void *argp)
- {
- previous = sctrlHENSetStartModuleHandler(OnModuleStart);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement