Post: How to get PSID/CID/SystemInfo with CCAPI.dll & PS3Lib
06-27-2014, 04:16 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
Credits:
BuC-SHoTz
Enstone
IMCSx


Attention!: You must login or register to view this content.
This has everything already done for you. Smile




HowTo: Paste this in a button and their you go. Smile
(assuming you know how to program software in .NET for PS3)

C# code:

    
[COLOR="#008000"]
//GET SYSINFOs
[/COLOR]

string GetattProc = PS3.CCAPI.GetAttachedProcess().ToString();
string FMWV = PS3.CCAPI.GetFirmwareVersion();
string CPU = PS3.CCAPI.GetTemperatureCELL();
string RSX = PS3.CCAPI.GetTemperatureRSX();


[COLOR="#008000"]//GET CID[/COLOR]

byte[] buffer = new byte[0x10];
PS3.CCAPI.GetLv2Memory(9223372036858981040L, buffer);
string str = BitConverter.ToString(buffer).Replace("-", " ");

[COLOR="#008000"]//GET PSID[/COLOR]

byte[] buffer2 = new byte[0x10];
PS3.CCAPI.GetLv2Memory(9223372036859580196L, buffer2);
string str2 = BitConverter.ToString(buffer2).Replace("-", " ");

[COLOR="#008000"]//Show Infos[/COLOR]

MessageBox.Show("Console IP: " + ipaddresstextbox.Text + Environment.NewLine + "ProcessISad Awesome " + GetattProc + Environment.NewLine + "ConsoleI//GET PSISad Awesome " + str + Environment.NewLine + "PSISad Awesome " + str2 + Environment.NewLine + "CPU TEMP: " + CPU + Environment.NewLine + "RSX TEMP: " + RSX + Environment.NewLine + "Firmware Version: " + FMWV);
[/COLOR]


PS3Lib 4.3 Doesn't have P-Invoking for Lvl1/Lvl2 memory!

So you need to put this somewhere in your library/program
    
[COLOR="#008000"]//GET LVL1 MEMORY[/COLOR]
[DllImport("CCAPI.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern int getLv1Memory(int connectionId, ulong offset, uint size, byte[] buffOut);
public int GetLv1Memory(uint offset, byte[] buffer)
{
return getLv1Memory(System.connectionID, (ulong)offset, (uint)buffer.Length, buffer);
}

public int GetLv1Memory(ulong offset, byte[] buffer)
{
return getLv1Memory(System.connectionID, offset, (uint)buffer.Length, buffer);
}

[COLOR="#008000"]//GET LVL2 MEMORY[/COLOR]
[DllImport("CCAPI.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern int getLv2Memory(int connectionId, ulong offset, uint size, byte[] buffOut);
public int GetLv2Memory(ulong offset, byte[] buffer)
{
return getLv2Memory(System.connectionID, offset, (uint)buffer.Length, buffer);
}

[COLOR="#008000"]//SET LVL1 MEMORY[/COLOR]
[DllImport("CCAPI.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern int setLv1Memory(int connectionId, ulong offset, uint size, byte[] buffIn);
public int SetLv1Memory(uint offset, byte[] buffer)
{
return setLv1Memory(System.connectionID, (ulong)offset, (uint)buffer.Length, buffer);
}

public int SetLv1Memory(ulong offset, byte[] buffer)
{
return setLv1Memory(System.connectionID, offset, (uint)buffer.Length, buffer);
}

[COLOR="#008000"]//SET LVL2 MEMORY[/COLOR]
[DllImport("CCAPI.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern int setLv2Memory(int connectionId, ulong offset, uint size, byte[] buffIn);
public int SetLv2Memory(ulong offset, byte[] buffer)
{
return setLv2Memory(System.connectionID, offset, (uint)buffer.Length, buffer);
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 14 users say thank you to BaSs_HaXoR for this useful post:

Eddie Mac, A Friend, Absolute Zero, ALI ALHILFI, Asian, Boliberrys, ImAzazel, KareraHekku, lmTumbler, RambosNGU, TreyBeModding-, x5150xiZombie, zKillShxt
06-27-2014, 09:34 AM #2
do i need to add a refrence for these? You must login or register to view this content.
06-27-2014, 10:50 AM #3
Originally posted by Lewis2244 View Post
do i need to add a refrence for these? You must login or register to view this content.

No. This was PS3Lib 4.2 CCAPI calls, not 4.3. Look for setlvl2memory somewhere in ps3lib 4.3, if it doesn't exists you could do it yourself manually making a new library, or just go back to PS3Lib 4.2.
06-27-2014, 12:17 PM #4
A Friend
League Champion
Originally posted by HaXoR View Post
No. This was PS3Lib 4.2 CCAPI calls, not 4.3. Look for setlvl2memory somewhere in ps3lib 4.3, if it doesn't exists you could do it yourself manually making a new library, or just go back to PS3Lib 4.2.

Can I set a new psid using console manager?
06-27-2014, 12:40 PM #5
Mango_Knife
In my man cave
Originally posted by HaXoR View Post
Credits:
BuC-SHoTz
Enstone
IMCSx



HowTo: Paste this in a button and their you go. Smile
(assuming you know how to program software in .NET for PS3)

C# code:

    
[COLOR="#008000"]
//GET SYSINFOs
[/COLOR]

string GetattProc = PS3.CCAPI.GetAttachedProcess().ToString();
string FMWV = PS3.CCAPI.GetFirmwareVersion();
string CPU = PS3.CCAPI.GetTemperatureCELL();
string RSX = PS3.CCAPI.GetTemperatureRSX();


[COLOR="#008000"]//GET CID[/COLOR]

byte[] buffer = new byte[0x10];
PS3.CCAPI.GetLv2Memory(9223372036858981040L, buffer);
string str = BitConverter.ToString(buffer).Replace("-", " ");

[COLOR="#008000"]//GET PSID[/COLOR]

byte[] buffer2 = new byte[0x10];
PS3.CCAPI.GetLv2Memory(9223372036859580196L, buffer2);
string str2 = BitConverter.ToString(buffer2).Replace("-", " ");

[COLOR="#008000"]//Show Infos[/COLOR]

MessageBox.Show("Console IP: " + ipaddresstextbox.Text + Environment.NewLine + "ProcessISad Awesome " + GetattProc + Environment.NewLine + "ConsoleI//GET PSISad Awesome " + str + Environment.NewLine + "PSISad Awesome " + str2 + Environment.NewLine + "CPU TEMP: " + CPU + Environment.NewLine + "RSX TEMP: " + RSX + Environment.NewLine + "Firmware Version: " + FMWV);
[/COLOR]


how can i set a new PSID?
06-27-2014, 02:21 PM #6
Originally posted by Knife View Post
how can i set a new PSID?


Originally posted by A
Can I set a new psid using console manager?


I dont believe you can :/
06-27-2014, 02:39 PM #7
Mango_Knife
In my man cave
Originally posted by YouViolateMe View Post
I dont believe you can :/


Ofcourse you can, its SDK Shit, we can do whatever we want, aslong we know how to do it.

The following user thanked Mango_Knife for this useful post:

Taylors Bish
06-27-2014, 05:12 PM #8
Originally posted by Knife View Post
Ofcourse you can, its SDK Shit, we can do whatever we want, aslong we know how to do it.


lol I probably read it wrong. I don't know what I'm thinking :p
06-27-2014, 10:25 PM #9
Originally posted by A
Can I set a new psid using console manager?

Yea you can, but the coding is going to be different. I messed a round with a little bit ago and almost got it, but when I set the PSID it would FREEZE my ps3.
06-27-2014, 10:42 PM #10
A Friend
League Champion
Originally posted by HaXoR View Post
Yea you can, but the coding is going to be different. I messed a round with a little bit ago and almost got it, but when I set the PSID it would FREEZE my ps3.

decompile PS3 Punch by BuC_Shotz, see how he did it and please convert it to 2.50

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo