Advertisement
BaSs_HaXoR

CCAPI C++ issue (12-10-14)

Dec 10th, 2014
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.33 KB | None | 0 0
  1. //LINK TO THREAD: http://www.ps3hax.net/showthread.php?t=73600&page=3
  2. #include "stdafx.h"
  3. #include "C:\Users\BaSs_HaXoR\Desktop\CCCheat-1.0\CCCheat-master\CCAPI\CCAPI\CCAPI.h"
  4. #include <stdio.h>
  5. #include <iostream>
  6. #include <string>
  7. //#define CCAPI_PORT_25 1978; //2.50 CCAPI
  8. //#define CCAPI_PORT_20 1977 //2.00 CCAPI
  9. int _tmain(int argc, _TCHAR* argv[])
  10. {
  11.     string consoleip = "192.168.137.17";
  12.     string textout = "";
  13.     CCAPI  *ccapi = new CCAPI(consoleip);
  14.     ccapi->setHostVersion(CCAPI_PORT_25);
  15.     cout<<"Please input your PS3 ipaddress: ";
  16.     getline(cin, consoleip);
  17.     if(consoleip == "")
  18.     {
  19.         consoleip = "192.168.137.17";
  20.     }
  21.     while(true)
  22.     {
  23.         getline(cin, textout);
  24.         if(textout == "")
  25.         {
  26.             ccapi->startup();
  27.             cout<<"IP: "<<consoleip<<" PORT: "<<ccapi->hostVersion<<"\n";
  28.             cout<<"PID: "<<ccapi->attach()<<"\n";
  29.             if(ccapi->connect() !=-1)
  30.             {
  31.                 cout<<"Connected!\n";
  32.                 if(ccapi->attach() != -1)
  33.                 {
  34.                     cout<<"Attached!\n";
  35.                 }
  36.    
  37.                 if(ccapi->writeMemory(0x1BBBC2C, 6, "^2Test"))
  38.                 {
  39.                     cout<<"Wrote To Memory!\n";
  40.                     cout<<ccapi->requestReadMemory(ccapi->attachedPID, 0x1BBBC2C, 10);
  41.                 }
  42.                 else
  43.                 {
  44.                     cout<<"Failed Attaching!";
  45.                 }
  46.             }
  47.             else
  48.             {
  49.                 cout<<"Failed Connecting!";
  50.             }
  51.         }
  52.     }
  53.     return 0;
  54. }
  55. //ISSUE!: It returns this:
  56. //[IMG]http://i.imgur.com/Dt69wf3.png[/IMG]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement