-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathscript_mnkej15x.py
More file actions
78 lines (71 loc) · 2.52 KB
/
Copy pathscript_mnkej15x.py
File metadata and controls
78 lines (71 loc) · 2.52 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 欢迎使用 PythonIDE!如果觉得好用,请给个好评哦~
#!/usr/bin/env python3
import time
import sys
import random
from datetime import datetime
# ANSI 颜色码
GREEN = '\033[92m'
YELLOW = '\033[93m'
CYAN = '\033[96m'
RED = '\033[91m'
RESET = '\033[0m'
BOLD = '\033[1m'
def log(message, level="INFO"):
ts = datetime.now().strftime("%H:%M:%S")
if level == "STEP":
print(f"{CYAN}[{ts}] {message}{RESET}")
elif level == "SUCCESS":
print(f"{GREEN}[{ts}] {message}{RESET}")
elif level == "ERROR":
print(f"{RED}[{ts}] {message}{RESET}")
else:
print(f"[{ts}] {message}")
def progress_bar(current, total, bar_length=40):
percent = current / total
arrow = '█' * int(round(percent * bar_length))
spaces = ' ' * (bar_length - len(arrow))
sys.stdout.write(f"\r进度: |{arrow}{spaces}| {percent:.0%} ")
sys.stdout.flush()
import console
intro_text = """ 和平稳定内核内测版
━━━━━━━━━━━━━━━━━━━━━━
和平内核以下刷入流程:
1. 检查设备
2. 游戏查找
3. 读取设备环境
4. 正在连接服务器
5. 刷入
6. 验证
⚠️ 注意:此版本为内测版本,会对真实设备做深度修改。
是否继续刷入?(点击 确认)"""
answer = console.alert("确认刷入", intro_text, "刷入", hide_cancel_button=False)
if answer != 1:
log("❌ 用户取消刷入", "ERROR")
sys.exit()
def simulate_root():
steps = [
(" 检查设备", "设备正常", 1.5),
(" 正在查找游戏", "和平精英已找到", 2.0),
(" 正在读取设备环境", "读取成功", 2.0),
(" 设备环境异常 ", "准备修补", 2.5),
(" 设备环境修补中", "修补成功", 3.0),
(" 设备修补成功", "正在准备下一步验证工作", 1.5),
("正在验证设备id","正在与服务器验证", 2.0),
("服务器验证成功","祝你游戏愉快", 1.0),
]
total = len(steps)
log(f"{BOLD} 开始执行 刷入流程...{RESET}")
for idx, (name, detail, duration) in enumerate(steps, 1):
log(f"➡ {name}", "STEP")
log(f" {detail}")
for _ in range(int(duration * 10)):
time.sleep(0.1)
progress_bar(idx - 1 + (_ / (duration * 10)), total)
progress_bar(idx, total)
print()
log(f"✓ {name} 完成", "SUCCESS")
time.sleep(0.2)
log(f"\n {BOLD}恭喜! 你个傻调还真信了😂😂😂🖕🖕🖕{RESET}", "SUCCESS")
if __name__ == "__main__":
simulate_root()