Ignore AIClient/Library and AIClient/HybridCLRData permanently; include HybridCLR/YooAsset project setup and UI tooling. Co-authored-by: Cursor <cursoragent@cursor.com>
54 lines
1.6 KiB
Python
54 lines
1.6 KiB
Python
#!/usr/bin/env python3
|
|
import json
|
|
import urllib.error
|
|
import urllib.request
|
|
|
|
BASE = "https://game.xworld.ren"
|
|
|
|
BODIES = [
|
|
{"user": "test", "pass": "test"},
|
|
{"account": "test", "password": "test"},
|
|
{"name": "test", "password": "test"},
|
|
{"username": "admin", "password": "admin"},
|
|
{"username": "guest", "password": "guest"},
|
|
{"username": "demo", "password": "demo"},
|
|
{"username": "udx", "password": "abcd99"},
|
|
{"username": "test", "password": "test", "platform": "editor"},
|
|
{"username": "test", "password": "test", "pid": "m2"},
|
|
{"username": "a", "password": "b", "deviceId": "x"},
|
|
]
|
|
|
|
PATHS = ["/login", "/register", "/signup", "/guest", "/auth", "/token"]
|
|
|
|
|
|
def post(path, payload):
|
|
data = json.dumps(payload).encode()
|
|
req = urllib.request.Request(BASE + path, data=data, method="POST")
|
|
req.add_header("Content-Type", "application/json")
|
|
try:
|
|
with urllib.request.urlopen(req, timeout=10) as resp:
|
|
body = resp.read().decode("utf-8", "replace")
|
|
print(f"OK {resp.status} {path} {payload} => {body[:500]}")
|
|
return body
|
|
except urllib.error.HTTPError as e:
|
|
body = e.read().decode("utf-8", "replace")
|
|
print(f"HTTP {e.code} {path} {payload} => {body[:500]}")
|
|
return None
|
|
except Exception as e:
|
|
print(f"ERR {path}: {e}")
|
|
return None
|
|
|
|
|
|
def main():
|
|
print("=== path discovery ===")
|
|
for p in PATHS:
|
|
post(p, {"username": "x", "password": "y"})
|
|
|
|
print("=== login field variants ===")
|
|
for b in BODIES:
|
|
post("/login", b)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|