-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.py
More file actions
29 lines (25 loc) · 784 Bytes
/
init.py
File metadata and controls
29 lines (25 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import ftplib
import json
import io
user = "root"
password = ""
buffer = io.BytesIO()
print("App Center Browser by Kilgorezer")
print("Only tested on LeapPad Platinum.")
print("See README.TXT for details")
ftp = ftplib.FTP(input("Enter LeapPad's Local IP: "))
ftp.login(user, password)
def setData(bina):
print(json.load(bina))
ftp.cwd("/LF/Bulk/")
ftp.retrbinary('RETR endpointurls.json', buffer.write)
buffer.seek(0)
data = json.load(buffer)
target = "https://u.kilgorezer.com/brow.html"
data["AppCenterHomeButton"]["production"] = target
data["AppCenter"]["production"] = target
buffer.seek(0)
ftp.cwd("/Kilgorezer/")
ftp.storbinary('STOR endpointurls.json', io.BytesIO(json.dumps(data, indent="\t").encode('ascii')))
ftp.quit()
input("Done!")