from pymem import Pymem from re import search from pymem.process import module_from_name from pymem.exception import ProcessNotFound try: processName='csgo.exe' pm = Pymem(processName) client = module_from_name(pm.process_handle,'client.dll') clientLpBaseOfDll=client.lpBaseOfDll clientModule = pm.read_bytes(clientLpBaseOfDll, client.SizeOfImage) address = clientLpBaseOfDll + search(rb'\x83\xF8.\x8B\x45\x08\x0F', clientModule).start() + 2 pm.write_uchar(address, 2 if pm.read_uchar(address) == 1 else 1) pm.close_process() print("hack completed") except ProcessNotFound: print("error: couldn't find process",processName)
set_entity_value(mem, entity['addr'], 'y', player['y'] + 0x20) elif option == "4": entity_index = input("which entity (index)? ") if entity_index.isnumeric(): entity_index = int(entity_index) entity = next( (e for e in entities if e['index'] == entity_index), None) if entity is not None: set_entity_value(mem, entity['addr'], 'flags', entity['flags'] & 0x7fff) elif option == "5": no_water_mines_cheat = not no_water_mines_cheat elif option == "6": detail_inv_barriers = not detail_inv_barriers elif option == "7": invincible_transport = not invincible_transport elif option == "8": for i in range(512): mem.write_uchar(to_emu_ptr(revealed_map + i), 0xff) cheat_menu_open = False while True: if not paused: time.sleep(0.5) break else: time.sleep(0.5) process_keyboard()