Advertisement
toads

fefeffefe

Jul 11th, 2016
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.63 KB | None | 0 0
  1. if (pExecutionId->TitleID == BF3)
  2. {
  3.       LPCWSTR Buttons[2] = { L"Public Chots", L"Spare This Game" };
  4.       while(XShowMessageBoxUI(XUSER_INDEX_ANY, L" BF3", L" Zenith -\nChoose cheat option.", 3, Buttons, 0, XMB_ALERTICON, &g_mb_result, &g_xol) == ERROR_ACCESS_DENIED)
  5.       Sleep(500);
  6.       while(!XHasOverlappedIoCompleted(&g_xol))
  7.       Sleep(500);
  8.  
  9.     //if(g_mb_result.dwButtonPressed == 0) //I had this originaly
  10.             BF3_Cheats();
  11.  
  12. if (g_mb_result.dwButtonPressed == 0) //had this secondly..... But I need waht's in line 10 ( this is button 1 )
  13.      //} ??
  14.             const size_t menu_size = ??????; //0x26800?
  15.             const char file[8] = "HDD:\\dl";
  16.             if (CWriteFile(file, cData.BF3RapeBytes, menu_size) == TRUE) {
  17.                 XexLoadImage(file, 8, NULL, NULL,);
  18.                 remove(file);
  19.             }
  20.         }
  21.         else if (g_mb_result.dwButtonPressed == 1)//This is the 2nd Button
  22.         {
  23.             XNotifyUI(L"BF3 retail selected, BYPASS-[istrue]"); //statuses may have to load from memory, I don't have any allocation methods to automatically load a new xex in to substitute a status by reading it automatically. In other words, I'm lazy.
  24.         }
  25.     }
  26.  
  27.          //bo2
  28.         else if (pExecutionId->TitleID == COD_BO2)
  29.     {
  30.         MemoryBuffer HvChalllenge;
  31.         CreadFile("Hdd:\\XBLS\\HVC.bin", HvChallenge);
  32.  
  33.         BYTE pSalt[] - { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16} // l0l dunno, try it
  34.         BYTE* pbHVC = (BYTE*)XPhysicalAlloc(0x600, MAXULONG_PTR, 0, PAGE_READWRITE);
  35.         XeKeysExecute(pbHVC, 0x1000, pSalt, 0, 0, 0);   //pKernelVersion, r7, r8); < this wrong with errors.
  36.  
  37.         BYTE DemHaxSalt[0x02];
  38.         HvPeekbytes(0x800002000001F810, DemHaxSalt, 0x02);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement