Skip to content

Instantly share code, notes, and snippets.

@notsatvrn
Forked from matcool/make-gdps.py
Last active January 1, 2022 19:37
Show Gist options
  • Save notsatvrn/b1e32f1cbdeb0934e31529bddd049c5f to your computer and use it in GitHub Desktop.
Save notsatvrn/b1e32f1cbdeb0934e31529bddd049c5f to your computer and use it in GitHub Desktop.
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