random code recognition

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Locked
Snk
Posts: 3
Joined: Wed Aug 10, 2005 9:56 pm

random code recognition

Post by Snk »

Hi there,
I need help from some assembler guys. I just programmed intel and a little bit m68k so far, and I just need a few bytes...
Assume the following environment:
The psp executes a thread (unknown mode) and the instruction pointer runs straight into a memory region that I can feed (yes, exploit style).
Now what sort of code could I place there to see a reaction of the psp? Really just something to see that the pice of code was executed. Like a black spot, a reboot (not from crash) or an exit. I thought maybe calling sceKernelExitGame() should bring me back home, but I don't understand how the libraries are being called. You have the ID, and then?
Or even better, is there a predefined memory region for the graphic buffer (like the old intel days)? Also, where can I find a list of instructions + opcodes for the psp cpu?

Thanx alot!
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Re: random code recognition

Post by Arwin »

Snk wrote:Hi there,
I need help from some assembler guys. I just programmed intel and a little bit m68k so far, and I just need a few bytes...
Assume the following environment:
The psp executes a thread (unknown mode) and the instruction pointer runs straight into a memory region that I can feed (yes, exploit style).
Now what sort of code could I place there to see a reaction of the psp? Really just something to see that the pice of code was executed. Like a black spot, a reboot (not from crash) or an exit. I thought maybe calling sceKernelExitGame() should bring me back home, but I don't understand how the libraries are being called. You have the ID, and then?
Or even better, is there a predefined memory region for the graphic buffer (like the old intel days)? Also, where can I find a list of instructions + opcodes for the psp cpu?

Thanx alot!
I should think there's enough in svn.pspdev.org to get you started?
Snk
Posts: 3
Joined: Wed Aug 10, 2005 9:56 pm

Post by Snk »

not really, i'm looking for more basic stuff, not c source.
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

Snk wrote:not really, i'm looking for more basic stuff, not c source.
I thought there were bits of asm in there, and the linkdefs for the sce calls contain addresses, but maybe I'm wrong.
Snk
Posts: 3
Joined: Wed Aug 10, 2005 9:56 pm

Post by Snk »

You are right, its all in the SDK / toolchain as well, but I am not aware of the "dot" language of the GNU assembler, and I'm not reallly willing to learn that before I know if I was successful. I just need the asm code and its assembled hex version of a kernel call...
thanx
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

We don't "feed" exploits on these forums anymore. Sorry!
Locked