Advertisement
Guest User

Untitled

a guest
Aug 18th, 2016
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <conio.h>
  3. #include <string>
  4. #include <fstream>
  5. using namespace std;
  6.  
  7.  
  8.  
  9. void google();
  10. void ptc();
  11.  
  12. int main()
  13. {
  14.     string accountType;
  15.     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..!";
  16.     cout << "\n\nType your account type ptc/google  (JUST SMALL LETTERS!!!)\n-> ";
  17.     cin >> accountType;
  18.     if (accountType == "google")
  19.         google();
  20.     else if (accountType == "ptc")
  21.         ptc();
  22.     else
  23.         cout << "... really?.. restart application please! And write ptc or google !";
  24.     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..";
  25.     _getch();
  26. }
  27.  
  28. void ptc()
  29. {
  30.     string ptclogin;
  31.     string ptcpassword;
  32.     fstream ptc;
  33.     remove("auth.json");
  34.     ptc.open("auth.json", ios::out);
  35.     cout << "ptc.. yup? :)\n type your login please: ";
  36.     cin >> ptclogin;
  37.     cout << "\nOkay, nice! now type your password : ";
  38.     cin >> ptcpassword;
  39.     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}";
  40.     ptc.close();
  41. }
  42.  
  43. void google()
  44. {
  45.     string googlelogin;
  46.     string googlepassword;
  47.     fstream google;
  48.     remove("auth.json");
  49.     google.open("auth.json", ios::out);
  50.     cout << "\ngoogle.. yup? :)\ntype your login please: ";
  51.     cin >> googlelogin;
  52.     cout << "\nOkay, nice! now type your password : ";
  53.     cin >> googlepassword;
  54.     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}";
  55.     google.close();
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement