import tkinter
import pymem
import re

window = tkinter.Tk()


def Wallhack():
    pm = pymem.Pymem('csgo.exe')
    client = pymem.process.module_from_name(pm.process_handle, 'client.dll')
    clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage)
    address = client.lpBaseOfDll + \
        re.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()


def Radar():
    pm = pymem.Pymem('csgo.exe')
    client = pymem.process.module_from_name(pm.process_handle, 'client.dll')
    clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage)
    address = client.lpBaseOfDll + \
        re.search(rb'\x83\xE0\x0F\x80\xBF', clientModule).start() + 9
    pm.write_uchar(address, 0 if pm.read_uchar(address) != 0 else 2)
    pm.close_process()


def Money():
    pm = pymem.Pymem('csgo.exe')
    client = pymem.process.module_from_name(pm.process_handle, 'client.dll')
    clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage)
    address = client.lpBaseOfDll + \
        re.search(rb'.\x0C\x5B\x5F\xB8\xFB\xFF\xFF\xFF', clientModule).start()
    pm.write_uchar(address, 0xEB if pm.read_uchar(address) == 0x75 else 0x75)
    pm.close_process()


def QuickDuck():
    pm = pymem.Pymem('csgo.exe')
    client = pymem.process.module_from_name(pm.process_handle, 'client.dll')
    clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage)
    address = client.lpBaseOfDll + \
        re.search(rb'\x81\xE2.{4}\x84\xDB', clientModule).start() + 4
    pm.write_uchar(address, 0x42 if pm.read_uchar(address) == 0x2 else 0x2)
    pm.close_process()


A = tkinter.Button(window, text="模型透视", command=Wallhack)
B = tkinter.Button(window, text="雷达透视", command=Radar)
C = tkinter.Button(window, text="金钱显示", command=Money)
D = tkinter.Button(window, text="快速下蹲", command=QuickDuck)

A.pack()
B.pack()
C.pack()
D.pack()
window.mainloop()

import tkinter
import pymem
import re

window = tkinter.Tk()


def Wallhack():
    pm = pymem.Pymem('csgo.exe')
    client = pymem.process.module_from_name(pm.process_handle, 'client.dll')
    clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage)
    address = client.lpBaseOfDll + \
        re.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()


def Radar():
    pm = pymem.Pymem('csgo.exe')
    client = pymem.process.module_from_name(pm.process_handle, 'client.dll')
    clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage)
    address = client.lpBaseOfDll + \
        re.search(rb'\x83\xE0\x0F\x80\xBF', clientModule).start() + 9
    pm.write_uchar(address, 0 if pm.read_uchar(address) != 0 else 2)
    pm.close_process()


def Money():
    pm = pymem.Pymem('csgo.exe')
    client = pymem.process.module_from_name(pm.process_handle, 'client.dll')
    clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage)
    address = client.lpBaseOfDll + \
        re.search(rb'.\x0C\x5B\x5F\xB8\xFB\xFF\xFF\xFF', clientModule).start()
    pm.write_uchar(address, 0xEB if pm.read_uchar(address) == 0x75 else 0x75)
    pm.close_process()


def QuickDuck():
    pm = pymem.Pymem('csgo.exe')
    client = pymem.process.module_from_name(pm.process_handle, 'client.dll')
    clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage)
    address = client.lpBaseOfDll + \
        re.search(rb'\x81\xE2.{4}\x84\xDB', clientModule).start() + 4
    pm.write_uchar(address, 0x42 if pm.read_uchar(address) == 0x2 else 0x2)
    pm.close_process()


A = tkinter.Button(window, text="模型透视", command=Wallhack)
B = tkinter.Button(window, text="雷达透视", command=Radar)
C = tkinter.Button(window, text="金钱显示", command=Money)
D = tkinter.Button(window, text="快速下蹲", command=QuickDuck)

A.pack()
B.pack()
C.pack()
D.pack()
window.mainloop()
