This repository has been archived by the owner on Mar 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rainbow.py
1610 lines (1410 loc) · 62.1 KB
/
Rainbow.py
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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import sys
sys.path.insert(1, 'utils/')
from wallhack import main as wh
from bhop import main as a_bhop
from bhop_legit import main as a_legit_bhop
from triggerbot import main as tg
from noflash import main as nf
from rcs import main as rcs_p
from radar import main as radar
from aimbot import main as ai
from aimbot_rage import main as ai_r
from ragemode import main as rmh
from crosshair_hack import main as ch
from rapidfire import main as rfw
from fov import main as fh
from fov_reset import main as fh_reset
from thirdperson import main as thp_h
from rank_reveal import main as rr
from chams import main as chams
from chams_reset import main as chams_r
from hitsound import main as hitsound
from soundesp import main as soundesp
from silent import main as silent_ai
from tkinter import *
from tkinter.filedialog import askopenfilename
from tkinter import ttk
from PIL import ImageTk,Image
from multiprocessing import *
import warnings
warnings.simplefilter("ignore")
import threading
import multiprocessing
import ctypes
import os
import pymem
import pymem.process
import keyboard
window = Tk()
first = 1
delay_tg = 0.1
key_tg = "shift"
smooth_ai = 4
key_ai = "f"
fov_ai = 10
fov_fh = 90
thp = "x"
rapidfire_key = "c"
silent_key = "f"
aim_rage = False
bhop_legit = False
rcs_percent = 100
def create_temp_file() :
os.system("cd configs/ && del temp.temp")
with open("configs/temp.temp", "a") as c :
global delay_tg
global key_tg
global key_ai
global smooth_ai
global fov_ai
global fov_fh
global thp
global rapidfire_key
global silent_key
global rcs_percent
rcs_percent = str(rcs_percent)
rcs_percent = rcs_percent.replace(" ", "")
rcs_percent = rcs_percent.replace("\n", "")
delay_tg = delay_tg.replace(" ", "")
delay_tg = delay_tg.replace("\n", "")
key_tg = key_tg.replace(" ", "")
key_tg = key_tg.replace("\n", "")
key_ai = key_ai.replace(" ", "")
key_ai = key_ai.replace("\n", "")
smooth_ai = smooth_ai.replace(" ", "")
smooth_ai = smooth_ai.replace("\n", "")
fov_ai = fov_ai.replace(" ", "")
fov_ai = fov_ai.replace("\n", "")
fov_fh = fov_fh.replace(" ", "")
fov_fh = fov_fh.replace("\n", "")
thp = thp.replace(" ", "")
thp = thp.replace("\n", "")
rapidfire_key = rapidfire_key.replace(" ", "")
rapidfire_key = rapidfire_key.replace("\n", "")
silent_key = silent_key.replace("\n", "")
silent_key = silent_key.replace("\n", "")
c.write("#Triggerbot\n")
c.write(str(delay_tg))
c.write("\n")
c.write(key_tg)
c.write("\n")
c.write("#Aimbot\n")
c.write(key_ai)
c.write("\n")
c.write(str(smooth_ai))
c.write("\n")
c.write(str(fov_ai))
c.write("\n")
c.write("#FOV\n")
c.write(str(fov_fh))
c.write("\n")
c.write("#Third person\n")
c.write(str(thp))
c.write("\n")
c.write("#Rapid Fire\n")
c.write(str(rapidfire_key))
c.write("\n")
c.write("#RCS\n")
c.write(str(rcs_percent))
c.write("\n")
c.write("#Silent Aim\n")
c.write(str(silent_key))
c.close()
f = open("configs/path.txt", "w")
f.write("temp.temp")
f.close()
def config_loader() :
#Création de la fenêtre
conf_loader = Tk()
w = 300
h = 115
ws = conf_loader.winfo_screenwidth()
hs = conf_loader.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
conf_loader.geometry('%dx%d+%d+%d' % (w, h, x, y))
conf_loader.title('Config Loader')
conf_loader.iconbitmap("images/rainbow.ico")
conf_loader.config(background='#f0f0f0')
#Création du texte
conf_text = StringVar()
label1 = Label(conf_loader, text = 'Load a config :', font=(40)) #Load a config (titre)
label1.place(relx=1, x=-190, y=0, anchor=NE) #Load a config (titre)
#Création de la liste déroulante pour les fichiers
folder = "configs/"
filelist = [fname for fname in os.listdir(folder) if fname.endswith('.cfg')]
optmenu = ttk.Combobox(conf_loader, values=filelist, state='readonly')
#global optmenu
optmenu.place(relx=1, x=-155, y=25, anchor=NE)
#Création du texte
bouton2 = Button(conf_loader, text="Load", font=(40), command= lambda: path_writer()) #Load (path writer boutton)
bouton2.place(relx=1, x=-100, y=20, anchor=NE) #Load (path writer boutton)
label2 = Label(conf_loader, text = 'Export current config :', font=(40)) #Export the config (titre)
label2.place(relx=1, x=-145, y=60, anchor=NE) #Export the config (titre)
label3 = Label(conf_loader, text = 'Export as :', font=(40)) #Export the config as (titre)
label3.place(relx=1, x=-221, y=82, anchor=NE) #Export the config as (titre)
conf_entry = Entry(conf_loader, textvariable = conf_text, width=15) #Nom de la config (entrée)
conf_entry.place(relx=1, x=-125, y=85, anchor=NE) #Nom de la config (entrée)
label4 = Label(conf_loader, text = '.cfg', font=(40)) #.cfg (titre)
label4.place(relx=1, x=-100, y=82, anchor=NE) #.cfg (titre)
bouton3 = Button(conf_loader, text="Export", font=(40), command= lambda: export()) #Export (boutton)
bouton3.place(relx=1, x=-25, y=79, anchor=NE) #Export (boutton)
def path_writer() : #Sous programme qui note le chemin d'accès dans configs/path.txt
config = optmenu.get()
global config
f = open("configs/path.txt", "w")
f.write(config)
f.close()
#On met à jour les valeurs en les changeants par celles de la config choisie
with open("configs/"+config) as config_file :
line_nmb = 1
for line in config_file :
if line_nmb == 2 :
delay_tg = line
global delay_tg
if line_nmb == 3 :
key_tg = line[0:-1]
global key_tg
if line_nmb == 5 :
key_ai = line
global key_ai
if line_nmb == 6 :
smooth_ai = line
global smooth_ai
if line_nmb == 7 :
fov_ai = line
global fov_ai
if line_nmb == 9 :
fov_fh = line
global fov_fh
if line_nmb == 11 :
thp = line
global thp
if line_nmb == 13 :
rapidfire_key = line
global rapidfire_key
if line_nmb == 15 :
rcs_percent = line
global rcs_percent
if line_nmb == 17 :
silent_key = line
global silent_key
if line_nmb >= 18 :
config_file.close()
break
line_nmb = line_nmb + 1
#On met à jour dans les configs
rcs_print = rcs_percent
delay_tg_print = delay_tg
key_tg_print = key_tg
key_ai_print = key_ai
smooth_ai_print = smooth_ai
fov_ai_print = fov_ai
fov_fh_print = fov_fh
thp_print = thp
rapidfire_print = rapidfire_key
silent_print = silent_key
global silent_print
global rcs_print
global thp_print
global fov_fh_print
global fov_ai_print
global smooth_ai_print
global key_ai_print
global delay_tg_print
global key_tg_print
global rapidfire_print
#On met une message box
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Config Loaded !', 'Success', 0)
def export() : #Sous programme qui exporte la configuration actuelle
conf_name = conf_entry.get()
with open("configs/"+conf_name+".cfg", "a") as c :
global delay_tg
global key_tg
global key_ai
global smooth_ai
global fov_ai
global fov_fh
global thp
global silent_key
global rapidfire_key
global rcs_percent
rcs_percent = rcs_percent.replace(" ", "")
rcs_percent = rcs_percent.replace("\n", "")
delay_tg = delay_tg.replace(" ", "")
delay_tg = delay_tg.replace("\n", "")
key_tg = key_tg.replace(" ", "")
key_tg = key_tg.replace("\n", "")
key_ai = key_ai.replace(" ", "")
key_ai = key_ai.replace("\n", "")
smooth_ai = smooth_ai.replace(" ", "")
smooth_ai = smooth_ai.replace("\n", "")
fov_ai = fov_ai.replace(" ", "")
fov_ai = fov_ai.replace("\n", "")
fov_fh = fov_fh.replace(" ", "")
fov_fh = fov_fh.replace("\n", "")
thp = thp.replace(" ", "")
thp = thp.replace("\n", "")
rapidfire_key = rapidfire_key.replace(" ", "")
rapidfire_key = rapidfire_key.replace("\n", "")
silent_key = silent_key.replace("\n", "")
silent_key = silent_key.replace(" ", "")
c.write("#Triggerbot\n")
c.write(str(delay_tg))
c.write("\n")
c.write(key_tg)
c.write("\n")
c.write("#Aimbot\n")
c.write(key_ai)
c.write("\n")
c.write(str(smooth_ai))
c.write("\n")
c.write(str(fov_ai))
c.write("\n")
c.write("#FOV\n")
c.write(str(fov_fh))
c.write("\n")
c.write("#Third person\n")
c.write(str(thp))
c.write("\n")
c.write("#Rapid Fire\n")
c.write(str(rapidfire_key))
c.write("\n")
c.write("#RCS\n")
c.write(str(rcs_percent))
c.write("\n")
c.write("#Silent Aim\n")
c.write(str(silent_key))
c.close()
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Config exported in configs/'+conf_name+'.cfg !', 'Success', 0)
conf_loader.mainloop()
def aimbot_conf() :
#Création de la fenêtre
aimbot_conf = Tk()
w = 400
h = 230
ws = aimbot_conf.winfo_screenwidth()
hs = aimbot_conf.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
aimbot_conf.geometry('%dx%d+%d+%d' % (w, h, x, y))
aimbot_conf.title('Aimbot Configuration')
aimbot_conf.iconbitmap("images/rainbow.ico")
aimbot_conf.config(background='#f0f0f0')
#On cherche le nom de la config actuelle
with open("configs/path.txt") as path_txt :
path = path_txt.readline()
path_txt.close()
#On met à jour les valeurs en les changeants par celles de la config choisie si c'est la première fois dans le programme
try :
str(key_ai_print)
except Exception as e:
with open("configs/"+path) as config_file :
line_nmb = 1
for line in config_file :
if line_nmb == 7 :
key_ai_print = line[0:-1]
global key_ai_print
if line_nmb == 8 :
smooth_ai = line[0:-1]
smooth_ai_print = str(smooth_ai)
global smooth_ai_print
if line_nmb == 9 :
fov_ai = line[0:-1]
fov_ai_print = str(fov_ai)
global fov_ai_print
if line_nmb >= 10 :
config_file.close()
break
line_nmb = line_nmb + 1
#Création du texte
smooth_ai = " "
key_ai = "a"
fov_ai = "b"
#On crée les variables des couleurs
green = '#0BFF14'
red = '#FF0B0B'
label1 = Label(aimbot_conf, text = 'Smooth value :', font=(40)) #Smooth (titre)
label1.place(relx=1, x=-290, y=0, anchor=NE) #Smooth (titre)
label3 = Label(aimbot_conf, text = 'Current value : '+str(smooth_ai_print), font=(40)) #Smooth (current)
label3.place(relx=1, x=-63, y=0, anchor=NE) #Smooth (current)
ai_entry = Entry(aimbot_conf, textvariable = smooth_ai, width=25) #Smooth (entrée)
ai_entry.place(relx=1, x=-243, y=25, anchor=NE) #Smooth (entrée)
bouton = Button(aimbot_conf, text="Submit", font=(40), command= lambda: aimbot_conf_save_delay(ai_entry, aimbot_conf)) #Smooth (boutton)
bouton.place(relx=1, x=-173, y=20, anchor=NE) #Smooth (boutton)
label2 = Label(aimbot_conf, text = 'Keybind :', font=(40)) #Keybind (titre)
label2.place(relx=1, x=-330, y=60, anchor=NE) #Keybind (titre)
ai_entry2 = Entry(aimbot_conf, textvariable = key_ai, width=25) #Keybind (entrée)
ai_entry2.place(relx=1, x=-243, y=90, anchor=NE) #Keybind (entrée)
label4 = Label(aimbot_conf, text = 'Current value : '+str(key_ai_print), font=(40)) #Keybind (current)
label4.place(relx=1, x=-67, y=65, anchor=NE) #Keybind (current)
bouton2 = Button(aimbot_conf, text="Submit", font=(40), command= lambda: aimbot_conf_save_key(ai_entry2, aimbot_conf)) #Keybind (bouton)
bouton2.place(relx=1, x=-173, y=85, anchor=NE) #Keybind (bouton)
label5 = Label(aimbot_conf, text = 'FOV :', font=(40)) #Fov (titre)
label5.place(relx=1, x=-353, y=125, anchor=NE) #Fov (titre)
ai_entry3 = Entry(aimbot_conf, textvariable = fov_ai, width=25) #Fov (entrée)
ai_entry3.place(relx=1, x=-243, y=150, anchor=NE) #Fov (entrée)
label6 = Label(aimbot_conf, text = 'Current value : '+str(fov_ai_print), font=(40)) #Fov (current)
label6.place(relx=1, x=-55, y=125, anchor=NE) #Fov (current)
bouton3 = Button(aimbot_conf, text="Submit", font=(40), command= lambda: aimbot_conf_save_fov(ai_entry3, aimbot_conf)) #Fov (bouton)
bouton3.place(relx=1, x=-173, y=145, anchor=NE) #Fov (bouton)
if aim_rage == False :
Aimbot_rage = Button(aimbot_conf, text="Rage on/off", bg=red, fg='#000000', font=(40), command= lambda: Aimbot_rage.configure(background = aimbot_rage(aimbot_conf, green, red, Aimbot_rage))) #Aimbot Rage (button)
Aimbot_rage.place(relx=1, x=-15, y=190, anchor=NE) #Aimbot Rage (button)
if aim_rage == True :
Aimbot_rage = Button(aimbot_conf, text="Rage on/off", bg=green, fg='#000000', font=(40), command= lambda: Aimbot_rage.configure(background = aimbot_rage(aimbot_conf, green, red, Aimbot_rage))) #Aimbot Rage (button)
Aimbot_rage.place(relx=1, x=-15, y=190, anchor=NE) #Aimbot Rage (button)
def aimbot_rage(aimbot_conf, green, red, Aimbot_rage) :
#Si la couleur du boutton == rouge alors on la change en vert
#Et vice-versa
curent_cl = Aimbot_rage.cget('bg')
if curent_cl == red :
#On appelle le aimbot
aim_rage = True
global aim_rage
return green
elif curent_cl == green :
aim_rage = False
global aim_rage
return red
buttons(window)
def aimbot_conf_save_fov(ai_entry3, aimbot_conf) : #On récupère le texte et on fait apparaître une fenêtre
fov_ai = ai_entry3.get()
fov_ai_print = fov_ai
global fov_ai_print
print("fov")
print(fov_ai)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour la variable de délai du aimbot
global fov_ai
create_temp_file()
def aimbot_conf_save_delay(ai_entry, aimbot_conf) : #On récupère le texte et on fait apparaître une fenêtre
smooth_ai = ai_entry.get()
smooth_ai_print = smooth_ai
global smooth_ai_print
print("smooth")
print(smooth_ai)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour la variable de délai du aimbot
global smooth_ai
create_temp_file()
def aimbot_conf_save_key(ai_entry2, aimbot_conf) : #On récupère le texte et on fait apparaître une fenêtre
key_ai = ai_entry2.get()
key_ai_print = key_ai
global key_ai_print
print("key aimbot")
print(key_ai)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour la variable de délai du aimbot
global key_ai
create_temp_file()
aimbot_conf.mainloop()
def triggerbot_conf() :
#Création de la fenêtre
triggerbot_conf = Tk()
w = 400
h = 125
ws = triggerbot_conf.winfo_screenwidth()
hs = triggerbot_conf.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
triggerbot_conf.geometry('%dx%d+%d+%d' % (w, h, x, y))
triggerbot_conf.title('Triggerbot Configuration')
triggerbot_conf.iconbitmap("images/rainbow.ico")
triggerbot_conf.config(background='#f0f0f0')
#On cherche le nom de la config actuelle
with open("configs/path.txt") as path_txt :
path = path_txt.readline()
path_txt.close()
#On met à jour les valeurs en les changeants par celles de la config choisie si c'est la première fois dans le programme
try :
str(key_tg_print)
except Exception as e:
with open("configs/"+path) as config_file :
line_nmb = 1
for line in config_file :
if line_nmb == 2 :
delay_tg = line[0:-1]
delay_tg_print = str(delay_tg)
global delay_tg_print
if line_nmb == 3 :
key_tg_print = line[0:-1]
global key_tg_print
if line_nmb >= 4 :
config_file.close()
break
line_nmb = line_nmb + 1
#Création du texte
delay_tg = " "
delay_tg2 = "a"
label1 = Label(triggerbot_conf, text = 'Delay : (default = 0.1)', font=(40)) #Délai (titre)
label1.place(relx=1, x=-247, y=0, anchor=NE) #Délai (titre)
label3 = Label(triggerbot_conf, text = 'Current value : '+str(delay_tg_print), font=(40)) #Délai (current)
label3.place(relx=1, x=-53, y=0, anchor=NE) #Délai (current)
tg_entry = Entry(triggerbot_conf, textvariable = delay_tg, width=25) #Délai (entrée)
tg_entry.place(relx=1, x=-243, y=25, anchor=NE) #Délai (entrée)
bouton = Button(triggerbot_conf, text="Submit", font=(40), command= lambda: triggerbot_conf_save_delay(tg_entry, triggerbot_conf)) #Délai (boutton)
bouton.place(relx=1, x=-173, y=20, anchor=NE) #Délai (boutton)
label2 = Label(triggerbot_conf, text = 'Keybind :', font=(40)) #Keybind (titre)
label2.place(relx=1, x=-330, y=60, anchor=NE) #Keybind (titre)
tg_entry2 = Entry(triggerbot_conf, textvariable = delay_tg2, width=25) #Keybind (entrée)
tg_entry2.place(relx=1, x=-243, y=90, anchor=NE) #Keybind (entrée)
label4 = Label(triggerbot_conf, text = 'Current value : '+str(key_tg_print), font=(40)) #Keybind (current)
label4.place(relx=1, x=-48, y=65, anchor=NE) #Keybind (current)
bouton2 = Button(triggerbot_conf, text="Submit", font=(40), command= lambda: triggerbot_conf_save_key(tg_entry2, triggerbot_conf)) #Keybind (bouton)
bouton2.place(relx=1, x=-173, y=85, anchor=NE) #Keybind (bouton)
def triggerbot_conf_save_delay(tg_entry, triggerbot_conf) : #On récupère le texte et on fait apparaître une fenêtre
delay_tg = tg_entry.get()
delay_tg_print = delay_tg
global delay_tg_print
print("delay")
print(delay_tg)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour la variable de délai du Triggerbot
global delay_tg
create_temp_file()
def triggerbot_conf_save_key(tg_entry2, triggerbot_conf) : #On récupère le texte et on fait apparaître une fenêtre
key_tg = tg_entry2.get()
key_tg_print = key_tg
global key_tg_print
print("key")
print(key_tg)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour la variable de délai du Triggerbot
global key_tg
create_temp_file()
triggerbot_conf.mainloop()
def fov_conf() :
#Création de la fenêtre
fov_conf = Tk()
w = 400
h = 60
ws = fov_conf.winfo_screenwidth()
hs = fov_conf.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
fov_conf.geometry('%dx%d+%d+%d' % (w, h, x, y))
fov_conf.title('FOV Configuration')
fov_conf.iconbitmap("images/rainbow.ico")
fov_conf.config(background='#f0f0f0')
#On cherche le nom de la config actuelle
with open("configs/path.txt") as path_txt :
path = path_txt.readline()
path_txt.close()
#On met à jour les valeurs en les changeants par celles de la config choisie si c'est la première fois dans le programme
try :
str(fov_fh_print)
except Exception as e:
with open("configs/"+path) as config_file :
line_nmb = 1
for line in config_file :
if line_nmb == 11 :
fov_fh = line[0:-1]
fov_fh_print = str(fov_fh)
global fov_fh_print
if line_nmb >= 12 :
config_file.close()
break
line_nmb = line_nmb + 1
#Création du texte
fov_fh = " "
label1 = Label(fov_conf, text = 'FOV :', font=(40)) #FOV (titre)
label1.place(relx=1, x=-353, y=0, anchor=NE) #FOV (titre)
label3 = Label(fov_conf, text = 'Current value : '+str(fov_fh_print), font=(40)) #FOV (current)
label3.place(relx=1, x=-53, y=0, anchor=NE) #FOV (current)
fh_entry = Entry(fov_conf, textvariable = fov_fh, width=25) #FOV (entrée)
fh_entry.place(relx=1, x=-243, y=25, anchor=NE) #FOV (entrée)
bouton = Button(fov_conf, text="Submit", font=(40), command= lambda: fov_conf_save_delay(fh_entry, fov_conf)) #FOV (boutton)
bouton.place(relx=1, x=-173, y=20, anchor=NE) #FOV (boutton)
def fov_conf_save_delay(fh_entry, fov_conf) : #On récupère le texte et on fait apparaître une fenêtre
fov_fh = fh_entry.get()
fov_fh_print = fov_fh
global fov_fh_print
print("fh delay")
print(fov_fh)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour la variable de délai du fov
global fov_fh
create_temp_file()
fov_conf.mainloop()
def thp_conf() :
#Création de la fenêtre
thp_conf = Tk()
w = 400
h = 60
ws = thp_conf.winfo_screenwidth()
hs = thp_conf.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
thp_conf.geometry('%dx%d+%d+%d' % (w, h, x, y))
thp_conf.title('Third person Configuration')
thp_conf.iconbitmap("images/rainbow.ico")
thp_conf.config(background='#f0f0f0')
#On cherche le nom de la config actuelle
with open("configs/path.txt") as path_txt :
path = path_txt.readline()
path_txt.close()
#On met à jour les valeurs en les changeants par celles de la config choisie si c'est la première fois dans le programme
try :
str(thp_print)
except Exception as e:
with open("configs/"+path) as config_file :
line_nmb = 1
for line in config_file :
if line_nmb == 13 :
thp = line[0:-1]
thp_print = str(thp)
global thp_print
if line_nmb >= 14 :
config_file.close()
break
line_nmb = line_nmb + 1
#Création du texte
thp = " "
label1 = Label(thp_conf, text = 'Keybind :', font=(40)) #Keybind (titre)
label1.place(relx=1, x=-330, y=0, anchor=NE) #Keybind (titre)
label3 = Label(thp_conf, text = 'Current value : '+str(thp_print), font=(40)) #Keybind (current)
label3.place(relx=1, x=-53, y=0, anchor=NE) #Keybind (current)
thp_entry = Entry(thp_conf, textvariable = thp, width=25) #Keybind (entrée)
thp_entry.place(relx=1, x=-243, y=25, anchor=NE) #Keybind (entrée)
bouton = Button(thp_conf, text="Submit", font=(40), command= lambda: thp_conf_save_delay(thp_entry, thp_conf)) #Keybind (boutton)
bouton.place(relx=1, x=-173, y=20, anchor=NE) #Keybind (boutton)
def thp_conf_save_delay(thp_entry, thp_conf) : #On récupère le texte et on fait apparaître une fenêtre
thp = thp_entry.get()
thp_print = thp
global thp_print
print("thp keybind")
print(thp)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour la variable de délai du thirdperson
global thp
create_temp_file()
thp_conf.mainloop()
def rapidfire_conf() :
#Création de la fenêtre
rapidfire_conf = Tk()
w = 400
h = 60
ws = rapidfire_conf.winfo_screenwidth()
hs = rapidfire_conf.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
rapidfire_conf.geometry('%dx%d+%d+%d' % (w, h, x, y))
rapidfire_conf.title('Rapid Fire Configuration')
rapidfire_conf.iconbitmap("images/rainbow.ico")
rapidfire_conf.config(background='#f0f0f0')
#On cherche le nom de la config actuelle
with open("configs/path.txt") as path_txt :
path = path_txt.readline()
path_txt.close()
#On met à jour les valeurs en les changeants par celles de la config choisie si c'est la première fois dans le programme
try :
str(rapidfire_print)
except Exception as e:
with open("configs/"+path) as config_file :
line_nmb = 1
for line in config_file :
if line_nmb == 13 :
rapidfire_key = line[0:-1]
rapidfire_print = str(rapidfire_key)
global rapidfire_print
if line_nmb >= 14 :
config_file.close()
break
line_nmb = line_nmb + 1
#Création du texte
rapidfire_key = " "
label1 = Label(rapidfire_conf, text = 'Keybind :', font=(40)) #Keybind (titre)
label1.place(relx=1, x=-330, y=0, anchor=NE) #Keybind (titre)
label3 = Label(rapidfire_conf, text = 'Current value : '+str(rapidfire_print), font=(40)) #Keybind (current)
label3.place(relx=1, x=-53, y=0, anchor=NE) #Keybind (current)
rapidfire_entry = Entry(rapidfire_conf, textvariable = rapidfire_key, width=25) #Keybind (entrée)
rapidfire_entry.place(relx=1, x=-243, y=25, anchor=NE) #Keybind (entrée)
bouton = Button(rapidfire_conf, text="Submit", font=(40), command= lambda: rapidfire_conf_save_key(rapidfire_entry, rapidfire_conf)) #Keybind (boutton)
bouton.place(relx=1, x=-173, y=20, anchor=NE) #Keybind (boutton)
def rapidfire_conf_save_key(rapidfire_entry, rapidfire_conf) : #On récupère le texte et on fait apparaître une fenêtre
rapidfire_key = rapidfire_entry.get()
rapidfire_print = rapidfire_key
global rapidfire_print
print("rapidfire keybind")
print(rapidfire_key)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour le keybind du rapidfire
global rapidfire_key
create_temp_file()
rapidfire_conf.mainloop()
def silent_conf() :
#Création de la fenêtre
silent_conf = Tk()
w = 400
h = 60
ws = silent_conf.winfo_screenwidth()
hs = silent_conf.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
silent_conf.geometry('%dx%d+%d+%d' % (w, h, x, y))
silent_conf.title('Silent Aim Configuration')
silent_conf.iconbitmap("images/rainbow.ico")
silent_conf.config(background='#f0f0f0')
#On cherche le nom de la config actuelle
with open("configs/path.txt") as path_txt :
path = path_txt.readline()
path_txt.close()
#On met à jour les valeurs en les changeants par celles de la config choisie si c'est la première fois dans le programme
with open("configs/"+path) as config_file :
line_nmb = 1
for line in config_file :
if line_nmb == 17 :
silent_key = line
silent_key = silent_key.replace(" ", "")
silent_key = silent_key.replace("\n", "")
silent_print = str(silent_key)
global silent_print
if line_nmb >= 18 :
config_file.close()
break
line_nmb = line_nmb + 1
#Création du texte
silent_key = " "
label1 = Label(silent_conf, text = 'Keybind :', font=(40)) #Keybind (titre)
label1.place(relx=1, x=-330, y=0, anchor=NE) #Keybind (titre)
label3 = Label(silent_conf, text = 'Current value : '+str(silent_print), font=(40)) #Keybind (current)
label3.place(relx=1, x=-53, y=0, anchor=NE) #Keybind (current)
silent_entry = Entry(silent_conf, textvariable = silent_key, width=25) #Keybind (entrée)
silent_entry.place(relx=1, x=-243, y=25, anchor=NE) #Keybind (entrée)
bouton = Button(silent_conf, text="Submit", font=(40), command= lambda: silent_conf_save_key(silent_entry, silent_conf)) #Keybind (boutton)
bouton.place(relx=1, x=-173, y=20, anchor=NE) #Keybind (boutton)
def silent_conf_save_key(silent_entry, silent_conf) : #On récupère le texte et on fait apparaître une fenêtre
silent_key = silent_entry.get()
silent_print = silent_key
global silent_print
print("silent aim keybind")
print(silent_key)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour le keybind du silent aim
global silent_key
create_temp_file()
silent_conf.mainloop()
def test_conf() :
#Création de la fenêtre
rcs_conf = Tk()
w = 400
h = 60
ws = rcs_conf.winfo_screenwidth()
hs = rcs_conf.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
rcs_conf.geometry('%dx%d+%d+%d' % (w, h, x, y))
rcs_conf.title('Recoil Control System Configuration')
rcs_conf.iconbitmap("images/rainbow.ico")
rcs_conf.config(background='#f0f0f0')
#On cherche le nom de la config actuelle
with open("configs/path.txt") as path_txt :
path = path_txt.readline()
path_txt.close()
#On met à jour les valeurs en les changeants par celles de la config choisie si c'est la première fois dans le programme
try :
str(rcs_print)
except Exception as e:
with open("configs/"+path) as config_file :
line_nmb = 1
for line in config_file :
if line_nmb == 15 :
rcs_percent = line
rcs_print = str(rcs_percent)
global rcs_print
if line_nmb >= 16 :
config_file.close()
break
line_nmb = line_nmb + 1
#Création du texte
rcs_percent = " "
label1 = Label(rcs_conf, text = 'Perfect Percentage :', font=(40)) #Perfect Percentage (titre)
label1.place(relx=1, x=-250, y=0, anchor=NE) #Perfect Percentage (titre)
label3 = Label(rcs_conf, text = 'Current value : '+str(rcs_print), font=(40)) #Perfect Percentage (current)
label3.place(relx=1, x=-53, y=0, anchor=NE) #Perfect Percentage (current)
rcs_entry = Entry(rcs_conf, textvariable = rcs_percent, width=25) #Perfect Percentage (entrée)
rcs_entry.place(relx=1, x=-243, y=25, anchor=NE) #Perfect Percentage (entrée)
bouton = Button(rcs_conf, text="Submit", font=(40), command= lambda: rcs_conf_save_percent(rcs_entry, rcs_conf)) #Perfect Percentage (boutton)
bouton.place(relx=1, x=-173, y=20, anchor=NE) #Perfect Percentage (boutton)
def rcs_conf_save_percent(rcs_entry, rcs_conf) : #On récupère le texte et on fait apparaître une fenêtre
rcs_percent = rcs_entry.get()
rcs_print = rcs_percent
global rcs_print
print("rcs percent")
print(rcs_percent)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour le Perfect Percentage du rcs
global rcs_percent
create_temp_file()
rcs_conf.mainloop()
def rcs_conf() :
#Création de la fenêtre
rcs_conf = Tk()
w = 400
h = 60
ws = rcs_conf.winfo_screenwidth()
hs = rcs_conf.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
rcs_conf.geometry('%dx%d+%d+%d' % (w, h, x, y))
rcs_conf.title('Recoil Control System Configuration')
rcs_conf.iconbitmap("images/rainbow.ico")
rcs_conf.config(background='#f0f0f0')
#On cherche le nom de la config actuelle
with open("configs/path.txt") as path_txt :
path = path_txt.readline()
path_txt.close()
#On met à jour les valeurs en les changeants par celles de la config choisie si c'est la première fois dans le programme
try :
str(rcs_print)
except Exception as e:
with open("configs/"+path) as config_file :
line_nmb = 1
for line in config_file :
if line_nmb == 15 :
rcs_percent = line
rcs_print = str(rcs_percent)
global rcs_print
if line_nmb >= 16 :
config_file.close()
break
line_nmb = line_nmb + 1
#Création du texte
rcs_percent = " "
label1 = Label(rcs_conf, text = 'Perfect Percentage :', font=(40)) #Perfect Percentage (titre)
label1.place(relx=1, x=-250, y=0, anchor=NE) #Perfect Percentage (titre)
label3 = Label(rcs_conf, text = 'Current value : '+str(rcs_print), font=(40)) #Perfect Percentage (current)
label3.place(relx=1, x=-53, y=0, anchor=NE) #Perfect Percentage (current)
rcs_entry = Entry(rcs_conf, textvariable = rcs_percent, width=25) #Perfect Percentage (entrée)
rcs_entry.place(relx=1, x=-243, y=25, anchor=NE) #Perfect Percentage (entrée)
bouton = Button(rcs_conf, text="Submit", font=(40), command= lambda: rcs_conf_save_percent(rcs_entry, rcs_conf)) #Perfect Percentage (boutton)
bouton.place(relx=1, x=-173, y=20, anchor=NE) #Perfect Percentage (boutton)
def rcs_conf_save_percent(rcs_entry, rcs_conf) : #On récupère le texte et on fait apparaître une fenêtre
rcs_percent = rcs_entry.get()
rcs_print = rcs_percent
global rcs_print
print("rcs percent")
print(rcs_percent)
MessageBox = ctypes.windll.user32.MessageBoxW
MessageBox(None, 'Value updated !', 'Success', 0)
#On met à jour le Perfect Percentage du rcs
global rcs_percent
create_temp_file()
rcs_conf.mainloop()
def bhop_conf() :
global bhop_legit
green = '#0BFF14'
red = '#FF0B0B'
#Création de la fenêtre
bhop_conf = Tk()
w = 280
h = 50
ws = bhop_conf.winfo_screenwidth()
hs = bhop_conf.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
bhop_conf.geometry('%dx%d+%d+%d' % (w, h, x, y))
bhop_conf.title('Bhop Configuration')
bhop_conf.iconbitmap("images/rainbow.ico")
bhop_conf.config(background='#f0f0f0')
if bhop_legit == False :
Bhop_legit_conf = Button(bhop_conf, text="Legit on/off", bg=red, fg='#000000', font=(40), command= lambda: Bhop_legit_conf.configure(background = bhop_legit_color(bhop_conf, green, red, Bhop_legit_conf))) #Aimbot Rage (button)
Bhop_legit_conf.place(relx=1, x=-100, y=8, anchor=NE) #Bhop legit (button)
if bhop_legit == True :
Bhop_legit_conf = Button(bhop_conf, text="Legit on/off", bg=green, fg='#000000', font=(40), command= lambda: Bhop_legit_conf.configure(background = bhop_legit_color(bhop_conf, green, red, Bhop_legit_conf))) #Aimbot Rage (button)
Bhop_legit_conf.place(relx=1, x=-100, y=8, anchor=NE) #Bhop legit (button)
def bhop_legit_color(bhop_conf, green, red, Bhop_legit_conf) :
#Si la couleur du boutton == rouge alors on la change en vert
#Et vice-versa
curent_cl = Bhop_legit_conf.cget('bg')
if curent_cl == red :
bhop_legit = True
global bhop_legit
return green
elif curent_cl == green :
bhop_legit = False
global bhop_legit
return red
buttons(window)
def ragemode_info() :
#Création de la fenêtre
rapidfire_conf = Tk()
w = 400
h = 60
ws = rapidfire_conf.winfo_screenwidth()
hs = rapidfire_conf.winfo_screenheight()
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
rapidfire_conf.geometry('%dx%d+%d+%d' % (w, h, x, y))
rapidfire_conf.title('About the Rage Mode')
rapidfire_conf.iconbitmap("images/rainbow.ico")
rapidfire_conf.config(background='#f0f0f0')
#Création du texte
label1 = Label(rapidfire_conf, text = 'The Rage Mod is a combo of :', font=(40)) #info label 1
label1.place(relx=1, x=-100, y=0, anchor=NE) #info label 1
label2 = Label(rapidfire_conf, text = 'The Rage Aimbot + a rage triggerbot', font=(40)) #info label 2
label2.place(relx=1, x=-75, y=30, anchor=NE) #info label 2
rapidfire_conf.mainloop()
def aimbot(window, green, red, Aimbot) :
#Si la couleur du boutton == rouge alors on la change en vert
#Et vice-versa
curent_cl = Aimbot.cget('bg')
if curent_cl == red :
if aim_rage == False :
#On appelle le aimbot
multiprocessing.freeze_support()
t_ai = Process(target = ai)
global t_ai
t_ai.start()
if aim_rage == True :
multiprocessing.freeze_support()
t_ai_r = Process(target = ai_r)
global t_ai_r
t_ai_r.start()
return green
elif curent_cl == green :
try :
t_ai.terminate()
except :
pass
try :
t_ai_r.terminate()
except :
pass
return red
buttons(window)
def wallhack(window, green, red, Wallhack) :
#Si la couleur du boutton == rouge alors on la change en vert
#Et vice-versa