-
-
Save notsatvrn/b1e32f1cbdeb0934e31529bddd049c5f 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
from base64 import b64encode | |
from os import path | |
url = 'http://gdps.galaxiaps.tk' | |
to_replace = 'http://www.boomlings.com' | |
print('Checking base64...') | |
replace_b64 = b64encode(bytes(to_replace, 'utf-8')) | |
url_b64 = b64encode(bytes(url, 'utf-8')) | |
print(f'{replace_b64}\n{url_b64}') | |
gd = 'GeometryDash.exe' | |
while not path.isfile(gd): | |
gd = input(f'{gd} not found, input gd exe path: ') | |
print(f'Opening {gd} ...') | |
with open(gd, 'rb') as file: | |
print('opened') | |
raw = file.read() | |
print('replacing...') | |
raw = raw.replace(bytes(to_replace, 'utf-8'), bytes(url, 'utf-8')).replace(replace_b64, url_b64) | |
print('writing...') | |
with open("GalaxiaPS.exe", 'wb') as file: | |
file.write(raw) | |
print('done!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment