PS3API PS3 = new PS3API();
PS3.ChangeAPI(SelectAPI.ControlConsole);
PS3.CCAPI.ConnectTarget("anything here");
//or
PS3API PS3 = new PS3API();
PS3.ChangeAPI(SelectAPI.ControlConsole);
PS3.ConnectTarget();
//-----------------------------------------------//
How to use GetConsoleI
///////////////////////////////////////////////////
string CID = PS3.CCAPI.GetConsoleID();
MessageBox.Show(CID);
//-----------------------------------------------//
How to use GetPSI
///////////////////////////////////////////////////
string PSID = PS3.CCAPI.GetPSID();
MessageBox.Show(PSID);
//-----------------------------------------------//
How to use SetPSI
///////////////////////////////////////////////////
string PSID = PS3.CCAPI.SetPSID(yourTextBox.Text);
MessageBox.Show(PSID);
//////////////////////////
//Credits: BuC-SHoTz
public string GetConsoleID()
{
byte[] buffer = new byte[0x10];
GetLv2Memory(9223372036858981040L, buffer);
string str = BitConverter.ToString(buffer).Replace("-", " ");
return str;
}
//^Get ConsoleID
public string GetPSID()
{
byte[] buffer2 = new byte[0x10];
GetLv2Memory(9223372036859580196L, buffer2);
string str2 = BitConverter.ToString(buffer2).Replace("-", " ");
return str2;
}
//^Get PSID
//[PS3LIB 4.3 MODIFIED BY: BaSs_HaXoR]
//PS3LIB4.4 [UNOFFICIAL]
private bool IsValidHexString(IEnumerable<char> hexString)
{
return (
from currentCharacter in hexString
select (currentCharacter >= '0' && currentCharacter <= '9' || (currentCharacter >= 'a' && currentCharacter <= 'f' || (currentCharacter >= 'A' && currentCharacter <= 'F').All((bool isHexCharacter) => isHexCharacter);
}
private byte[] HexStringToByteArray(string hex)
{
return (
from x in Enumerable.Range(0, hex.Length)
where x % 2 == 0
select Convert.ToByte(hex.Substring(x, 2), 16)).ToArray<byte>();
}
private void SetPSID(string PSID)
{
if (IsValidHexString(PSID) && PSID.Length == 32)
{
byte[] array = this.HexStringToByteArray(PSID);
SetLv2Memory(9223372036859580196uL, array);
}
else
{
MessageBox.Show("Check Your PSID. Wrong Length or Hex Chars.");
}
}
CCAPI PS3 = new CCAPI();
PS3.QuickConnect(); //= Find first PS3 on network and connect to it.
PS3.Consoles(); //= Opens up ConnectConsole window and allows you to select your CONSOLE (IP - MAC) (combobox)
PS3API PS3 = new PS3API(SelectAPI.ControlConsole);
PS3.CCAPI.CCAPIConnect();
string consoles = string.Join(", ", PS3.CCAPI.searchNetwork());
#) Fixed MSIL CPU misconfiguration. Works on both (x86) & (x64) CPU platforms now.
#) Removed minor code from TMAPI.
(v4.4.2)
[code]
#) SetPSID
#) GetConsoleID *FIXED
#) GetLvl1Memory
#) GetLvl2Memory
#) SetLvl1Memory
#) SetLvl2Memory
#) GetConsoleID
#) GetPSID
#) Secret 1337 function ;p (Hint, PS3.CCAPI.BaSs) xD
//-----------------------------------------------//
How to use GetConsoleI
///////////////////////////////////////////////////
string CID = PS3.CCAPI.GetConsoleID();
MessageBox.Show(CID);
//-----------------------------------------------//
How to use GetPSI
///////////////////////////////////////////////////
string PSID = PS3.CCAPI.GetPSID();
MessageBox.Show(PSID);
//////////////////////////
public string GetConsoleID()
{
byte[] buffer = new byte[0x10];
GetLv2Memory(9223372036858981040L, buffer);
string str = BitConverter.ToString(buffer).Replace("-", " ");
return str;
}
//^Get ConsoleID
public string GetPSID()
{
byte[] buffer2 = new byte[0x10];
GetLv2Memory(9223372036859580196L, buffer2);
string str2 = BitConverter.ToString(buffer2).Replace("-", " ");
return str2;
}
//^Get PSID
//[PS3LIB 4.3 MODIFIED BY: BaSs_HaXoR]
//PS3LIB4.4 [UNOFFICIAL]
//-----------------------------------------------//
How to use GetConsoleI
///////////////////////////////////////////////////
string CID = PS3.CCAPI.GetConsoleID();
MessageBox.Show(CID);
//-----------------------------------------------//
How to use GetPSI
///////////////////////////////////////////////////
string PSID = PS3.CCAPI.GetPSID();
MessageBox.Show(PSID);
//////////////////////////
public string GetConsoleID()
{
byte[] buffer = new byte[0x10];
GetLv2Memory(9223372036858981040L, buffer);
string str = BitConverter.ToString(buffer).Replace("-", " ");
return str;
}
//^Get ConsoleID
public string GetPSID()
{
byte[] buffer2 = new byte[0x10];
GetLv2Memory(9223372036859580196L, buffer2);
string str2 = BitConverter.ToString(buffer2).Replace("-", " ");
return str2;
}
//^Get PSID
//[PS3LIB 4.3 MODIFIED BY: BaSs_HaXoR]
//PS3LIB4.4 [UNOFFICIAL]
Copyright © 2024, NextGenUpdate.
All Rights Reserved.