-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHack Ramadhan Reborn.py
More file actions
297 lines (215 loc) · 13.5 KB
/
Hack Ramadhan Reborn.py
File metadata and controls
297 lines (215 loc) · 13.5 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
# License Key Format : WEUIJK-BVP-YII25-XXXXXXXXXXXXXXX
import tkinter as tk
import ttkbootstrap as ttk
from ttkbootstrap.constants import *
from ttkbootstrap.dialogs import Messagebox
import random
import os
version = "v3.2"
programyear = "2025"
programstate = "enabled"
X_SPACING_BETWEEN_ELEMENTS = 50
Y_SPACING_BETWEEN_ELEMENTS = 10
CHECKBOX_BOOTSTYLE = "round-toggle"
DefaultLicenseKeyValue = "WEUIJK-BVP-YII25-0705-KYVOGCFCVI" # Egg? 17
DefaultLicenseKeyVadility = 2026
if os.path.exists("license.hrr"):
with open("license.hrr", "r") as file:
content = file.read().strip()
if content:
LicenseKeyValue, LicenseKeyVadility = content.split(',')
LicenseKeyVadility = int(LicenseKeyVadility)
if not LicenseKeyValue.startswith("WEUIJK-BVP-YII25-") or len(LicenseKeyValue) != 32:
LicenseKeyValue = "Invalid License, Please go to License > Switch License to activate"
LicenseKeyVadility = "N/A"
else:
LicenseKeyValue = DefaultLicenseKeyValue
LicenseKeyVadility = DefaultLicenseKeyVadility
else:
LicenseKeyValue = DefaultLicenseKeyValue
LicenseKeyVadility = DefaultLicenseKeyVadility
root = tk.Tk()
style = ttk.Style(theme='superhero')
root.resizable(False, False)
root.title(f"Hack Ramadhan {programyear} Reborn {version}")
root.iconbitmap("favicon.ico")
title = ttk.Label(root, text=f"Hack Ramadhan Reborn {programyear}", font=("Arial", 30))
title.grid(row=0, column=0, padx=20, pady=80, sticky=N)
subtitle = ttk.Label(root, text="Pro Version", font=("Arial", 14))
subtitle.grid(row=0, column=0, padx=20, pady=20, sticky=S)
ElementFrame = ttk.Frame(root)
HausBypassFrame = ttk.Frame(ElementFrame)
HausBypassState = tk.BooleanVar()
HausBypassState.set(False)
HausBypassCheckbox = ttk.Checkbutton(HausBypassFrame, variable=HausBypassState, bootstyle=CHECKBOX_BOOTSTYLE, state=f"{programstate}")
HausBypassCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
HausBypassLabel = ttk.Label(HausBypassFrame, text="Haus Bypass", font=("Arial", 14))
HausBypassLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
HausBypassFrame.grid(row=1, column=0, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
AutoBukaFrame = ttk.Frame(ElementFrame)
AutoBukaState = tk.BooleanVar()
AutoBukaState.set(False)
AutoBukaCheckbox = ttk.Checkbutton(AutoBukaFrame, variable=AutoBukaState, bootstyle=CHECKBOX_BOOTSTYLE, state=f"{programstate}")
AutoBukaCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
AutoBukaLabel = ttk.Label(AutoBukaFrame, text="Auto Buka", font=("Arial", 14))
AutoBukaLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
AutoBukaFrame.grid(row=2, column=0, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
AntiLaparFrame = ttk.Frame(ElementFrame)
AntiLaparState = tk.BooleanVar()
AntiLaparState.set(False)
AntiLaparCheckbox = ttk.Checkbutton(AntiLaparFrame, variable=AntiLaparState, bootstyle=CHECKBOX_BOOTSTYLE, state=f"{programstate}")
AntiLaparCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
AntiLaparLabel = ttk.Label(AntiLaparFrame, text="Anti Lapar", font=("Arial", 14))
AntiLaparLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
AntiLaparFrame.grid(row=3, column=0, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
Khatam30JuzFrame = ttk.Frame(ElementFrame)
Khatam30JuzState = tk.BooleanVar()
Khatam30JuzState.set(False)
Khatam30JuzCheckbox = ttk.Checkbutton(Khatam30JuzFrame, variable=Khatam30JuzState, bootstyle=CHECKBOX_BOOTSTYLE, state=f"{programstate}")
Khatam30JuzCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
Khatam30JuzLabel = ttk.Label(Khatam30JuzFrame, text="Khatam 30 Juz", font=("Arial", 14))
Khatam30JuzLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
Khatam30JuzFrame.grid(row=4, column=0, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
AntiTelatSahurFrame = ttk.Frame(ElementFrame)
AntiTelatSahurState = tk.BooleanVar()
AntiTelatSahurState.set(False)
AntiTelatSahurCheckbox = ttk.Checkbutton(AntiTelatSahurFrame, variable=AntiTelatSahurState, bootstyle=CHECKBOX_BOOTSTYLE, state=f"{programstate}")
AntiTelatSahurCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
AntiTelatSahurLabel = ttk.Label(AntiTelatSahurFrame, text="Anti Telat Sahur", font=("Arial", 14))
AntiTelatSahurLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
AntiTelatSahurFrame.grid(row=5, column=0, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
MempercepatMaghribFrame = ttk.Frame(ElementFrame)
MempercepatMaghribState = tk.BooleanVar()
MempercepatMaghribState.set(False)
MempercepatMaghribCheckbox = ttk.Checkbutton(MempercepatMaghribFrame, variable=MempercepatMaghribState, bootstyle=CHECKBOX_BOOTSTYLE, state=f"{programstate}")
MempercepatMaghribCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
MempercepatMaghribLabel = ttk.Label(MempercepatMaghribFrame, text="Mempercepat Maghrib", font=("Arial", 14))
MempercepatMaghribLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
MempercepatMaghribFrame.grid(row=1, column=1, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
AntiHausFrame = ttk.Frame(ElementFrame)
AntiHausState = tk.BooleanVar()
AntiHausState.set(False)
AntiHausCheckbox = ttk.Checkbutton(AntiHausFrame, variable=AntiHausState, bootstyle=CHECKBOX_BOOTSTYLE, state=f"{programstate}")
AntiHausCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
AntiHausLabel = ttk.Label(AntiHausFrame, text="Anti Haus", font=("Arial", 14))
AntiHausLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
AntiHausFrame.grid(row=2, column=1, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
MenutupSemuaAuratFrame = ttk.Frame(ElementFrame)
MenutupSemuaAuratState = tk.BooleanVar()
MenutupSemuaAuratState.set(False)
MenutupSemuaAuratCheckbox = ttk.Checkbutton(MenutupSemuaAuratFrame, variable=MenutupSemuaAuratState, bootstyle=CHECKBOX_BOOTSTYLE, state=f"{programstate}")
MenutupSemuaAuratCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
MenutupSemuaAuratLabel = ttk.Label(MenutupSemuaAuratFrame, text="Menutup Semua Aurat", font=("Arial", 14))
MenutupSemuaAuratLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
MenutupSemuaAuratFrame.grid(row=3, column=1, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
DosaBypassFrame = ttk.Frame(ElementFrame)
DosaBypassState = tk.BooleanVar()
DosaBypassState.set(False)
DosaBypassCheckbox = ttk.Checkbutton(DosaBypassFrame, variable=DosaBypassState, bootstyle=CHECKBOX_BOOTSTYLE, state=f"{programstate}")
DosaBypassCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
DosaBypassLabel = ttk.Label(DosaBypassFrame, text="Dosa Bypass", font=("Arial", 14))
DosaBypassLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
DosaBypassFrame.grid(row=4, column=1, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
MempercepatTarawihFrame = ttk.Frame(ElementFrame)
def update_status():
IsEnabled = MempercepatTarawihState.get()
if IsEnabled == False:
KecepatanTarawihScrollbar.configure(state="disabled")
KecepatanTarawihLabel.configure(text=f"Kecepatan Tarawih: 1x Lebih Cepat")
KecepatanTarawihScrollbar.configure(value=1)
else:
KecepatanTarawihScrollbar.configure(state="enabled")
MempercepatTarawihState = tk.BooleanVar()
MempercepatTarawihState.set(False)
MempercepatTarawihCheckbox = ttk.Checkbutton(MempercepatTarawihFrame, variable=MempercepatTarawihState, bootstyle=CHECKBOX_BOOTSTYLE, state=f"{programstate}")
MempercepatTarawihCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
MempercepatTarawihLabel = ttk.Label(MempercepatTarawihFrame, text="Mempercepat Tarawih", font=("Arial", 14))
MempercepatTarawihLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
MempercepatTarawihCheckbox.configure(command=update_status)
MempercepatTarawihFrame.grid(row=5, column=1, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
KecepatanTarawihFrame = ttk.Frame(ElementFrame)
KecepatanTarawihLabel = ttk.Label(KecepatanTarawihFrame, text="Kecepatan Tarawih: 1x Lebih Cepat", font=("Arial", 14))
KecepatanTarawihLabel.grid(row=0, column=0, padx=0, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
KecepatanTarawihScrollbar = ttk.Scale(KecepatanTarawihFrame, orient=HORIZONTAL, from_="1", to="6", length="480", state="disabled")
KecepatanTarawihScrollbar.grid(row=1, column=0, padx=0, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
KecepatanTarawihScrollbarPrecisionModeToggle = tk.BooleanVar()
KecepatanTarawihScrollbarPrecisionModeToggle.set(False)
def update_label(value):
IsPrecisionModeEnabled = KecepatanTarawihScrollbarPrecisionModeToggle.get()
if IsPrecisionModeEnabled == False:
roundvalue = round(float(value))
KecepatanTarawihLabel.configure(text=f"Kecepatan Tarawih: {roundvalue}x Lebih Cepat")
KecepatanTarawihScrollbar.configure(value=roundvalue)
else:
roundvalue_2 = round(float(value), 1)
KecepatanTarawihLabel.configure(text=f"Kecepatan Tarawih: {roundvalue_2}x Lebih Cepat")
KecepatanTarawihScrollbar.configure(value=roundvalue_2)
KecepatanTarawihScrollbar.configure(command=update_label)
for i in range(1, 7):
tick = ttk.Label(KecepatanTarawihFrame, text=str(i), font=("Arial", 12))
tick.place(x=0 + (i-1)*93.3, y=70)
separator = ttk.Label(KecepatanTarawihFrame, text=" ", font=("Arial", 5))
separator.grid(row=2, column=0, padx=0, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
KecepatanTarawihScrollbarPrecisionModeFrame = ttk.Frame(KecepatanTarawihFrame)
KecepatanTarawihScrollbarPrecisionModeCheckbox = ttk.Checkbutton(KecepatanTarawihScrollbarPrecisionModeFrame, variable=KecepatanTarawihScrollbarPrecisionModeToggle, bootstyle=CHECKBOX_BOOTSTYLE)
KecepatanTarawihScrollbarPrecisionModeCheckbox.grid(row=0, column=0, padx=0, pady=0, sticky=W)
KecepatanTarawihScrollbarPrecisionModeLabel = ttk.Label(KecepatanTarawihScrollbarPrecisionModeFrame, text="Mode Presisi", font=("Arial", 14))
KecepatanTarawihScrollbarPrecisionModeLabel.grid(row=0, column=1, padx=0, pady=0, sticky=E)
KecepatanTarawihScrollbarPrecisionModeFrame.grid(row=2, column=0, padx=0, pady=Y_SPACING_BETWEEN_ELEMENTS*2, sticky=W)
KecepatanTarawihFrame.grid(row=6, column=0, columnspan=2, padx=X_SPACING_BETWEEN_ELEMENTS, pady=Y_SPACING_BETWEEN_ELEMENTS, sticky=W)
ElementFrame.grid(row=1, column=0, padx=10, pady=0)
LicenseKey = ttk.Label(root, text=f"License Key: Valid until {LicenseKeyVadility} ({LicenseKeyValue})", font=("Arial", 12))
LicenseKey.grid(row=2, column=0, padx=20, pady=20, sticky=SW)
menubar = ttk.Menu(root)
root.config(menu=menubar)
def show_about():
about_window = ttk.Toplevel(root)
about_window.resizable(False, False)
about_window.title("About")
about_window.iconbitmap("favicon.ico")
logo_image = ttk.PhotoImage(file="logo.png").subsample(5, 5)
logo_label = ttk.Label(about_window, image=logo_image)
logo_label.image = logo_image
logo_label.pack(padx=20, pady=20)
about_label = ttk.Label(about_window, text=f"Hack Ramadhan Reborn {version}\nA Silly Program Developed by Fandrest", font=("Arial", 14), justify="center")
about_label.pack(padx=20, pady=20)
def show_license_key():
license_window = ttk.Toplevel(root)
license_window.resizable(False, False)
license_window.title("License Information")
license_window.iconbitmap("favicon.ico")
license_title = ttk.Label(license_window, text="License Information", font=("Arial", 16))
license_title.pack(padx=20, pady=10)
license_key_label = ttk.Label(license_window, text=f"License Key: {LicenseKeyValue}", font=("Arial", 14))
license_key_label.pack(padx=20, pady=10)
license_valid_label = ttk.Label(license_window, text=f"Product is activated until {LicenseKeyVadility}", font=("Arial", 14))
license_valid_label.pack(padx=20, pady=10)
def switch_license():
license_window = ttk.Toplevel(root)
license_window.resizable(False, False)
license_window.title("Switch License")
license_window.iconbitmap("favicon.ico")
license_title = ttk.Label(license_window, text="Switching License : Please enter a new valid license", font=("Arial", 16))
license_title.pack(padx=20, pady=10)
license_entry = ttk.Entry(license_window, width=30)
license_entry.pack(padx=20, pady=10)
def activate_license():
LicenseKeyValue = license_entry.get()
if not LicenseKeyValue.startswith("WEUIJK-BVP-YII25-") or len(LicenseKeyValue) != 32:
Messagebox.show_error("Invalid License Key Format!", "Activation Error", parent=license_window)
else:
LicenseKeyVadility = random.randint(2025, 2030)
with open("license.hrr", "w") as file:
file.write(f"{LicenseKeyValue},{LicenseKeyVadility}")
Messagebox.show_info("Activation Successful!\nPlease restart the program", "Activation Successful", parent=license_window)
license_window.destroy()
activate_button = ttk.Button(license_window, text="Activate", command=activate_license)
activate_button.pack(padx=20, pady=10)
switch_license_button = ttk.Button(license_window, text="Switch License", command=switch_license)
switch_license_button.pack(padx=20, pady=10)
help_menu = ttk.Menu(menubar, tearoff=0)
menubar.add_command(label="License", command=show_license_key)
menubar.add_command(label="About", command=show_about)
if LicenseKeyVadility == "N/A":
subtitle.configure(text="Evaluation Copy", font=("Arial", 14))
root.mainloop()