public Extension(SelectAPI API) { CurrentAPI = API; if (API == SelectAPI.TargetManager) { if (Common.TmApi == null) { Common.TmApi = new TMAPI(); } } if (API == SelectAPI.ControlConsole) { if (Common.CcApi == null) { Common.CcApi = new CCAPI(); } } if (API == SelectAPI.SNMAPI) { if (Common.snmapi == null) { Common.snmapi = new SNMAPI(); } } }
public Extension(SelectAPI API) { CurrentAPI = API; if (API == SelectAPI.TargetManager) { if (Common.TmApi == null) { Common.TmApi = new TMAPI(); } } else if (API == SelectAPI.ControlConsole) { if (Common.CcApi == null) { Common.CcApi = new CCAPI(); } } else if (API == SelectAPI.PS3Manager) { if (Common.Ps3mApi == null) { Common.Ps3mApi = new PS3MAPI(); } } }
static PS3API ConnectAndAttach(SelectAPI api) { PS3API PS3 = new PS3API(api); try { if (!PS3.ConnectTarget()) { PrintWithColor("[ERROR] Could not connect and attach.", ConsoleColor.Red); return(null); } if (!PS3.AttachProcess()) { PrintWithColor("[ERROR] Could not attach to process.", ConsoleColor.Red); return(null); } string message = string.Format("[INFO] Connected and attached to {0}.", PS3.GetConsoleName()); PrintWithColor(message, ConsoleColor.Blue); return(PS3); } catch { PrintWithColor("[ERROR] Could not connect or attach. Check internet connection.", ConsoleColor.Red); return(null); } }
bool Connection(SelectAPI API) { PS3.ChangeAPI(API); bool state = PS3.ConnectTarget(); if (state) { ctext.Text = state ? "Connected" : "Not Connected"; ctext.ForeColor = state ? Color.Blue : Color.Red; state = PS3.AttachProcess(); if (state) { atext.Text = state ? "Attached" : "Not Attached"; atext.ForeColor = state ? Color.Blue : Color.Red; MLevel.Enabled = true; MMoney.Enabled = true; GOD.Enabled = true; speed.Enabled = true; weapons.Enabled = true; physics.Enabled = true; clip.Enabled = true; } } return(state); }
public Extension(SelectAPI API) { CurrentAPI = API; if (API == SelectAPI.PCAPI) { if (Common.PcAPI == null) { Common.PcAPI = new PCAPI(); } } if (API == SelectAPI.TargetManager) { if (Common.TmApi == null) { Common.TmApi = new TMAPI(); } } if (API == SelectAPI.ControlConsole) { if (Common.CcApi == null) { Common.CcApi = new CCAPI(); } } if (API == SelectAPI.XboxNeighborhood) { if (Common.XboxApi == null) { Common.XboxApi = new XboxAPI(); } } }
private void MakeInstanceAPI(SelectAPI API) { if (API == SelectAPI.TargetManager) { if (Common.TmApi == null) { Common.TmApi = new TMAPI(); } } if (API == SelectAPI.ControlConsole) { if (Common.CcApi == null) { Common.CcApi = new CCAPI(); } } if (API == SelectAPI.XboxNeighborhood) { if (Common.XboxApi == null) { Common.XboxApi = new XboxAPI(); } } if (API == SelectAPI.PCAPI) { if (Common.PcApi == null) { Common.PcApi = new PCAPI(); } } }
private void MakeInstanceAPI(SelectAPI API) { if (API == SelectAPI.TMAPI) { if (Common.TmApi == null) { Common.TmApi = new TMAPI(); } } if (API == SelectAPI.CCAPI) { if (Common.CcApi == null) { Common.CcApi = new CCAPI(); } } if (API == SelectAPI.PS3MAPI) { if (Common.PS3mApi == null) { Common.PS3mApi = new PS3MAPI(); } } if (API == SelectAPI.EasyTMAPI) { if (Common.eTmApi == null) { Common.eTmApi = new EasyTMAPI(); } } }
Boolean Connection(SelectAPI API = SelectAPI.TargetManager) { PS3.ChangeAPI(API); bool state = false; switch (API) { case SelectAPI.ControlConsole: state = PS3.ConnectTarget(); if (state) { PS3.CCAPI.GetProcessList(out PID); PS3.CCAPI.AttachProcess(PID[0]); state = PS3.ConnectionStatus(); } else { state = false; } break; case SelectAPI.TargetManager: state = PS3.ConnectTarget(); if (state) { state = PS3.AttachProcess(); } else { state = false; } break; case SelectAPI.XboxNeighborhood: state = PS3.ConnectTarget(); break; case SelectAPI.PCAPI: state = PS3.ConnectTarget(); break; default: PS3.ChangeAPI(SelectAPI.TargetManager); state = PS3.ConnectTarget(); if (state) { state = PS3.AttachProcess(); } else { state = false; } break; } IsConnected = state; return(state); }
public void ChangeToolAPI(SelectAPI newAPI) { if (newAPI == SelectAPI.PS3Lib) { CurrentAPI = SelectAPI.PS3Lib; } else { CurrentAPI = SelectAPI.RPCS3; } }
private static void GetMem(uint offset, byte[] buffer, SelectAPI API) { if (API == SelectAPI.ControlConsole) { PS3.GetMemoryR(offset, ref buffer); } else if (API == SelectAPI.TargetManager) { PS3.GetMemoryR(offset, ref buffer); } }
private void GetMem(uint offset, byte[] buffer, SelectAPI API) { if (API == SelectAPI.CCAPI) { Common.CcApi.GetProcMem(offset, buffer); } else if (API == SelectAPI.TMAPI) { Common.TmApi.GetProcMem(offset, buffer); } }
// Token: 0x06000CCD RID: 3277 RVA: 0x00040244 File Offset: 0x0003E444 private void MakeInstanceAPI(SelectAPI API) { if (API == SelectAPI.TargetManager && PS3API.Common.TmApi == null) { PS3API.Common.TmApi = new TMAPI(); } if (API == SelectAPI.ControlConsole && PS3API.Common.CcApi == null) { PS3API.Common.CcApi = new CCAPI(); } }
private void GetMem(uint offset, byte[] buffer, SelectAPI API) { if (API == SelectAPI.ControlConsole) { Common.CcApi.GetMemory(offset, buffer); } else if (API == SelectAPI.TargetManager) { Common.TmApi.GetMemory(offset, buffer); } }
private void SetMem(uint Address, byte[] buffer, SelectAPI API) { if (API == SelectAPI.CCAPI) { Common.CcApi.SetProcMem(Address, buffer); } else if (API == SelectAPI.TMAPI) { Common.TmApi.SetProcMem(Address, buffer); } }
private void SetMem(uint Address, byte[] buffer, SelectAPI API) { if (API == SelectAPI.ControlConsole) { Common.CcApi.SetMemory(Address, buffer); } else if (API == SelectAPI.TargetManager) { Common.TmApi.SetMemory(Address, buffer); } }
public Extension(SelectAPI API) { this.CurrentAPI = API; if (API == SelectAPI.TargetManager && Extension.Common.TmApi == null) { Extension.Common.TmApi = new TMAPI(); } if (API == SelectAPI.ControlConsole && Extension.Common.CcApi == null) { Extension.Common.CcApi = new CCAPI(); } }
// Token: 0x06000CC6 RID: 3270 RVA: 0x00040178 File Offset: 0x0003E378 private byte[] GetBytes(uint offset, uint length, SelectAPI API) { byte[] result = new byte[length]; if (API == SelectAPI.ControlConsole) { result = Extension.Common.CcApi.GetBytes(offset, length); } else if (API == SelectAPI.TargetManager) { result = Extension.Common.TmApi.GetBytes(offset, length); } return(result); }
private static void GetMem(uint offset, byte[] buffer, SelectAPI API) { switch (API) { case SelectAPI.ControlConsole: GetMemoryR(offset, ref buffer); break; case SelectAPI.TargetManager: GetMemoryR(offset, ref buffer); break; } }
private byte[] GetBytes(uint offset, uint length, SelectAPI API) { byte[] buffer = new byte[length]; if (API == SelectAPI.CCAPI) { buffer = Common.CcApi.GetBytes(offset, length); } else if (API == SelectAPI.TMAPI) { buffer = Common.TmApi.GetBytes(offset, length); } return(buffer); }
private byte[] GetBytes(uint offset, uint length, SelectAPI API) { byte[] buffer = new byte[length]; if (API == SelectAPI.ControlConsole) { buffer = Common.CcApi.GetBytes(offset, length); } else if (API == SelectAPI.TargetManager) { buffer = Common.TmApi.GetBytes(offset, length); } return(buffer); }
private static byte[] GetBytes(uint offset, int length, SelectAPI API) { byte[] bytes = new byte[length]; if (API == SelectAPI.ControlConsole) { CurrentAPI = PS3.GetCurrentAPI(); return(PS3.DEX.GetBytes(offset, length)); } if (API == SelectAPI.TargetManager) { CurrentAPI = PS3.GetCurrentAPI(); bytes = PS3.DEX.GetBytes(offset, length); } return(bytes); }
private static byte[] GetBytes(uint offset, int length, SelectAPI API) { byte[] result = new byte[length]; switch (API) { case SelectAPI.ControlConsole: CurrentAPI = GetCurrentAPI(); return(DEX.GetBytes(offset, length)); case SelectAPI.TargetManager: CurrentAPI = GetCurrentAPI(); result = DEX.GetBytes(offset, length); break; } return(result); }
public Extension(SelectAPI API) { CurrentAPI = API; if (API == SelectAPI.TMAPI) { if (Common.TmApi == null) { Common.TmApi = new TMAPI(); } } if (API == SelectAPI.CCAPI) { if (Common.CcApi == null) { Common.CcApi = new CCAPI(); } } }
/// <summary> /// Toggles our currently selected API. /// </summary> /// <param name="myAPI"></param> private void ToggleAPI(SelectAPI myAPI) { if (myAPI == SelectAPI.ControlConsole) { currentAPI = SelectAPI.ControlConsole; mainPS3.ChangeAPI(currentAPI); WpfAnimatedGif.ImageBehavior.SetAnimatedSource(ccapiTorch, new BitmapImage(new Uri(@"pack://*****:*****@"pack://application:,,,/Better_Craft;component/Images/redStoneTorchOff.png"))); } else { currentAPI = SelectAPI.TargetManager; mainPS3.ChangeAPI(currentAPI); WpfAnimatedGif.ImageBehavior.SetAnimatedSource(ccapiTorch, new BitmapImage(new Uri(@"pack://*****:*****@"pack://application:,,,/Better_Craft;component/Images/redstoneTorchOn.gif"))); } }
private void GetMem(uint offset, byte[] buffer, SelectAPI API) { if (API == SelectAPI.ControlConsole) { Common.CcApi.GetMemory(offset, buffer); } else if (API == SelectAPI.TargetManager) { Common.TmApi.GetMemory(offset, buffer); } else if (API == SelectAPI.XboxNeighborhood) { Common.XboxApi.MemFunc(offset, buffer); } else if (API == SelectAPI.PCAPI) { Common.PcAPI.GetMemory(offset, buffer); } }
private void SetMem(uint Address, byte[] buffer, SelectAPI API) { if (API == SelectAPI.ControlConsole) { Common.CcApi.SetMemory(Address, buffer); } else if (API == SelectAPI.TargetManager) { Common.TmApi.SetMemory(Address, buffer); } else if (API == SelectAPI.XboxNeighborhood) { Common.XboxApi.SetMemory(Address, buffer); } else if (API == SelectAPI.PCAPI) { Array.Reverse(buffer); Common.PcAPI.SetMemory(Address, buffer); } }
private void MakeInstanceAPI(SelectAPI API) { if (API == SelectAPI.TargetManager) { if (Common.TmApi == null) { Common.TmApi = new TMAPI(); } } else if (API == SelectAPI.ControlConsole) { if (Common.CcApi == null) { Common.CcApi = new CCAPI(); } } else if (API == SelectAPI.PS3Manager) { if (Common.Ps3mApi == null) { Common.Ps3mApi = new PS3MAPI(); } } }
private void MakeInstanceAPI(SelectAPI API) { if (API == SelectAPI.TargetManager) { if (Common.TmApi == null) { Common.TmApi = new TMAPI(); } } if (API == SelectAPI.ControlConsole) { if (Common.CcApi == null) { Common.CcApi = new CCAPI(); } } if (API == SelectAPI.SNMAPI) { if (Common.snmapi == null) { Common.snmapi = new SNMAPI(); } } }
private static void GetMem(uint offset, byte[] buffer, SelectAPI API) { if (API == SelectAPI.ControlConsole) { GetMemoryR(offset, ref buffer); } else if (API == SelectAPI.TargetManager) { GetMemoryR(offset, ref buffer); } }
public PS3API(SelectAPI API = SelectAPI.TMAPI) { SetAPI.API = API; MakeInstanceAPI(API); }
/// <summary>Change current API.</summary> public void ChangeAPI(SelectAPI API) { SetAPI.API = API; MakeInstanceAPI(GetCurrentAPI()); }