Testing KittyMemory sdk. Cat Cafe - Debug Menu and Free Purchases, functions by Katzi.

07/12/2019 - 09:04 am
#include "KittyMemory/writeData.hpp"
#include "KittyMemory/MemoryPatch.hpp"



#define MemP(address, patchCode, sizeI) \
MemoryPatch((uint64_t)KittyMemory::getAbsoluteAddress(NULL, address), (const void*)patchCode, (size_t)sizeI)

#define A64_VRET_TRUE "\x20\x00\x80\xd2\xc0\x03\x5f\xd6"
#define A64_RET_TRUE 0x200080D2C0035FD6


void *hackThread(void*){

   writeData64(0x1016699D4,A64_RET_TRUE);

   std::vector<MemoryPatch> devMenuPatch;

   devMenuPatch.push_back(MemP(0x101669994, A64_VRET_TRUE, sizeof(uint64_t)));
   devMenuPatch.push_back(MemP(0x1016699B4, A64_VRET_TRUE, sizeof(uint64_t)));

   for(size_t i=0; i<devMenuPatch.size(); ++i) {
     devMenuPatch[i].Modify();
   }
}

%ctor {
pthread_t kittyThread;
pthread_create(&kittyThread, NULL, hackThread,NULL);

}