from tkinter import *
import pymem
import re
import os
import webbrowser

#Banner
print("""
                 _       _          
                | |     | |         
 _ __ ___   ___ | |_ ___| |__ __  __
| '__/ _ \ / _ \| __/ __| '_  \\ \/ /
| | | (_) | (_) | |_\__ \ | | |>  < 
|_|  \___/ \___/ \__|___/_| |_/_/\_\  (CSGO WALLHACK v1.0)
""")

# defs
def callback(url):
    webbrowser.open_new(url)

def button_action():
    if(change_button["text"]=="Start"):
        change_button.configure(text="Stop")
        print("\n")
        print("SCRIPT IS RUNNING")
        print("\n")
    else:
        change_button.configure(text="Start")
        print("\n")
        print("SCRIPT IS STOPPED")
        print("\n")
    try:
        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()
    except:
        change_button.configure(text="Start")
        print("error: please read the README file")
        print("\n")

# GUI
gui = Tk()
gui.title("GUI")
gui.geometry("500x300")

# Button
change_button = Button(gui, text="Start", command=button_action)
change_button.place(x = 100, y = 50, width=300, height=100)

# Hyperlink
link = Label(gui, text="github.com/rootshx", fg="blue", cursor="hand2")
link.place(x = 100, y = 175, width=300, height=100)
link.bind("<Button-1>", lambda e: callback("https://github.com/rootshx/CSGO-WallhackGUI"))

mainloop()

from tkinter import *
import pymem
import re
import os
import webbrowser

#Banner
print("""
                 _       _          
                | |     | |         
 _ __ ___   ___ | |_ ___| |__ __  __
| '__/ _ \ / _ \| __/ __| '_  \\ \/ /
| | | (_) | (_) | |_\__ \ | | |>  < 
|_|  \___/ \___/ \__|___/_| |_/_/\_\  (CSGO WALLHACK v1.0)
""")

# defs
def callback(url):
    webbrowser.open_new(url)

def button_action():
    if(change_button["text"]=="Start"):
        change_button.configure(text="Stop")
        print("\n")
        print("SCRIPT IS RUNNING")
        print("\n")
    else:
        change_button.configure(text="Start")
        print("\n")
        print("SCRIPT IS STOPPED")
        print("\n")
    try:
        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()
    except:
        change_button.configure(text="Start")
        print("error: please read the README file")
        print("\n")

# GUI
gui = Tk()
gui.title("GUI")
gui.geometry("500x300")

# Button
change_button = Button(gui, text="Start", command=button_action)
change_button.place(x = 100, y = 50, width=300, height=100)

# Hyperlink
link = Label(gui, text="github.com/rootshx", fg="blue", cursor="hand2")
link.place(x = 100, y = 175, width=300, height=100)
link.bind("<Button-1>", lambda e: callback("https://github.com/rootshx/CSGO-WallhackGUI"))

mainloop()

#Banner _       _          
                 | |     | |         
  _ __ ___   ___ | |_ ___| |__ __  __
 | '__/ _ \ / _ \| __/ __| '_  \\ \/ /
 | | | (_) | (_) | |_\__ \ | | |>  < 
 |_|  \___/ \___/ \__|___/_| |_/_/\_\  (CSGO WALLHACK v1.0) # defs # GUI # Button # Hyperlink