ArrayBuilder build = new ArrayBuilder(0x50); // Create automatically an array with 80 bytes (0x50).
build.Write.SetInt32(0, 1337); // We write random things inside for exemple.
...
PS3.SetMemory(offset, build.ToArray()); // New feature who allow you to return the build as an array of bytes.
// Writes
PS3.Extensions.WriteDouble(offset, double);
PS3.Extensions.WriteFloats(offset, float[]);
// Read
double d = PS3.Extensions.ReadDouble(offset);
float[] fA = PS3.Extensions.ReadFloats(offset, length); // The second argument is the length of the array that we want get, exemple if we want the position XYZ of Call Of Duty we will put 3.
Imports PS3Lib
Public Class Form1
Dim PS3 As New CCAPI()
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim myip As String
myip = TextBox1.Text
PS3.ConnectTarget(myip)
If (PS3.SUCCESS(PS3.ConnectTarget(myip))) Then
MessageBox.Show("connected.")
Else
MessageBox.Show("Error.")
End If
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
PS3.AttachProcess()
If (PS3.SUCCESS(PS3.AttachProcess())) Then
MessageBox.Show("attached.")
Else
MessageBox.Show("Error.")
End If
End Sub
using PS3Lib;
[LEFT]// This will set by default the TMAPI
private PS3API PS3 = new PS3API();
// If you want set instantly the CCAPI so make this :
private PS3API PS3 = new PS3API(SelectAPI.ControlConsole);[/LEFT]
[LEFT]if(PS3.ConnectTarget())
{
//Connected, so we'll attach the process
if(PS3.AttachProcess())
{
// Attached !
}
else { // ERROR ATTACH }
}
else
{
// Connection error.
}[/LEFT]
[LEFT]PS3.ChangeAPI(SelectAPI.TargetManager); // Or SelectAPI.ControlConsole for CCAPI [/LEFT]
[LEFT]if(PS3.GetCurrentAPI() == SelectAPI.TargetManager)
{
// You use TMAPI.
}
else
{
// You use CCAPI.
}[/LEFT]
private CCAPI PS3 = new CCAPI();
[LEFT]// Connect
PS3.ConnectTarget("192.168.1.13"); // Here you need to put the PS3 IP
// Attach Default GAME process :
PS3.AttachProcess();
// You can also use the function SUCCESS for know if the function has been correctly executed so :
if(PS3.SUCCESS(PS3.AttachProcess())
{
// It's good !
}
else
{
// Not good..
}[/LEFT]
[LEFT]
/******** Attach the default Process GAME ********/
PS3.AttachProcess();
/******** Attach a process manually ********/
// Get all running processes
procs = new uint[64];
PS3.GetProcessList(out procs);
// Get a process name
string name = String.Empty;
PS3.GetProcessName(procs[0], ref name); // Return the name of the process 0.
// Attach your desired process
PS3.AttachProcess(procs[0]);
/******** Attach a basic process by enum ********/
// Attach directly a basic process : (Only if you don't want make codes)
PS3.ProcessAttach(CCAPI.ProcessType.VSH);[/LEFT]
[LEFT]// Set Memory
byte[] buffer = new byte[] { 0x10, 0x20, 0x30, 0x40};
PS3.SetMemory(0x10040000, buffer);
// Get Memory
byte[] buffer = new byte[4];
PS3.GetMemory(0x10040000, buffer);[/LEFT]
// Write an Integer with CCAPI easily :
PS3.Extensions.WriteInt32(0x10040000, 1337);
private TMAPI DEX = new TMAPI();
// Connect
if(DEX.ConnectTarget())
{
// OK, try to connect :
if(DEX.AttachProcess())
{
// Success
}
else
{
// Error attach
}
}
else
{
// Error connect
}
// Here I create an array, I write some values/types and I send the buffer into memory...
byte[] buffer = new byte[0x50];
ArrayBuilder Build = new ArrayBuilder(buffer);
Build.Write.SetBool(3, true);
Build.Write.SetFloat(4, 1000);
Build.Write.SetInt32(8, 1337);
Build.Write.SetString(20, "iMCSx ArrayBuilder !");
PS3.SetMemory(0x10060000, buffer);
MessageBox.Show("Done, try to read now !");
// Here I get the buffer from memory, and I read it.
byte[] buff = PS3.Extension.ReadBytes(0x10060000, 0x50);
ArrayBuilder Build = new ArrayBuilder(buff);
bool var1 = Build.Read.GetBool(3);
float var2 = Build.Read.GetFloat(4);
int var3 = Build.Read.GetInt32(;
string var4 = Build.Read.GetString(20);
MessageBox.Show("Result from the array sent to memory is :\n\nPosition 3 - Bool - " + var1.ToString() + "\n\nPosition 4 - Float - " + var2.ToString() + "\n\nPosition 8 - Int32 - " + var3.ToString() + "\n\nPosition 20 - String - " + var4);
Copyright © 2024, NextGenUpdate.
All Rights Reserved.