-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmain.py
More file actions
22 lines (18 loc) · 781 Bytes
/
Copy pathmain.py
File metadata and controls
22 lines (18 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import ctypes, utility
from ctypes import wintypes
from consts import *
kernel32 = ctypes.windll.kernel32
pid = utility.GetProcId("MuseDash.exe")
handle = kernel32.OpenProcess(PROCESS_ALL_ACCESS, 0, ctypes.wintypes.DWORD(pid))
base_address = utility.GetModuleBaseAddress(pid, "GameAssembly.dll")
# Feature
features = [
(ctypes.c_ulonglong(base_address + 0x130B580), ctypes.c_int(0x0001B848)),
(ctypes.c_ulonglong(base_address + 0x130BC80), ctypes.c_int(0xDE4785B8)),
(ctypes.c_ulonglong(base_address + 0x223C020), ctypes.c_int(0x0001B848)),
]
# Write to memory
for address, value in features:
kernel32.WriteProcessMemory(handle, address, ctypes.byref(value), ctypes.sizeof(value), None)
print("Succesfully unlocked everything!")
kernel32.CloseHandle(handle)