Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //LINK TO THREAD: http://www.ps3hax.net/showthread.php?t=73600&page=3
- #include "stdafx.h"
- #include "C:\Users\BaSs_HaXoR\Desktop\CCCheat-1.0\CCCheat-master\CCAPI\CCAPI\CCAPI.h"
- #include <stdio.h>
- #include <iostream>
- #include <string>
- //#define CCAPI_PORT_25 1978; //2.50 CCAPI
- //#define CCAPI_PORT_20 1977 //2.00 CCAPI
- int _tmain(int argc, _TCHAR* argv[])
- {
- string consoleip = "192.168.137.17";
- string textout = "";
- CCAPI *ccapi = new CCAPI(consoleip);
- ccapi->setHostVersion(CCAPI_PORT_25);
- cout<<"Please input your PS3 ipaddress: ";
- getline(cin, consoleip);
- if(consoleip == "")
- {
- consoleip = "192.168.137.17";
- }
- while(true)
- {
- getline(cin, textout);
- if(textout == "")
- {
- ccapi->startup();
- cout<<"IP: "<<consoleip<<" PORT: "<<ccapi->hostVersion<<"\n";
- cout<<"PID: "<<ccapi->attach()<<"\n";
- if(ccapi->connect() !=-1)
- {
- cout<<"Connected!\n";
- if(ccapi->attach() != -1)
- {
- cout<<"Attached!\n";
- }
- if(ccapi->writeMemory(0x1BBBC2C, 6, "^2Test"))
- {
- cout<<"Wrote To Memory!\n";
- cout<<ccapi->requestReadMemory(ccapi->attachedPID, 0x1BBBC2C, 10);
- }
- else
- {
- cout<<"Failed Attaching!";
- }
- }
- else
- {
- cout<<"Failed Connecting!";
- }
- }
- }
- return 0;
- }
- //ISSUE!: It returns this:
- //[IMG]http://i.imgur.com/Dt69wf3.png[/IMG]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement