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-28-2014, 04:23 PM #20
Originally posted by ImEraz
Error on connectionID
You must login or register to view this content.

Oh, use my PS3lib4.3 for windows 8 app development then if you want. You can get it here: You must login or register to view this content.

Sidenote* You shouldn't have this problem, it should work... I don't understand why your getting this error.
In the PS3Lib 4.3 it declares:
    
private class System
{
"public static int connectionID = -1"
//more irrelevant code in here
}
06-28-2014, 04:24 PM #21
Originally posted by Warrior View Post
Great so people can steal my id..

This has been available dude. BuC-SHoTz had been done released this in his tool.
06-28-2014, 06:00 PM #22
please give me Example Source
08-18-2014, 08:03 AM #23
suspect0
Can’t trickshot me!
Originally posted by HaXoR View Post
Updated* You can now do this on CCAPI Version 2.50, added P-Invoking calls.

how to do it any TUT?

The following user thanked suspect0 for this useful post:

xelahot
09-07-2014, 06:23 PM #24
xelahot
Gym leader
Thanks for this nice thread :P

But Problem:
all the results are always 00000000000000000000000000000000
05-18-2015, 04:07 PM #25
Can u send me Source from CCAPI2?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo