int main(int argc, const char * argv[]) { int pid = get_process("csgo_osx"); printf("The pid is %i\n", pid); uint32_t * imgBase[2]; const char * a[2] = {"/client.dylib", "/engine.dylib"}; task_for_pid(current_task(), getpid(), ¤t); csgo = get_client_module_info(current_task(), current_task(), pid, imgBase, a, 2); task_for_pid(current_task(), getpid(), ¤t); clientBase = * imgBase; engineBase = * (imgBase + 1); // collect info int iTeamNum; uint32_t glowObjectLoopStartAddress; localbaseInformation(clientBase, &iTeamNum); glowInfo(clientBase, &glowObjectLoopStartAddress); printf("glow loop address is 0x%x", glowObjectLoopStartAddress); // Apply Glow while (1) { localbaseInformation(clientBase, &iTeamNum); readPlayerPointAndHealth(clientBase, glowObjectLoopStartAddress, iTeamNum); //break; usleep(20000); } return 0; }
// read icrossHairID readUint32Mam(csgo, current, localBase + 0xe4, i_teamNum); } int main(int argc, const char * argv[]) { dispatch_async(dispatch_get_global_queue(QOS_CLASS_BACKGROUND, 0), ^{ startListen(); }); int pid = get_process("csgo_osx"); printf("The pid is %i\n", pid); uint32_t * imgBase[2]; const char * a[2] = {"/client.dylib", "/engine.dylib"}; task_for_pid(current_task(), getpid(), ¤t); csgo = get_client_module_info(current_task(), current_task(), pid, imgBase, a, 2); if (csgo == -1) { printf("No root permission\nPlease run it with root\n"); exit(0); } task_for_pid(current_task(), getpid(), ¤t); clientBase = * imgBase; engineBase = * (imgBase + 1); // collect info int iTeamNum; uint32_t glowObjectLoopStartAddress; localbaseInformation(clientBase, &iTeamNum); glowInfo(clientBase, &glowObjectLoopStartAddress); printf("glow loop address is 0x%x", glowObjectLoopStartAddress); // Apply Glow