Created
December 1, 2019 02:20
-
-
Save RGamberini/cf5255464162da295fb73c160a8bd0c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bufferSize = 2232 | |
buffer = (ctypes.c_byte * bufferSize)() | |
pid = findProcessIdByName("Phantom Brave PC.exe")[0]['pid'] | |
toFind = ctypes.create_string_buffer(b"Nameless Soul") | |
print(pid) | |
with Process.open_process(pid) as p: | |
startAddr = list(filter(lambda x: x >0x1CBB0000, p.search_all_memory(toFind)))[0] | |
startAddr += 23 | |
for i in range(25): | |
p.read_memory(startAddr + (bufferSize * i), buffer) | |
asciiBuffer = [] | |
for byte in buffer: | |
if byte != 0x00: | |
asciiBuffer.append(byte) | |
else: | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment