-
Notifications
You must be signed in to change notification settings - Fork 4
/
vast-LINUX.py
1234 lines (1007 loc) · 48.2 KB
/
vast-LINUX.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
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import os, json, subprocess, sys
if sys.version_info < (3, 7):
print('Please upgrade your Python version to 3.9.0-3.9.8')
print(sys.version_info)
input()
sys.exit()
if sys.version_info > (3, 10):
print('Please downgrade your Python version to 3.9.0-3.9.8')
print(sys.version_info)
input()
sys.exit()
from os import system
if os.name == "nt":
from win10toast import ToastNotifier
elif os.name == "posix":
pass
else:
print("the fuck kind of operating system do you use")
input()
try:
import base64
except:
system("pip install base64")
try:
from random import random
except:
system("pip install random")
try:
from pymongo import MongoClient
except:
system("pip install pymongo")
try:
import fade
except:
system("pip install fade")
try:
from colorama import *
except:
system("pip install colorama")
try:
import datetime
except:
system("pip install datetime")
try:
from time import sleep
except:
system("pip install time")
try:
import ctypes
except:
system("pip install ctypes")
try:
import requests
except:
system("pip install requests")
try:
import threading
except:
system("pip install threading")
try:
from urllib.request import Request, urlopen
except:
system("pip install urllib3")
try:
import re
except:
system("pip install re")
try:
if os.name == "nt":
import webbrowser
if os.name == "posix":
pass
except:
pass
import base64
from random import random
from pymongo import MongoClient
import subprocess
if os.name == "nt":
from win10toast import ToastNotifier
elif os.name == "posix":
pass
else:
print("the fuck kind of operating system do you use")
import fade
from colorama import *
import datetime
import os
from time import sleep
import sys
import time
import json
import ctypes
import requests
import threading
from urllib.request import Request, urlopen
import re
import webbrowser
if os.name == "nt":
toast_noti = ToastNotifier()
Groups = []
try:
lines_seen = set()
with open("data/groups/groups.txt", "r+") as f:
d = f.readlines()
f.seek(0)
for i in d:
if i not in lines_seen:
f.write(i)
lines_seen.add(i)
f.truncate()
except:
pass
def decode(string1, string2, string3, string4):
entire_string = str(string1+string2+string3+string4)
base64_bytes = entire_string.encode('ascii')
message_bytes = base64.b64decode(base64_bytes)
return message_bytes.decode('ascii')
try:
Mongo = MongoClient("mongodb+srv://vast:[email protected]/test?ssl=true&ssl_cert_reqs=CERT_NONE")
mydb=Mongo["Users"]
db = mydb["Whitelisted"]
except Exception as e:
print(e)
sys.exit()
menu = """
::: ::: ::: :::::::: :::::::::::
:+: :+: :+: :+: :+: :+: :+:
+:+ +:+ +:+ +:+ +:+ +:+
+#+ +:+ +#++:++#++: +#++:++#++ +#+
+#+ +#+ +#+ +#+ +#+ +#+
#+#+#+# #+# #+# #+# #+# #+#
### ### ### ######## ###
+══════════════════════════════╦════════════════════════════════+
| [1] Group Creator | [6] Mass PFP Change |
| [2] Add/Remove People | [7] Group Count |
| [3] Change Token | [8] Change Colors |
| [4] Transfer Groups | [9] Call Crasher |
| [5] Name Changer | [10] Multi-Group Creator |
+══════════════════════════════╧════════════════════════════════+
"""
colours = """
::: ::: ::: :::::::: :::::::::::
:+: :+: :+: :+: :+: :+: :+:
+:+ +:+ +:+ +:+ +:+ +:+
+#+ +:+ +#++:++#++: +#++:++#++ +#+
+#+ +#+ +#+ +#+ +#+ +#+
#+#+#+# #+# #+# #+# #+# #+#
### ### ### ######## ###
+══════════════════════════════╦════════════════════════════════+
| [1] Black & White | [5] Pink & Red |
| [2] Purple & Pink | [6] Purple & Blue |
| [3] Green & Blue | [7] Brazil |
| [4] Water | [8] Random |
+══════════════════════════════╧════════════════════════════════+
"""
text = """
::: ::: ::: :::::::: :::::::::::
:+: :+: :+: :+: :+: :+: :+:
+:+ +:+ +:+ +:+ +:+ +:+
+#+ +:+ +#++:++#++: +#++:++#++ +#+
+#+ +#+ +#+ +#+ +#+ +#+
#+#+#+# #+# #+# #+# #+# #+#
### ### ### ######## ###
"""
default_text = fade.greenblue(text)
class Authentication:
def get_uuid():
if os.name == "nt":
cmd = 'wmic csproduct get uuid'
uuid = str(subprocess.check_output(cmd))
pos1 = uuid.find("\\n")+2
uuid = uuid[pos1:-15]
return uuid.rstrip()
elif os.name == "posix":
cmd = 'sudo dmidecode -s system-uuid' #make this run and do output on linux :crylaugh:
def check_whitelist():
check = db.count_documents({"uuid": Authentication.get_uuid()})
if check >= 1:
return True
else:
return False
def get_user(key:str):
does_user_exist = Authentication.check_whitelist()
if does_user_exist:
user = {"uuid": Authentication.get_uuid()}
try:
return db.find_one(user)[key]
except:
pass
else:
return False
def license_config(key):
try:
with open("data/config/license.json") as f:
li_conf = json.load(f)
return li_conf.get(key)
except:
pass
def config(key):
try:
with open("data/config/config.json") as f:
li_conf = json.load(f)
return li_conf.get(key)
except:
pass
def update_title(title, token=None):
if token == None:
try:
if os.name == "nt":
ctypes.windll.kernel32.SetConsoleTitleW(f"{title}")
if os.name == "posix":
print(f'\33]0;{title}\a', end='', flush=True)
except:
pass
else:
h = {'Authorization': token, 'Content-Type': 'application/json'}
r = requests.get(f'https://discord.com/api/v9/users/@me', headers=h)
if r.status_code == 200:
username = r.json()['username']+'#'+r.json()['discriminator']
try:
if os.name == "nt":
ctypes.windll.kernel32.SetConsoleTitleW(f"{title} • Logged in as {username}")
if os.name == "posix":
print(f'\33]0;{title} • Logged in as {username}\a', end='', flush=True)
except:
pass
else:
try:
if os.name == "nt":
ctypes.windll.kernel32.SetConsoleTitleW(f"{title} • Logged in as INVALID TOKEN")
if os.name == "posix":
print(f'\33]0;{title} • Logged in as INVALID TOKEN\a', end='', flush=True)
except:
pass
def percentage(part, whole):
percentage = 100 * float(part)/float(whole)
return str(percentage)[:-13]
def print_menu():
if config("menu") == "blackwhite": print(fade.blackwhite(menu))
if config("menu") == "purplepink": print(fade.purplepink(menu))
if config("menu") == "greenblue": print(fade.greenblue(menu))
if config("menu") == "water": print(fade.water(menu))
if config("menu") == "pinkred": print(fade.pinkred(menu))
if config("menu") == "purpleblue": print(fade.purpleblue(menu))
if config("menu") == "brazil": print(fade.brazil(menu))
if config("menu") == "random": print(fade.random(menu))
def print_text():
if config("menu") == "blackwhite": print(fade.blackwhite(text))
if config("menu") == "purplepink": print(fade.purplepink(text))
if config("menu") == "greenblue": print(fade.greenblue(text))
if config("menu") == "water": print(fade.water(text))
if config("menu") == "pinkred": print(fade.pinkred(text))
if config("menu") == "purpleblue": print(fade.purpleblue(text))
if config("menu") == "brazil": print(fade.brazil(text))
if config("menu") == "random": print(fade.random(text))
def print_colours():
if config("menu") == "blackwhite": print(fade.blackwhite(colours))
if config("menu") == "purplepink": print(fade.purplepink(colours))
if config("menu") == "greenblue": print(fade.greenblue(colours))
if config("menu") == "water": print(fade.water(colours))
if config("menu") == "pinkred": print(fade.pinkred(colours))
if config("menu") == "purpleblue": print(fade.purpleblue(colours))
if config("menu") == "brazil": print(fade.brazil(colours))
if config("menu") == "random": print(fade.random(colours))
def trigger_notification(title, description):
try:
toast_noti.show_toast(f'{title}', description, icon_path="data/images/logo.ico", duration=6, threaded=True)
except:
pass
def get_time():
now = datetime.datetime.now()
current_time = now.strftime("%H:%M")
return current_time
def clear():
if os.name != 'nt':
os.system('clear')
else:
os.system('cls')
def print_with_ends(content):
colour = config("menu")
if colour == "blackwhite":
print(f" {Fore.LIGHTWHITE_EX}[{get_time()}]{Fore.RESET} {Fore.LIGHTWHITE_EX}=>{Fore.WHITE} {content}",end='')
elif colour == "purplepink":
print(f" {Fore.LIGHTMAGENTA_EX}[{get_time()}]{Fore.RESET} {Fore.LIGHTMAGENTA_EX}=>{Fore.WHITE} {content}",end='')
elif colour == "greenblue":
print(f" {Fore.LIGHTCYAN_EX}[{get_time()}]{Fore.RESET} {Fore.LIGHTCYAN_EX}=>{Fore.WHITE} {content}",end='')
elif colour == "water":
print(f" {Fore.LIGHTBLUE_EX}[{get_time()}]{Fore.RESET} {Fore.LIGHTBLUE_EX}=>{Fore.WHITE} {content}",end='')
elif colour == "pinkred":
print(f" {Fore.LIGHTRED_EX}[{get_time()}]{Fore.RESET} {Fore.LIGHTRED_EX}=>{Fore.WHITE} {content}",end='')
elif colour == "purpleblue":
print(f" {Fore.LIGHTBLUE_EX}[{get_time()}]{Fore.RESET} {Fore.LIGHTBLUE_EX}=>{Fore.WHITE} {content}",end='')
elif colour == "brazil":
print(f" {Fore.LIGHTGREEN_EX}[{get_time()}]{Fore.RESET} {Fore.LIGHTGREEN_EX}=>{Fore.WHITE} {content}",end='')
elif colour == "random":
print(f" {Fore.LIGHTWHITE_EX}[{get_time()}]{Fore.RESET} {Fore.LIGHTWHITE_EX}=>{Fore.WHITE} {content}",end='')
else:
print(f" {Fore.LIGHTCYAN_EX}[{get_time()}]{Fore.RESET} {Fore.LIGHTCYAN_EX}=>{Fore.WHITE} {content}",end='')
def print_module(name):
colour = config("menu")
if colour == "blackwhite":
print(f" {Fore.LIGHTWHITE_EX} {name}\n")
elif colour == "purplepink":
print(f" {Fore.LIGHTMAGENTA_EX} {name}\n")
elif colour == "greenblue":
print(f" {Fore.LIGHTCYAN_EX} {name}\n")
elif colour == "water":
print(f" {Fore.LIGHTBLUE_EX} {name}\n")
elif colour == "pinkred":
print(f" {Fore.LIGHTRED_EX} {name}\n")
elif colour == "purpleblue":
print(f" {Fore.LIGHTBLUE_EX} {name}\n")
elif colour == "brazil":
print(f" {Fore.LIGHTGREEN_EX} {name}\n")
elif colour == "random":
print(f" {Fore.LIGHTWHITE_EX} {name}\n")
else:
print(f" {Fore.LIGHTCYAN_EX} {name}\n")
def print_group_create(name, group_id):
colour = config("menu")
if colour == "blackwhite":
print(f" Group Created - {Fore.LIGHTWHITE_EX}{name}{Fore.RESET} | {Fore.LIGHTWHITE_EX}{group_id} ")
elif colour == "purplepink":
print(f" Group Created - {Fore.LIGHTMAGENTA_EX}{name}{Fore.RESET} | {Fore.LIGHTMAGENTA_EX}{group_id} ")
elif colour == "greenblue":
print(f" Group Created - {Fore.LIGHTCYAN_EX}{name}{Fore.RESET} | {Fore.LIGHTCYAN_EX}{group_id} ")
elif colour == "water":
print(f" Group Created - {Fore.LIGHTBLUE_EX}{name}{Fore.RESET} | {Fore.LIGHTBLUE_EX}{group_id} ")
elif colour == "pinkred":
print(f" Group Created - {Fore.LIGHTRED_EX}{name}{Fore.RESET} | {Fore.LIGHTRED_EX}{group_id} ")
elif colour == "purpleblue":
print(f" Group Created - {Fore.LIGHTBLUE_EX}{name}{Fore.RESET} | {Fore.LIGHTBLUE_EX}{group_id} ")
elif colour == "brazil":
print(f" Group Created - {Fore.LIGHTGREEN_EX}{name}{Fore.RESET} | {Fore.LIGHTGREEN_EX}{group_id} ")
elif colour == "random":
print(f" Group Created - {Fore.LIGHTWHITE_EX}{name}{Fore.RESET} | {Fore.LIGHTWHITE_EX}{group_id} ")
else:
print(f" Group Created - {Fore.LIGHTCYAN_EX}{name}{Fore.RESET} | {Fore.LIGHTCYAN_EX}{group_id} ")
#this dont work btw
def vast_print(content):
colour = config("menu")
if colour == "blackwhite":
print(f" {Fore.LIGHTWHITE_EX}[{get_time()}]{Fore.RESET} {Fore.RED}=>{Fore.WHITE} {content}")
elif colour == "purplepink":
print(f" {Fore.LIGHTMAGENTA_EX}[{get_time()}]{Fore.RESET} {Fore.RED}=>{Fore.WHITE} {content}")
elif colour == "greenblue":
print(f" {Fore.LIGHTCYAN_EX}[{get_time()}]{Fore.RESET} {Fore.RED}=>{Fore.WHITE} {content}")
elif colour == "water":
print(f" {Fore.LIGHTBLUE_EX}[{get_time()}]{Fore.RESET} {Fore.RED}=>{Fore.WHITE} {content}")
elif colour == "pinkred":
print(f" {Fore.LIGHTRED_EX}[{get_time()}]{Fore.RESET} {Fore.RED}=>{Fore.WHITE} {content}")
elif colour == "purpleblue":
print(f" {Fore.LIGHTBLUE_EX}[{get_time()}]{Fore.RESET} {Fore.RED}=>{Fore.WHITE} {content}")
elif colour == "brazil":
print(f" {Fore.LIGHTGREEN_EX}[{get_time()}]{Fore.RESET} {Fore.RED}=>{Fore.WHITE} {content}")
elif colour == "random":
print(f" {Fore.LIGHTWHITE_EX}[{get_time()}]{Fore.RESET} {Fore.RED}=>{Fore.WHITE} {content}")
else:
print(f" {Fore.LIGHTCYAN_EX}[{get_time()}]{Fore.RESET} {Fore.RED}=>{Fore.WHITE} {content}")
def print_menu_choice():
colour = config("menu")
if colour == "blackwhite":
print(f" {Fore.LIGHTWHITE_EX}Menu Choice => ", end='')
elif colour == "purplepink":
print(f" {Fore.LIGHTMAGENTA_EX}Menu Choice => ", end='')
elif colour == "greenblue":
print(f" {Fore.LIGHTCYAN_EX}Menu Choice => ", end='')
elif colour == "water":
print(f" {Fore.LIGHTBLUE_EX}Menu Choice => ", end='')
elif colour == "pinkred":
print(f" {Fore.LIGHTRED_EX}Menu Choice => ", end='')
elif colour == "purpleblue":
print(f" {Fore.LIGHTBLUE_EX}Menu Choice => ", end='')
elif colour == "brazil":
print(f" {Fore.LIGHTGREEN_EX}Menu Choice => ", end='')
elif colour == "random":
print(f" {Fore.LIGHTWHITE_EX}Menu Choice => ", end='')
else:
print(f" {Fore.LIGHTCYAN_EX}Menu Choice => ", end='')
def print_colour_choice():
colour = config("menu")
if colour == "blackwhite":
print(f" {Fore.LIGHTWHITE_EX}Colour Choice => ", end='')
elif colour == "purplepink":
print(f" {Fore.LIGHTMAGENTA_EX}Colour Choice => ", end='')
elif colour == "greenblue":
print(f" {Fore.LIGHTCYAN_EX}Colour Choice => ", end='')
elif colour == "water":
print(f" {Fore.LIGHTBLUE_EX}Colour Choice => ", end='')
elif colour == "pinkred":
print(f" {Fore.LIGHTRED_EX}Colour Choice => ", end='')
elif colour == "purpleblue":
print(f" {Fore.LIGHTBLUE_EX}Colour Choice => ", end='')
elif colour == "brazil":
print(f" {Fore.LIGHTGREEN_EX}Colour Choice => ", end='')
elif colour == "random":
print(f" {Fore.LIGHTWHITE_EX}Colour Choice => ", end='')
else:
print(f" {Fore.LIGHTCYAN_EX}Colour Choice => ", end='')
def change_colours():
update_title(f"Vast Spammer • Change Colour", config('token'))
clear()
print_colours()
print_colour_choice()
choice = int(input())
if choice == 1:
colour = "blackwhite"
elif choice == 2:
colour = "purplepink"
elif choice == 3:
colour = "greenblue"
elif choice == 4:
colour = "water"
elif choice == 5:
colour = "pinkred"
elif choice == 6:
colour = "purpleblue"
elif choice == 7:
colour = "brazil"
elif choice == 8:
colour = "random"
else:
change_colours()
data = {
"token": config("token"),
"menu": colour
}
json.dump(data, open("data/config/config.json","w+"), indent=4)
def percentage(part, whole):
percentage = 100 * float(part)/float(whole)
return str(percentage)[:-13]
def add_groups():
Groups.clear()
if os.path.exists('data/groups/groups.txt'):
with open("data/groups/groups.txt", "r") as f:
for line in f:
Groups.append(line.strip().replace("\n", ""))
def one_token_create():
update_title(f"Vast Spammer • Group Creator", config('token'))
clear()
print_text()
print_module("Group Creator")
print_with_ends(f"Group Icon (Smaller image = quicker): ")
icon = input()
if '"' in icon: icon = icon.split('"')
clear()
print_text()
vast_print("Started Group Creator, it will stop creating group chats when you close the program")
trigger_notification("Group Creator", "Started")
sleep(3)
token = config('token')
while True:
for i in range(10):
try:
group = requests.post("https://discord.com/api/v9/users/@me/channels", headers={"Authorization": token, "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4609.3 Safari/537.36", "Content-Type": "application/json"}, json={"recipients":[], "name": "balls"})
try:
group_id = group.json()['id']
open("data/groups/groups.txt", "a+").write(f"\n{group_id}")
worked = True
except:
worked = False
if worked == False:
vast_print("Group spammer stopped due to ratelimit.")
time.sleep(1)
trigger_notification("Group Creator Ratelimit", f"Trying again in {group.json()['retry_after']} seconds")
time.sleep(5)
elif worked == True:
def send(group_id):
headers={"Authorization": token, "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4609.3 Safari/537.36", "Content-Type": "application/json"}
messagedata = {"content":"xeny, jonah & qoft were here <33 \n ```vast on top``` |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| @everyone discord.gg/Hwj7ETmuJy","nonce":"","tts":"true"}
send_msg = requests.post(f"https://discord.com/api/v9/channels/{group_id}/messages", json=messagedata, headers=headers)
if send_msg.status_code == 429:
sleep(2)
send(group_id)
def edit(group_id):
headers={"Authorization": token, "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4609.3 Safari/537.36", "Content-Type": "application/json"}
with open(icon, "rb") as image_file:
encoded_string = base64.b64encode(image_file.read())
encoded_string = encoded_string.decode('utf-8')
#edit = {"name": name, "icon": "data:image/png;base64," + encoded_string}
namae = os.urandom(random.randint(20,40)).hex()
edit = {"name": namae, "icon": "data:image/png;base64," + encoded_string}
# xeny here to save the day!! if u use a specific name then its easy asf to make a script which leaves all groups with that name.
# its much better to use a random hex
# its even safer to have the hex a random length so nobody can leave all groups with a certain length
# :Catkiss: (life tip #584)
edit_grp = requests.patch(f"https://discord.com/api/v9/channels/{group_id}", json=edit, headers=headers)
if edit_grp.status_code == 429:
time.sleep(2)
edit(group_id)
print_group_create(namae, group_id)
edit(group_id)
send(group_id)
except:
pass
time.sleep(600)
def namechanger(token, group_id, name):
try:
headers = {
"Authorization":
token,
"accept":
"*/*",
"accept-language":
"en-US",
"connection":
"keep-alive",
"cookie":
f'__cfduid={os.urandom(43).hex()}; __dcfduid={os.urandom(32).hex()}; locale=en-US',
"DNT":
"1",
"origin":
"https://discord.com",
"sec-fetch-dest":
"empty",
"sec-fetch-mode":
"cors",
"sec-fetch-site":
"same-origin",
"referer":
"https://discord.com/channels/@me",
"TE":
"Trailers",
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9001 Chrome/83.0.4103.122 Electron/9.3.5 Safari/537.36",
"X-Super-Properties":
"eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiRGlzY29yZCBDbGllbnQiLCJyZWxlYXNlX2NoYW5uZWwiOiJzdGFibGUiLCJjbGllbnRfdmVyc2lvbiI6IjEuMC45MDAxIiwib3NfdmVyc2lvbiI6IjEwLjAuMTkwNDIiLCJvc19hcmNoIjoieDY0Iiwic3lzdGVtX2xvY2FsZSI6ImVuLVVTIiwiY2xpZW50X2J1aWxkX251bWJlciI6ODMwNDAsImNsaWVudF9ldmVudF9zb3VyY2UiOm51bGx9"
}
edit = {"name": f"{name}"}
edit_grp = requests.patch(f"https://discord.com/api/v9/channels/{group_id}", json=edit, headers=headers)
if edit_grp.status_code == 429:
sleep(1)
edit(group_id)
except Exception as e:
if "Max retries" in str(e):
vast_print("Unable to connect to discord.com")
if "429" in str(e):
vast_print("Too many requests")
def pfpchanger(token, group_id, imgb64):
try:
headers = {
"Authorization":
token,
"accept":
"*/*",
"accept-language":
"en-US",
"connection":
"keep-alive",
"cookie":
f'__cfduid={os.urandom(43).hex()}; __dcfduid={os.urandom(32).hex()}; locale=en-US',
"DNT":
"1",
"origin":
"https://discord.com",
"sec-fetch-dest":
"empty",
"sec-fetch-mode":
"cors",
"sec-fetch-site":
"same-origin",
"referer":
"https://discord.com/channels/@me",
"TE":
"Trailers",
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9001 Chrome/83.0.4103.122 Electron/9.3.5 Safari/537.36",
"X-Super-Properties":
"eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiRGlzY29yZCBDbGllbnQiLCJyZWxlYXNlX2NoYW5uZWwiOiJzdGFibGUiLCJjbGllbnRfdmVyc2lvbiI6IjEuMC45MDAxIiwib3NfdmVyc2lvbiI6IjEwLjAuMTkwNDIiLCJvc19hcmNoIjoieDY0Iiwic3lzdGVtX2xvY2FsZSI6ImVuLVVTIiwiY2xpZW50X2J1aWxkX251bWJlciI6ODMwNDAsImNsaWVudF9ldmVudF9zb3VyY2UiOm51bGx9"
}
edit = {"icon": "data:image/png;base64," + imgb64}
edit_grp = requests.patch(f"https://discord.com/api/v9/channels/{group_id}", json=edit, headers=headers)
if edit_grp.status_code == 429:
time.sleep(2)
edit(group_id)
except Exception as e:
pass
def groupadder(token, group_id, user_id, user_choice):
try:
headers = {
"Authorization":
token,
"accept":
"*/*",
"accept-language":
"en-US",
"connection":
"keep-alive",
"cookie":
f'__cfduid={os.urandom(43).hex()}; __dcfduid={os.urandom(32).hex()}; locale=en-US',
"DNT":
"1",
"origin":
"https://discord.com",
"sec-fetch-dest":
"empty",
"sec-fetch-mode":
"cors",
"sec-fetch-site":
"same-origin",
"referer":
"https://discord.com/channels/@me",
"TE":
"Trailers",
"User-Agent":
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0.9001 Chrome/83.0.4103.122 Electron/9.3.5 Safari/537.36",
"X-Super-Properties":
"eyJvcyI6IldpbmRvd3MiLCJicm93c2VyIjoiRGlzY29yZCBDbGllbnQiLCJyZWxlYXNlX2NoYW5uZWwiOiJzdGFibGUiLCJjbGllbnRfdmVyc2lvbiI6IjEuMC45MDAxIiwib3NfdmVyc2lvbiI6IjEwLjAuMTkwNDIiLCJvc19hcmNoIjoieDY0Iiwic3lzdGVtX2xvY2FsZSI6ImVuLVVTIiwiY2xpZW50X2J1aWxkX251bWJlciI6ODMwNDAsImNsaWVudF9ldmVudF9zb3VyY2UiOm51bGx9"
}
if user_choice == "add":
requests.put(f"https://discord.com/api/v9/channels/{group_id}/recipients/{user_id}", headers=headers)
#group3 = requests.put("https://discord.com/api/v9/channels/898665952563060807/recipients/898634379348279297", headers=headers)
if user_choice == "remove":
requests.delete(f"https://discord.com/api/v9/channels/{group_id}/recipients/{user_id}", headers=headers)
except Exception as e:
print(e)
def check(token):
h = {'Authorization': str(token), 'Content-Type': 'application/json'}
r = requests.get(f'https://discord.com/api/v9/users/@me', headers=h)
if r.status_code == 200:
return r.json()['id']
def multi_account_create(token, user_id, transfer_id):
for _ in range(10):
try:
group = requests.post("https://discord.com/api/v9/users/@me/channels", headers={"Authorization": token, "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4609.3 Safari/537.36", "Content-Type": "application/json"}, json={"recipients":[], "name": "balls"})
try:
group_id = group.json()['id']
open("data/groups/groups.txt", "a+").write(f"{group_id}\n")
worked = True
except:
worked = False
if group.status_code == 401 or 429 or 403:
vast_print("IP Blacklisted by discord. Please connect/reconnect to a VPN")
else:
pass
if worked == False:
break
elif worked == True:
groupadder(token, group_id, transfer_id, "add")
def send(group_id):
headers={"Authorization": token, "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4609.3 Safari/537.36", "Content-Type": "application/json"}
messagedata = {"content":"xeny, jonah & qoft were here\n ```vast on top``` |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| @everyone https://www.youtube.com/watch?v=pA_wzHc4q6M","nonce":"","tts":"true"}
send_msg = requests.post(f"https://discord.com/api/v9/channels/{group_id}/messages", json=messagedata, headers=headers)
if send_msg.status_code == 429:
time.sleep(2)
send(group_id)
send(group_id)
groupadder(token, group_id, user_id, "remove")
except Exception as e:
pass
def get_groups():
add_groups()
count = 0
for group_id in Groups:
count = count + 1
trigger_notification("Group Count", f"{count} groups")
def main_menu():
amount = 0
token = config('token')
update_title(f"Vast Spammer • Main Menu", token)
clear()
print_menu()
print_menu_choice()
choice = input()
try:
choice = int(choice)
except:
main_menu()
if choice == 1:
clear()
one_token_create()
main_menu()
elif choice == 2:
update_title(f"Vast Spammer • Add/Remove", token)
clear()
print_text()
print_module("Add/Remove Users")
print_with_ends(f"User ID: ")
user_id = input()
print_with_ends(f"Add or Remove: ")
user_choice = input().lower()
clear()
print_text()
vast_print("Started add/remove users module.")
start = time.perf_counter()
if user_choice == "add":
user_print = "Added"
elif user_choice == "remove":
user_print = "Removed"
group_amount = 0
sex = open("data/groups/groups.txt", "r")
for line in sex:
if line != "\n":
group_amount += 1
sex.close()
with open("data/groups/groups.txt","r") as f:
# dont look at this im retarded
for line in f:
amount += 1
sleep(0.02)
update_title(f"Vast Spammer • Add/Remove • {user_print} {amount}/{group_amount} times • {percentage(amount, group_amount)}% Done")
stripped_line = line.strip()
group_id = stripped_line.replace("\n", "")
threading.Thread(target=groupadder, args=[token, group_id, user_id, user_choice]).start()
finish = time.perf_counter()
trigger_notification("Add/Remove User", f"Completed task in {round(finish-start, 2)} seconds")
main_menu()
elif choice == 3:
update_title(f"Vast Spammer • Change Token", token)
clear()
print_text()
print_module("Change Token")
print_with_ends(f"New Token: ")
token = input()
if '"' in token: token = token.split('"')[1]
menuC = config("menu")
data = {
"token": token,
"menu": menuC
}
json.dump(data, open("data/config/config.json","w+"), indent=4)
trigger_notification("Vast Spammer", "Token changed")
main_menu()
elif choice == 4:
update_title(f"Vast Spammer • Transfer Groups", token)
clear()
print_text()
print_module("Transfer Groups")
vast_print("All groups must only have you in it.")
sleep(2)
print_with_ends("Do all your groups have only you in them? (yes/no): ")
check_input = input().lower()
if check_input == "no":
vast_print("Please remove everyone from the groups, then run this module again.")
sleep(4)
main_menu()
elif check_input == "yes":
print()
print_with_ends("Are you friends with the user you want to transfer to? (yes/no): ")
check_input = input().lower()
if check_input == "no":
vast_print("Please add the user, then run this module again.")
sleep(4)
main_menu()
elif check_input == "yes":
print_with_ends("User ID you want to transfer to: ")
transfer_id = input()
print()
vast_print("Getting your ID.....")
h = {'Authorization': token, 'Content-Type': 'application/json'}
r = requests.get(f'https://discord.com/api/v9/users/@me', headers=h)
try:
user_id = r.json()["id"]
vast_print(f"Fetched ID: {user_id}")
except:
vast_print("Invalid token....")
sleep(2)
main_menu()
sleep(2)
clear()
print_text()
print_module("Transfer Groups")
try:
get_uinfo = requests.get(f"https://discord.com/api/v9/users/{transfer_id}", headers={"Authorization": config("token")}).json()
username = get_uinfo["username"]+"#"+get_uinfo["discriminator"]
except:
vast_print("Invalid Transfer ID....")
sleep(2)
main_menu()
vast_print(f"Group Owner ID: {user_id}")
vast_print(f"Started transferring groups to {username}.")
print()
vast_print(f"Adding {username} to group chats")
with open("data/groups/groups.txt","r") as f:
for line in f:
amount += 1
update_title(f"Vast Spammer • Transfer Groups • Transfered {amount} groups")
sleep(0.02)
stripped_line = line.strip()
group_id = stripped_line.replace("\n", "")
t = threading.Thread(target=groupadder, args=[token, group_id, transfer_id, "add"])
t.start()
vast_print("Leaving group chats....")
with open("data/groups/groups.txt","r") as f:
for line in f:
sleep(0.02)
stripped_line = line.strip()
group_id = stripped_line.replace("\n", "")
t = threading.Thread(target=groupadder, args=[token, group_id, user_id, "remove"])
t.start()
else:
vast_print("Not a valid option..")
main_menu()
elif choice == 5: # Name Changer
update_title(f"Vast Spammer • Name Changer", token)