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, 11:56 PM #11
ImEraz_
Do a barrel roll!
Nice but dont work with ps3lib v4.3 :/
06-28-2014, 12:54 AM #12
lmTumbler
Do a barrel roll!
Good job. thank you bro

Problem :

You must login or register to view this content.

How to fix it :RTS: ?
06-28-2014, 01:08 AM #13
Sabotage
Gaming Squad
Originally posted by lmTumbler View Post
Good job. thank you bro

Problem :

You must login or register to view this content.

How to fix it :RTS: ?

Read the post, it says that you have to use Ps3Lib 4.2 not 4.3. Enstone took it out.

The following user thanked Sabotage for this useful post:

lmTumbler
06-28-2014, 01:38 AM #14
lmTumbler
Do a barrel roll!
thank you Sabotage for Reply to my problem is fixed Awesome face

You must login or register to view this content.
l]

The following user thanked lmTumbler for this useful post:

BaSs_HaXoR
06-28-2014, 02:10 PM #15
Originally posted by A
decompile PS3 Punch by BuC_Shotz, see how he did it and please convert it to 2.50


Updated* You can now do this on CCAPI Version 2.50, added P-Invoking calls.
06-28-2014, 02:25 PM #16
Chris
Former Staff
Nice tutorial BaSs, good to see people like you are still here helping the community. I'll talk to you on Skype sometime soon when I get back home. Smile
06-28-2014, 03:33 PM #17
PLEASE BUT HERER Source Code
06-28-2014, 03:41 PM #18
Turk_Warrior
League Champion
Great so people can steal my id..
06-28-2014, 04:10 PM #19
ImEraz_
Do a barrel roll!
Originally posted by HaXoR View Post
Updated* You can now do this on CCAPI Version 2.50, added P-Invoking calls.

Error on connectionID
You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo