|
|

5精币
求大哥们帮我转下代码 python转成易语言的 我有点迷惑 这个代码 跟易语言哪里不同 还是我自己写的有问题 不是一个线程创建吗 想学习学习
def runThread(cla):
print(cla)
process_handle = pymem.process.open(PVZ_data.PVZ_pid)
startAddress = pymem.memory.allocate_memory(process_handle, 65536)
print(hex(startAddress))
asm =cla.creat_asm(startAddress + 1)
shellcode = b"\x60" + bytes(asm.code[: asm.index]) + b"\x61\xc3"
PVZ_data.PVZ_memory.write_bytes(startAddress, shellcode, asm.index + 3)
PVZ_data.PVZ_memory.write_bytes(0x00552014, b"\xfe", 1)
thread_h = pymem.ressources.kernel32.CreateRemoteThread(
process_handle,
ctypes.cast(0, pymem.ressources.structure.LPSECURITY_ATTRIBUTES),
0,
startAddress,
0,
0,
ctypes.byref(ctypes.c_ulong(0)),
)
exit_code = ctypes.c_ulong()
while 1:
pymem.ressources.kernel32.GetExitCodeThread(thread_h, ctypes.byref(exit_code))
if exit_code.value == 259:
pass
else:
PVZ_data.PVZ_memory.write_bytes(0x00552014, b"\xdb", 1)
break
time.sleep(0.001)
pymem.memory.free_memory(process_handle, startAddress)
|
回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。 友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。 快捷通道:申请荣誉值 →
|