Post: SPRX C++ Code/Help Thread
07-16-2014, 07:23 AM #1
Shark
Retired.
(adsbygoogle = window.adsbygoogle || []).push({}); Hey, since the method to make sprx's has been released I thought I would make this thread where everyone can post their codes (if they want) and request help (nothing to stupid please...), so ill start it off with a few codes


Write/Read Memory

    
Int32
*(int*)OffsetToWriteTo = IntergerToWrite;
int mem = *(int*)OffsetToRead;

Float
*(float*)OffsetToWriteTo = FloatToWrite;
float mem = *(int*)OffsetToRead;

there is many more of these just google it or look at xbox :p



Get ProcessID

    
#include <sys/syscall.h>

sys_pid_t sys_process_getpid(void)
{
system_call_0(1);
return_to_user_prog(sys_pid_t);
}



Sleep

    
#include <sys/sys_time.h>

void sleep(second_t time)
{
sys_timer_sleep(time);
}


Exit Thread

    
#include <sys/syscall.h>

int sys_ppu_thread_exit()
{
system_call_1(41, 0);
return_to_user_prog(int);
}



Create Thread

    
#include <sys/syscall.h>
#include <sys/ppu_thread.h>

sys_ppu_thread_t id;
sys_ppu_thread_t create_thread(void (*entry)(uint64_t), int priority, size_t stacksize, const char* threadname)
{
if(sys_ppu_thread_create(&id, entry, 0, priority , stacksize, 0, threadname) != CELL_OK)
{
console_write("Thread creation failed\n");
}
else
{
console_write("Thread created\n");
}
return id;
}



Console Write

    
#include <string.h>
#include <sys/syscall.h>
#include <stdarg.h>
#include <stddef.h>

int console_write(const char * s)
{
uint32_t len;
system_call_4(403, 0, (uint64_t) s, std::strlen(s), (uint64_t) &len);
return_to_user_prog(int);
}


(adsbygoogle = window.adsbygoogle || []).push({});

The following 22 users say thank you to Shark for this useful post:

aburezk, Bad Luck Brian, elgolumm, flynhigh09, hackeveryone, HRX3, ImAzazel, iMoDz-Baptiste, ImPiffHD, KareraHekku, KranK, LaRip8, MegaMister, John, NotALegitPlayer, OLDSCHOOLMODZHD, RambosNGU, RouletteBoi, ShutTheCrunchUp, th3_goodGuy, Turk_Warrior, Hash847
07-16-2014, 10:47 PM #11
tryme
Do a barrel roll!
stupid bs that it will brick ps3 if you make wrong calls. it will only blackscreen and mostly panic.
07-16-2014, 10:54 PM #12
Notorious
Caprisuns Is Back
Originally posted by tryme View Post
stupid bs that it will brick ps3 if you make wrong calls. it will only blackscreen and mostly panic.

Yeah I have got black screen's from it, and also if you brick your ps3 who cares. It's not fucking hard to fix the ps3 if you have a soldering iron and an e3 flasher.
07-16-2014, 11:16 PM #13
Originally posted by seb5594 View Post
If yes, then he wouldn't be able to try more now tears



Here's good site for all Syscalls if someone didn't knew it Smile

You must login or register to view this content.

I wouldnt mess arround with too many of them :p


I honestly wouldn't try anyone's modded files until it is verified. I suggest in order to release anything sprx related you should show a mod or admin the source code to make sure there is no malicious stuff. I'm telling you because you're someone high up there tears
07-16-2014, 11:37 PM #14
SC58
Former Staff
Originally posted by BlackPanther View Post
I honestly wouldn't try anyone's modded files until it is verified. I suggest in order to release anything sprx related you should show a mod or admin the source code to make sure there is no malicious stuff. I'm telling you because you're someone high up there tears


malicious lol only thing u could do is brick people console or steal info off the ps3 nothing else can be done with it really, but u could easly remove the check via ppc...


But lets not worry about that yet as only thing people would release to fck people stuff up is bricking console but find what ps3 function do with setting up a server and code to get/send to a server won't happen by anyone as that will take awhile and alot to do plus i don't see the point i been using a CID for close to a year now with Tustin and Choco using mad hax sooo do people still steal cid to this day if soo what a shame No


plus your morly going to crash game or mem or get rsod be4 u would "Really" brick ur console lol

when i first said it was possible i didn't mean it would happen that easy you will run into errors and fck ups before that :p
07-16-2014, 11:38 PM #15
Originally posted by SC58 View Post
malicious lol only thing u could do is brick people console or steal info off the ps3 nothing else can be done with it really, but u could easly remove the check via ppc...


But lets not worry about that yet as only thing people would release to fck people stuff up is bricking console but find what ps3 function do with setting up a server and code to get/send to a server won't happen by anyone as that will take awhile and alot to do plus i don't see the point i been using a CID for close to a year now with Tustin and Choco using mad hax sooo do people still steal cid to this day if soo what a shame No


plus your morly going to crash game or mem or get rsod be4 u would "Really" brick ur console lol

when i first said it was possible i didn't mean it would happen that easy you will run into errors and fck ups before that :p


Yeah true, but still. You can't trust everybody :p
07-16-2014, 11:39 PM #16
SC58
Former Staff
Originally posted by BlackPanther View Post
Yeah true, but still. You can't trust everybody :p


Yes i know who started the cid stealer Winky Winky

The following user thanked SC58 for this useful post:

07-16-2014, 11:47 PM #17
Originally posted by SC58 View Post
Yes i know who started the cid stealer Winky Winky


BLB ? right ?
07-16-2014, 11:56 PM #18
Originally posted by noirrok2 View Post
BLB ? right ?


It was choco...





:troll:



07-17-2014, 05:37 AM #19
Turk_Warrior
League Champion
i dont think you have to resolder your shit just have to Install FW Again

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo