-cr@cked by NN-
-
Автор темы
- #1
у меня есть код для chams,но он не работает
что делать?
import pymem
import pymem.process
i=0
m_iTeamNum = 0xF4
dwEntityList = 0x4D05B14
pm = pymem.Pymem("csgo.exe")
clRender=0x70
client = pymem.process.module_from_name(pm.process_handle, "client_panorama.dll")
# Chams
while True:
for i in range(1, 32):
entity = pm.read_int(client.lpBaseOfDll + dwEntityList + i * 0x10)
if entity:
entity_team_id = pm.read_int(entity + m_iTeamNum)
if entity_team_id == 2:
pm.write_int(entity + clRender * 0x0, 1)
pm.write_int(entity + clRender * 0XD2 + 0X31, 0)
pm.write_int(entity + clRender * 0x0, 0)
pm.write_int(entity + clRender * 0x38 + 0x24, 1)
pm.write_int(entity + clRender * 0x38 + 0x10, 1)
elif entity_team_id==3:
pm.write_int(entity + clRender * 0x0, 1)
pm.write_int(entity + clRender * 0XD2 + 0X31, 0)
pm.write_int(entity + clRender * 0x0, 0)
pm.write_int(entity + clRender * 0x38 + 0x24, 1)
pm.write_int(entity + clRender * 0x38 + 0x10, 1)
выводит ошибку:
Traceback (most recent call last):
File "C:\Users\sasas\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pymem\__init__.py", line 809, in write_int
pymem.memory.write_int(self.process_handle, address, value)
File "C:\Users\sasa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pymem\memory.py", line 758, in write_int
res = write_bytes(handle, address, value, length)
File "C:\Users\ss\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pymem\memory.py", line 588, in write_bytes
raise pymem.exception.WinAPIError(error_code)
pymem.exception.WinAPIError: Windows api error, error_code: 5
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/ssa/PycharmProjects/cheat'/cmas.py", line 22, in
pm.write_int(entity + clRender * 0x0, 1)
File "C:\Users\sasas\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pymem\__init__.py", line 811, in write_int
raise pymem.exception.MemoryWriteError(address, value, e.error_code)
pymem.exception.MemoryWriteError: Could not write memory at: 1783197296, length: 1 - GetLastError: 5
что делать?
import pymem
import pymem.process
i=0
m_iTeamNum = 0xF4
dwEntityList = 0x4D05B14
pm = pymem.Pymem("csgo.exe")
clRender=0x70
client = pymem.process.module_from_name(pm.process_handle, "client_panorama.dll")
# Chams
while True:
for i in range(1, 32):
entity = pm.read_int(client.lpBaseOfDll + dwEntityList + i * 0x10)
if entity:
entity_team_id = pm.read_int(entity + m_iTeamNum)
if entity_team_id == 2:
pm.write_int(entity + clRender * 0x0, 1)
pm.write_int(entity + clRender * 0XD2 + 0X31, 0)
pm.write_int(entity + clRender * 0x0, 0)
pm.write_int(entity + clRender * 0x38 + 0x24, 1)
pm.write_int(entity + clRender * 0x38 + 0x10, 1)
elif entity_team_id==3:
pm.write_int(entity + clRender * 0x0, 1)
pm.write_int(entity + clRender * 0XD2 + 0X31, 0)
pm.write_int(entity + clRender * 0x0, 0)
pm.write_int(entity + clRender * 0x38 + 0x24, 1)
pm.write_int(entity + clRender * 0x38 + 0x10, 1)
выводит ошибку:
Traceback (most recent call last):
File "C:\Users\sasas\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pymem\__init__.py", line 809, in write_int
pymem.memory.write_int(self.process_handle, address, value)
File "C:\Users\sasa\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pymem\memory.py", line 758, in write_int
res = write_bytes(handle, address, value, length)
File "C:\Users\ss\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pymem\memory.py", line 588, in write_bytes
raise pymem.exception.WinAPIError(error_code)
pymem.exception.WinAPIError: Windows api error, error_code: 5
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/ssa/PycharmProjects/cheat'/cmas.py", line 22, in
pm.write_int(entity + clRender * 0x0, 1)
File "C:\Users\sasas\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pymem\__init__.py", line 811, in write_int
raise pymem.exception.MemoryWriteError(address, value, e.error_code)
pymem.exception.MemoryWriteError: Could not write memory at: 1783197296, length: 1 - GetLastError: 5