Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <string>
- #include <fstream>
- using namespace std;
- void google();
- void ptc();
- int main()
- {
- string accountType;
- cout << "Auth.json created by CapthaPL\n\nIf in your .exe directory is other Auth.json, copy it! cuz it will be removed and make sure is not opened by other apps like notepad etc..!";
- cout << "\n\nType your account type ptc/google (JUST SMALL LETTERS!!!)\n-> ";
- cin >> accountType;
- if (accountType == "google")
- google();
- else if (accountType == "ptc")
- ptc();
- else
- cout << "... really?.. restart application please! And write ptc or google !";
- cout << "\nYour json file should be in your .exe folder :)\nif not - make sure u run this app with admin privileges or json file isnt used in other app\nPress any key to close app..";
- _getch();
- }
- void ptc()
- {
- string ptclogin;
- string ptcpassword;
- fstream ptc;
- remove("auth.json");
- ptc.open("auth.json", ios::out);
- cout << "ptc.. yup? :)\n type your login please: ";
- cin >> ptclogin;
- cout << "\nOkay, nice! now type your password : ";
- cin >> ptcpassword;
- ptc << "{\n \"AuthType\": \"ptc\",\n \"GoogleUsername\": null,\n \"GooglePassword\": null,\n \"PtcUsername\": \""<<ptclogin<<"\",\n \"PtcPassword\": \""<<ptcpassword<<"\",\n \"UseProxy\": false,\n \"UseProxyHost\": null,\n \"UseProxyPort\": null,\n \"UseProxyAuthentication\": false,\n \"UseProxyUsername\": null,\n \"UseProxyPassword\": null,\n \"DevicePackageName\": \"asus-zenfone2\",\n \"DeviceId\": \"78bc853e2beb0580\",\n \"AndroidBoardName\": \"moorefield\",\n \"AndroidBootloader\": \"\",\n \"DeviceBrand\": \"asus\",\n \"DeviceModel\": \"ASUS_Z00AD\",\n \"DeviceModelIdentifier\": \"WW_Z00A\",\n \"DeviceModelBoot\": \"qcom\",\n \"HardwareManufacturer\": \"asus\",\n \"HardwareModel\": \"ASUS_Z00AD\",\n \"FirmwareBrand\": \"WW_Z00A\",\n \"FirmwareTags\": \"release-keys\",\n \"FirmwareType\": \"user\",\n \"FirmwareFingerprint\": \"asus/WW_Z00A/Z00A_1:5.0/LRX21V/2.20.40.194_20160713_6971_user:user/release-keys\"\n}";
- ptc.close();
- }
- void google()
- {
- string googlelogin;
- string googlepassword;
- fstream google;
- remove("auth.json");
- google.open("auth.json", ios::out);
- cout << "\ngoogle.. yup? :)\ntype your login please: ";
- cin >> googlelogin;
- cout << "\nOkay, nice! now type your password : ";
- cin >> googlepassword;
- google << "{\n \"AuthType\": \"google\",\n \"GoogleUsername\": \"" << googlelogin << "\",\n \"GooglePassword\": \"" << googlepassword << "\",\n \"PtcUsername\": null,\n \"PtcPassword\": null,\n \"UseProxy\": false,\n \"UseProxyHost\": null,\n \"UseProxyPort\": null,\n \"UseProxyAuthentication\": false,\n \"UseProxyUsername\": null,\n \"UseProxyPassword\": null,\n \"DevicePackageName\": \"asus-zenfone2\",\n \"DeviceId\": \"78bc853e2beb0580\",\n \"AndroidBoardName\": \"moorefield\",\n \"AndroidBootloader\": \"\",\n \"DeviceBrand\": \"asus\",\n \"DeviceModel\": \"ASUS_Z00AD\",\n \"DeviceModelIdentifier\": \"WW_Z00A\",\n \"DeviceModelBoot\": \"qcom\",\n \"HardwareManufacturer\": \"asus\",\n \"HardwareModel\": \"ASUS_Z00AD\",\n \"FirmwareBrand\": \"WW_Z00A\",\n \"FirmwareTags\": \"release-keys\",\n \"FirmwareType\": \"user\",\n \"FirmwareFingerprint\": \"asus/WW_Z00A/Z00A_1:5.0/LRX21V/2.20.40.194_20160713_6971_user:user/release-keys\"\n}";
- google.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement