-
Notifications
You must be signed in to change notification settings - Fork 0
/
scan.py
908 lines (879 loc) · 52.8 KB
/
scan.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
#-------------------------------------------------------------
# Dúvidas? | \
# Ideias? | Me chame no telegram: https://t.me/rdzin9
# Bugs? | /
#-------------------------------------------------------------
import os
import sys
import re
import random
import requests
import bs4
import fake_useragent
import datetime
from time import sleep
from BanerScan import BanerScan, Searching
__AUTOR__ = "NANO"
__TELEGRAM__ = "https://t.me/rdzin9"
__VERSIONS__ = 1.0
class GetDadosUsuario:
""" ETAPA 1 """
def __init__(self,option=False,wordlist=False,dork=False,sizes=0):
BanerScan()
""" CONSTRUÇÃO DA ETAPA 1 """
self.option = option
self.wordlist = wordlist
self.dork = dork
self.sizes = sizes
self.Requisicao = requests.Session()
self.UsersAgent = [fake_useragent.UserAgent()["google chrome"],fake_useragent.UserAgent().ff,fake_useragent.UserAgent().firefox,fake_useragent.UserAgent()["safari"]]
self.NumPagesSchsWeb = []
self.LinksFiltrados1 = []
self.LinksFiltrados2 = []
self.LinksParaTestes = []
self.DorksBuscasWebs = []
self.ErrorsSQL = [
"SQL",
"sql",
"Aviso: mysql_fetch_array()",
"NoSql",
"nosql",
"noSQL",
"noSql",
"noSqL",
"sintaxe SQL",
"SINTAXE SQL",
"MySql",
"Warning: mysql_connect()"
]
self.HeadersChromium = {'UserAgent':self.UsersAgent[random.randint(0,3)],"'referer'":"'https://www.google.com/'"}
# MÉTODO PARA CAPTURAR OS LINKS NAS PÁGINAS DE BUSCA
def FiltrarURL(self):
""" FILTRANDO TODAS AS URLS RECEBIDAS PELA CONEXÃO """
self.RealLinkBuscaDork1 = "https://br.search.yahoo.com/search?ei=UTF-8&fr=crmas&p="
self.Timesout = 10
if self.option == "-d":
self.RealLinkBuscaDork2 = self.dork.replace(":","%3A")
self.RealLinkBuscaDork3 = self.RealLinkBuscaDork2.replace("?","%3F")
self.RealLinkBuscaDork4 = self.RealLinkBuscaDork3.replace("=","%3D&")
self.RealLinkBuscaDork5 = self.RealLinkBuscaDork4
self.RealLinkBuscaDork6 = self.RealLinkBuscaDork1+self.RealLinkBuscaDork5
elif self.option == "Wordlist":
if self.wordlist == True:
self.RealLinkBuscaDork2 = self.dork.replace(":","%3A")
self.RealLinkBuscaDork3 = self.RealLinkBuscaDork2.replace("?","%3F")
self.RealLinkBuscaDork4 = self.RealLinkBuscaDork3.replace("=","%3D&")
self.RealLinkBuscaDork5 = self.RealLinkBuscaDork4
self.RealLinkBuscaDork6 = self.RealLinkBuscaDork1+self.RealLinkBuscaDork5
print("\033[1;32m[{}]\033[m \033[1;36m[*]\033[m \033[1;33mDorks carregadas:\033[m \033[1;4;31m{}\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),self.sizes))
self.CookiesGoogle = {
"1P_JAR":"2024-06-24-23",
"AEC":"AQTF6HxkLdh9L5h_xMUL7yZdFGFmpWDnaCTbE706ZZM9ysby8SgK3A3lPsQ",
"APISID":"me2_C91mNmk2T4ea/A9MTv7jYwQbL_MC8D",
"DV":"M7Mjtrqpj91T0MwzaUe0CfwwkOLIBFlpedIjqK-QNgEAAFDp7JXFwc47TgAAAKhfz8hqWLzWHAAAALn1Nrq_BAmKEgAAAA",
"HSID":"AU5PtybEnuyCQTbMd",
"NID":"515=T8iJKxtcGN9lrTUhHzEdpz__5E2d5Bh3tXjpAOoBDLN_FUmhYOOuo4wJ9ak8ll-g7EfVwJ9Gfs1bR8U1cvBVy0-6aQAmTTVK7kf56iF_wAaO7Tp_WlOzVFj9IVIUv7DvhX9KPDl3JBjnMD9O4gySMZKGkZHJ_gqQtgjPz7XYMk0CSRMTyMc3ili4iXnQsCUMA53UadQ_Rem0-ZgNbYpJBJdm66Rt7GhX8o4QWp1fQ1ZW0hVjHSMjJqzy-5PTiwTEkpUcwdgeHIECqgK7C0oBgLSOHVWHgitB_o9momshwfxBanoO7xkF5lPOrDCAyAobLX-hR-s238Oa0XHEPZP5T1MMdg6Gs0jUgEtLiMUPF-gu2q9QkwEbh9Wrrz9WxnZdUwuqTmGU2Sn7wpgfwuH7RJDo1Xn5iiC0nFpNvt3uDtlK_Yw3DYnhDuhzd1-y71NI6UiZBIYvx2JmUZ1PSBQdAo0d53sY1kolqFckVRoMwKvBSMuhZdkgDxVF7NwJVVxPFhZL9zwYsbmHd-R7IxUmQlKKmO0MWsn3",
"OSID":"g.a000gQimVXRiO29aP4uNI90Hb-L_r7Umosdy2VhCUrejYMjCq67ObmI7Vbo9LGOBC1PWTmFvJQACgYKAf0SAQASFQHGX2MieIxZe65negwacLSyFB6nERoVAUF8yKogCRVNp4xtUxpYUnNjmJzf0076",
"SAPISID":"SAPISID",
"SEARCH_SAMESITE":"CgQIy5oB",
"SID":"g.a000lAimVdYFeeEowSBrNRE1eejNm1GwRWfQMKltl6e4H7ydosrk4dv0P_jxOO9xPouuh_fspwACgYKAWgSARESFQHGX2Mil0hnCMDtxg3r2VotN3kvvBoVAUF8yKpu1J71SW2IZoYCELtQm_V60076",
"SIDCC":"AKEyXzXJzh9k732p12uD5lQYwrqv9CUwRpUAYYF5gKNrHeNhNnNl-5KXh72x2IGqGtQYhhxrM7I",
"SSID":"AaKhRtTK8La-AGJVF",
"__Secure-1PAPISID":"TqUlNBySdVnw27az/A17YUa39ImUc3sKZm",
"__Secure-1PSID":"g.a000lAimVdYFeeEowSBrNRE1eejNm1GwRWfQMKltl6e4H7ydosrk9Qc3Q7Udr_HFxyXD8rQpKAACgYKAVkSARESFQHGX2MipYrvMFqlZFAeMOBXZGnElhoVAUF8yKrntQY0gHIdcm6h9j9sf_wq0076",
"__Secure-1PSIDCC":"AKEyXzVQ-qCpdHN0UuwmC8Z_HfDy97bxsNsbsuHJjLEzcMoOsvXiskV1N4lFIpDI4lrQIR2Uur4",
"__Secure-1PSIDTS":"sidts-CjIB3EgAEjOIfFEaTj_8K_nGosatZ1J5X9VEn-Y_nn4WiCrTHOfBA33TUBPVZyaeTzydjBAA",
"__Secure-3PAPISID":"TqUlNBySdVnw27az/A17YUa39ImUc3sKZm",
"__Secure-3PSID":"g.a000lAimVdYFeeEowSBrNRE1eejNm1GwRWfQMKltl6e4H7ydosrkrggLb-5R_4fdbeWHTyWX3wACgYKAZUSARESFQHGX2MiDi_5HAJWYISp9hAFLzrqsBoVAUF8yKp02yVgdYAGHfU0Tc-5gZ_u0076",
"__Secure-3PSIDCC":"AKEyXzUGmEqw3ka9QAgYzuVyEERZKhV3-AYMe0phBF2Sy02bpJBxR3VM1MB0PnrfzWoz4y4GxQ",
"__Secure-3PSIDTS":"sidts-CjIB3EgAEjOIfFEaTj_8K_nGosatZ1J5X9VEn-Y_nn4WiCrTHOfBA33TUBPVZyaeTzydjBAA",
"__Secure-OSID":"g.a000gQimVXRiO29aP4uNI90Hb-L_r7Umosdy2VhCUrejYMjCq67OyoT5CWNh5Fj-QpYZ38hyxgACgYKARoSAQASFQHGX2MiDAAosHP6P2aM3uS-PGWCKRoVAUF8yKoaMWQw9w_0eyVkqdqrhaCJ0076",
"_ga":"GA1.1.1761629692.1707431141",
"_ga_6VGGZHMLM2":"GS1.1.1707431141.1.0.1707431141.0.0.0",
}
self.proxy1 = {"27.54.71.234":"8080"}
self.proxy2 = {"45.173.231.15":"999"}
# PEGAR PÁGINAS DE PESQUISA NO NAVEGADOR:
def GetPagesSearch(self):
print("\033[1;32m[{}]\033[m \033[1;36m[*]\033[m \033[1;33mBuscas Iniciadas!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(2)
BanerScan()
Searching()
print("\033[1;32m[{}]\033[m \033[1;36m[*]\033[m \033[1;33mBuscando com a dork: \033[m\033[1;4m{}\033[m\n".format(datetime.datetime.now().strftime("%H:%M:%S"),self.dork))
self.IniciarBuscaPage = self.Requisicao.get(self.RealLinkBuscaDork6,headers=self.HeadersChromium,cookies=self.CookiesGoogle,proxies=self.proxy1)
self.BuscasPaginasWEB = bs4.BeautifulSoup(self.IniciarBuscaPage.text,"html.parser")
# AQUI RETORNA AS PÁGINAS DE BUSCA
self.ResultadosBuscas = self.BuscasPaginasWEB.find_all("a",{"referrerpolicy":"unsafe-url"},href=True)
for pages in self.ResultadosBuscas:
if pages["href"].startswith("https://br.search.yahoo.com/search?p="):
self.NumPagesSchsWeb.append(pages["href"])
for Num, LinksPages in enumerate(self.NumPagesSchsWeb):
print("\033[1;32m[{}] \033[m\033[1;36m[*]\033[m \033[1;33mRealizando buscas na página\033[m \033[1;31m{}\033[m: \033[1;36m{}\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),Num+1,LinksPages))
self.IniciarBusca = self.Requisicao.get(LinksPages,headers=self.HeadersChromium,cookies=self.CookiesGoogle,proxies=self.proxy2)
self.Htmls2 = bs4.BeautifulSoup(self.IniciarBusca.text,"html.parser")
self.Data = self.Htmls2.find_all("a",{"referrerpolicy":"origin"},href=True)
for LinkSitesWeb in self.Data:
validlinkf = re.search(r"^(http://|https://){1}(.)+(=[a-zA-Z0-9]+)$",str(LinkSitesWeb["href"]),re.IGNORECASE)
if validlinkf:
if "aspx" not in str(LinkSitesWeb["href"]):
self.LinksFiltrados1.append(LinkSitesWeb["href"])
def FilterURLForOnline(self):
""" OPÇÕES DA ETAPA 1 """
BanerScan()
Searching()
print("\n\033[1;32m[{}]\033[m \033[1;36m[*]\033[m \033[1;33mFiltrando url's e verificando se os sites estão online...\n\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
for nums, urls in enumerate(self.LinksFiltrados1):
try:
self.IniciarBusca = self.Requisicao.get(urls,headers=self.HeadersChromium,cookies=self.CookiesGoogle)
except requests.exceptions.SSLError:
print("\033[1;31m[{}] \033[m\033[1;31m[SSLerrors]\033[m \033[1;31mSite\033[m\033[1m:\033[m \033[1;31m{} |\033[m \033[1;31mCom problemas de conexão SSL!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),urls))
except requests.exceptions.ConnectionError:
print("\033[1;33m[{}] \033[m\033[1;33m[Conection]\033[m \033[1;31mSite\033[m\033[1m:\033[m \033[1;31m{} |\033[m \033[1mLink Quebrado ou Página removida!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),urls))
else:
print("\033[1;32m[{}] \033[m\033[1;32m[Conection]\033[m \033[1mSite\033[m\033[1m:\033[m \033[1;36m{} |\033[m \033[1;32mOnline!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),urls))
self.LinksFiltrados2.append(urls)
def ExploreSQL(self):
""" EXPLORANDO AS FALHAS SQLinjection """
BanerScan()
print("\n\033[1;32m[{}]\033[m\033[1;32m [*]\033[m \033[1;33mRealizando testes...\033[m:\n\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;32m[{}]\033[m\033[1;36m [*]\033[m \033[1mSites filtrados:\033[m \033[1;33m[{}]\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),len(self.LinksFiltrados2)))
print("\033[1;32m[{}]\033[m\033[1;36m [*]\033[m \033[1mEscaneando código da página...\033[m\n".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(2)
for TestesURLfalhas in self.LinksFiltrados2:
BanerScan()
print("\033[1;32m[{}]\033[m \033[1;32m[*]\033[m \033[1mEscaneando o site: {}\033[m\n".format(datetime.datetime.now().strftime("%H:%M:%S"),TestesURLfalhas))
try:
self.IniciarBuscasSQL = self.Requisicao.get(TestesURLfalhas+"'",headers=self.HeadersChromium,cookies=self.CookiesGoogle,proxies=self.proxy2,timeout=self.Timesout)
except requests.exceptions.SSLError:
print("\n\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mSite com problemas de conexão SSL!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mPulando...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(0.1)
except requests.exceptions.ConnectionError:
print("\n\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mSite com problemas de conexão!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mPulando...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(0.1)
except requests.exceptions.Timeout:
print("\n\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mSite com problemas de conexão!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mPulando...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(0.1)
else:
self.SearchFalhasSQL = bs4.BeautifulSoup(self.IniciarBuscasSQL.text,"html.parser")
self.ArmazenarFalhasSQL = self.SearchFalhasSQL.get_text()
for NumFalhas, TesteFalhas in enumerate(self.ErrorsSQL):
if TesteFalhas in self.ArmazenarFalhasSQL:
print("\033[1;32m[{}]\033[m\033[1;33m [*] Site escaneado:\033[m \033[1m{} | \033[m\033[1;4;36mStatus:\033[m \033[1;32mVulnerável\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),TestesURLfalhas))
print("\033[1;32m[{}]\033[m\033[1;33m [*]\033[m Armanezando em\033[m\033[1;36m Vulners.txt\033[m")
with open("VULNERAVEIS.txt","a") as AddSQLError:
AddSQLError.write("-----------------------------------------------------------\n")
AddSQLError.write("Site:"+str(TestesURLfalhas)+"\n")
AddSQLError.write("Vulnerabilidade: SQLinjection\n")
AddSQLError.write("Horario consulta: {}\n".format(datetime.datetime.now().strftime("%H:%M:%S")))
AddSQLError.write("-----------------------------------------------------------\n")
AddSQLError.write("\n")
AddSQLError.close()
sleep(2)
break
else:
print("\033[1;32m[{}]\033[m\033[1;31m [-]\033[m \033[1mSite escaneado: {} | \033[1;33mStatus\033[m: \033[1;31mNão vulnerável\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),TestesURLfalhas))
sleep(0.01)
class ScannerOnlyWebSite:
""" CLASSE ESCANEAMENTO ÚNICO """
def __init__(self,website):
""" OPÇÃO PARA EXPLORAR UM SITE RETORNANDO TODOS OS LINKS DO MESMO """
self.WebSite = website
self.LinksWB = []
self.Connect = requests.Session()
self.HeaderW = [fake_useragent.UserAgent()["google chrome"],fake_useragent.UserAgent().ff,fake_useragent.UserAgent().firefox,fake_useragent.UserAgent()["safari"]]
self.Proxies1 = {"41.65.67.167":"1976"}
self.Proxies2 = {"159.224.232.194":"8888"}
self.Proxies3 = {"211.253.36.172":"5001"}
self.Proxies4 = {"103.156.233.157":"3456"}
self.LinksFinalsPHP = []
self.LinksFinalsTests = []
self.SCANEAR = False
self.Timeout = 10
self.ErrorsSQLi = [
"SQL",
"sql",
"Aviso: mysql_fetch_array()",
"NoSql",
"nosql",
"noSQL",
"noSql",
"noSqL",
"sintaxe SQL",
"SINTAXE SQL",
"MySql",
"Warning: mysql_connect()"
]
self.MORE = False
self.CookieJs = {
"1P_JAR":"2024-06-24-23",
"AEC":"AQTF6HxkLdh9L5h_xMUL7yZdFGFmpWDnaCTbE706ZZM9ysby8SgK3A3lPsQ",
"APISID":"me2_C91mNmk2T4ea/A9MTv7jYwQbL_MC8D",
"DV":"M7Mjtrqpj91T0MwzaUe0CfwwkOLIBFlpedIjqK-QNgEAAFDp7JXFwc47TgAAAKhfz8hqWLzWHAAAALn1Nrq_BAmKEgAAAA",
"HSID":"AU5PtybEnuyCQTbMd",
"NID":"515=T8iJKxtcGN9lrTUhHzEdpz__5E2d5Bh3tXjpAOoBDLN_FUmhYOOuo4wJ9ak8ll-g7EfVwJ9Gfs1bR8U1cvBVy0-6aQAmTTVK7kf56iF_wAaO7Tp_WlOzVFj9IVIUv7DvhX9KPDl3JBjnMD9O4gySMZKGkZHJ_gqQtgjPz7XYMk0CSRMTyMc3ili4iXnQsCUMA53UadQ_Rem0-ZgNbYpJBJdm66Rt7GhX8o4QWp1fQ1ZW0hVjHSMjJqzy-5PTiwTEkpUcwdgeHIECqgK7C0oBgLSOHVWHgitB_o9momshwfxBanoO7xkF5lPOrDCAyAobLX-hR-s238Oa0XHEPZP5T1MMdg6Gs0jUgEtLiMUPF-gu2q9QkwEbh9Wrrz9WxnZdUwuqTmGU2Sn7wpgfwuH7RJDo1Xn5iiC0nFpNvt3uDtlK_Yw3DYnhDuhzd1-y71NI6UiZBIYvx2JmUZ1PSBQdAo0d53sY1kolqFckVRoMwKvBSMuhZdkgDxVF7NwJVVxPFhZL9zwYsbmHd-R7IxUmQlKKmO0MWsn3",
"OSID":"g.a000gQimVXRiO29aP4uNI90Hb-L_r7Umosdy2VhCUrejYMjCq67ObmI7Vbo9LGOBC1PWTmFvJQACgYKAf0SAQASFQHGX2MieIxZe65negwacLSyFB6nERoVAUF8yKogCRVNp4xtUxpYUnNjmJzf0076",
"SAPISID":"SAPISID",
"SEARCH_SAMESITE":"CgQIy5oB",
"SID":"g.a000lAimVdYFeeEowSBrNRE1eejNm1GwRWfQMKltl6e4H7ydosrk4dv0P_jxOO9xPouuh_fspwACgYKAWgSARESFQHGX2Mil0hnCMDtxg3r2VotN3kvvBoVAUF8yKpu1J71SW2IZoYCELtQm_V60076",
"SIDCC":"AKEyXzXJzh9k732p12uD5lQYwrqv9CUwRpUAYYF5gKNrHeNhNnNl-5KXh72x2IGqGtQYhhxrM7I",
"SSID":"AaKhRtTK8La-AGJVF",
"__Secure-1PAPISID":"TqUlNBySdVnw27az/A17YUa39ImUc3sKZm",
"__Secure-1PSID":"g.a000lAimVdYFeeEowSBrNRE1eejNm1GwRWfQMKltl6e4H7ydosrk9Qc3Q7Udr_HFxyXD8rQpKAACgYKAVkSARESFQHGX2MipYrvMFqlZFAeMOBXZGnElhoVAUF8yKrntQY0gHIdcm6h9j9sf_wq0076",
"__Secure-1PSIDCC":"AKEyXzVQ-qCpdHN0UuwmC8Z_HfDy97bxsNsbsuHJjLEzcMoOsvXiskV1N4lFIpDI4lrQIR2Uur4",
"__Secure-1PSIDTS":"sidts-CjIB3EgAEjOIfFEaTj_8K_nGosatZ1J5X9VEn-Y_nn4WiCrTHOfBA33TUBPVZyaeTzydjBAA",
"__Secure-3PAPISID":"TqUlNBySdVnw27az/A17YUa39ImUc3sKZm",
"__Secure-3PSID":"g.a000lAimVdYFeeEowSBrNRE1eejNm1GwRWfQMKltl6e4H7ydosrkrggLb-5R_4fdbeWHTyWX3wACgYKAZUSARESFQHGX2MiDi_5HAJWYISp9hAFLzrqsBoVAUF8yKp02yVgdYAGHfU0Tc-5gZ_u0076",
"__Secure-3PSIDCC":"AKEyXzUGmEqw3ka9QAgYzuVyEERZKhV3-AYMe0phBF2Sy02bpJBxR3VM1MB0PnrfzWoz4y4GxQ",
"__Secure-3PSIDTS":"sidts-CjIB3EgAEjOIfFEaTj_8K_nGosatZ1J5X9VEn-Y_nn4WiCrTHOfBA33TUBPVZyaeTzydjBAA",
"__Secure-OSID":"g.a000gQimVXRiO29aP4uNI90Hb-L_r7Umosdy2VhCUrejYMjCq67OyoT5CWNh5Fj-QpYZ38hyxgACgYKARoSAQASFQHGX2MiDAAosHP6P2aM3uS-PGWCKRoVAUF8yKoaMWQw9w_0eyVkqdqrhaCJ0076",
"_ga":"GA1.1.1761629692.1707431141",
"_ga_6VGGZHMLM2":"GS1.1.1707431141.1.0.1707431141.0.0.0",
}
self.HeardersW = {"UserAgent":self.HeaderW[random.randint(0,3)],"'referer'":"'https://www.google.com/'"}
def ScannerOnlyWebsite(self):
BanerScan()
print("\033[1;31m[!]\033[m \033[m Tentando me conectar ao site...\033[m")
sleep(0.2)
BanerScan()
Searching()
""" MÉTODO PARA SE CONECTAR AO SITE E RETORNAR OS LINKS """
try:
self.ConnectWebSites = self.Connect.get(self.WebSite,headers=self.HeardersW,verify=True,proxies=self.Proxies3,timeout=self.Timeout)
except requests.exceptions.SSLError:
print("\n\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mSite com problemas de conexão SSL!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mVoltando ao menu...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(2)
except requests.exceptions.ConnectionError:
print("\n\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mSite com problemas de conexão!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mVoltando ao menu...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(2)
except requests.exceptions.Timeout:
print("\n\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mTempo limite de conexão atingido!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mVoltando ao menu...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(2)
else:
if self.ConnectWebSites.status_code == 200:
BanerScan()
Searching()
print("\033[1;33m[*]\033[m\033[m\033[1m Varredura iniciada no site \033[1;36m{}\033[m\033[1m:\033[m\n".format(self.WebSite))
sleep(0.4)
self.ContentSite = bs4.BeautifulSoup(self.ConnectWebSites.text, "html.parser")
self.ArmazenarContent = self.ContentSite.find_all("a",href=True)
size_links = []
for lks in self.ArmazenarContent:
size_links.append(lks["href"])
print("\033[1;32m[{}]\033[m\033[1;33m [*]\033[m\033[1m Links encontrados: [ {} ]\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),len(size_links)))
sleep(0.2)
print("\033[1;32m[{}]\033[m\033[1;33m [*]\033[m\033[1m Procurando por links com parametros de DB...\033[m\n".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(0.2)
for BuscaLinksOnSites in self.ArmazenarContent:
if "javascript" not in BuscaLinksOnSites["href"]:
if ".php?" in BuscaLinksOnSites["href"]:
self.LinksFinalsPHP.append(self.WebSite+str(BuscaLinksOnSites["href"]))
print("\033[1;32m[{}]\033[m \033[1;32m[FOUND]\033[m \033[1mLinks dentro do Site: \033[m\033[1;5m{}\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),self.WebSite+BuscaLinksOnSites["href"]))
sleep(0.01)
self.SCANEAR = True
if BuscaLinksOnSites["href"].endswith(".php"):
if BuscaLinksOnSites["href"] not in self.LinksFinalsPHP:
self.LinksFinalsPHP.append(self.WebSite+str(BuscaLinksOnSites["href"]))
print("\033[1;32m[{}]\033[m \033[1;32m[FOUND]\033[m \033[1mLinks dentro do Site: \033[m\033[1;5m{}\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),self.WebSite+BuscaLinksOnSites["href"]))
self.SCANEAR = True
sleep(0.02)
else:
print("\033[1;5;32m[{}]\033[m \033[1;31m[-]\033[m\033[1m Link Escaneado: {} | \033[1;36mStatus:\033[m\033[1;5;31mDescartado!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),BuscaLinksOnSites["href"]))
sleep(0.1)
if self.SCANEAR == True:
BanerScan()
Searching()
print("\n\033[1;32m[{}]\033[m \033[1;33m[*]\033[m \033[1mVerificando sublinks nos links encontrados\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(0.1)
print("\033[1;32m[{}]\033[m \033[1;33m[*]\033[m \033[1mBuscando por falhas...\033[m\n".format(datetime.datetime.now().strftime("%H:%M:%S")))
self.MORE = False
if len(self.LinksFinalsPHP) > 0:
for GETMORELINKSPHP in self.LinksFinalsPHP:
try:
self.GetConnectWeb1 = self.Connect.get(GETMORELINKSPHP,headers=self.HeardersW,verify=True,proxies=self.Proxies2)
except requests.exceptions.SSLError:
print("\n\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mSite com problemas de conexão SSL!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mPulando...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(0.4)
except requests.exceptions.ConnectionError:
print("\n\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mSite com problemas de conexão!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mPulando...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(0.4)
except requests.exceptions.Timeout:
print("\n\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mTempo limite de conexão excedido!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mPulando...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(0.4)
except requests.exceptions.RequestException:
print("\n\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mSite instável!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[mPulando...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(0.4)
else:
if self.GetConnectWeb1.status_code == 200:
self.GetMoreLinksSameWebSite = bs4.BeautifulSoup(self.GetConnectWeb1.text, "html.parser")
self.GetMoreLinksSame = self.GetMoreLinksSameWebSite.find_all("a",href=True)
for AditionalLinks in self.GetMoreLinksSame:
if "id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "cat=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "artist=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "itemid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "intprod=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "order_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "intcatalogid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "item_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "catid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "service_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "storeid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "page_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
else:
pass
elif "pid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "message_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "act=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "groupid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "bd=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "iddesc=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "news_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "table=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "lotid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "p=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "module=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "lan=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "product_no=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "magid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "prodid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "cat_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "code=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "bookid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "cid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "title=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "userid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "idcategory=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "xid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "idcd=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "site=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "iid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "page=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "section=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "chnum=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "i=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "modus=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "ref=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "cpath=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "proj_nr=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "url=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "t=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "acticle_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "w=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "view=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "noticia=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "intprodid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "idcategory=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "store_id" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "ref=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "nr=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "c=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "sid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "profileid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "no=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "type=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "tid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "rangeid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "area_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "cart=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "code_no=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "event_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "eventid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "show=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "reply=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "panier=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "pr=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "sku=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "****=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "start=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "topic=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "siteid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "site_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "****id1=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "press_release_id=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "a=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "action=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "action=itemid&pid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "itype=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "offs=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "data=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "typeboard=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "doc=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "gubun=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "ps_db=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "num=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "cont=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "viewtype=category&categoryid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "keyword=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "search_id" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "isbn=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
elif "articleid=" in AditionalLinks["href"].lower():
if AditionalLinks["href"] not in self.LinksFinalsTests:
self.LinksFinalsTests.append(self.WebSite+(str(AditionalLinks["href"])))
self.MORE = True
if self.MORE == True:
newtestes = []
for p in self.LinksFinalsTests:
if "aspx" not in p:
if p in newtestes:
pass
else:
newtestes.append(p)
BanerScan()
Searching()
print("\033[1;32m[*]\033[m \033[1m Iniciando o scaner...\033[m\n")
sleep(0.1)
for getLINK in newtestes:
try:
self.CONECTANDOSITESUB = self.Connect.get(getLINK+"'",headers=self.HeardersW,verify=True,cookies=self.CookieJs,proxies=self.Proxies1,timeout=self.Timeout)
except requests.exceptions.SSLError:
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[m Página com problemas de conexão SSL!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[m Pulando...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
except requests.exceptions.ConnectionError:
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[m Página com problemas de conexão!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[m Pulando...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
except requests.exceptions.Timeout:
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[m Tempo esgotado de solicitação!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[m Pulando...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
except requests.exceptions.RequestException:
print("\033[1;33m[{}] \033[m\033[1;31m[!]\033[m \033[m Erro interno do site, pulando...!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
else:
if self.CONECTANDOSITESUB.status_code == 200:
self.CONTEUDOPARAANALISAR = bs4.BeautifulSoup(self.CONECTANDOSITESUB.text, "html.parser")
self.RESULTADOWEBSITES = self.CONTEUDOPARAANALISAR.get_text()
for ERROSQLi in self.ErrorsSQLi:
if ERROSQLi in self.RESULTADOWEBSITES:
print("\033[1;33m[{}] \033[m\033[1;33mPágina:\033[m \033[1;36m{}\033[m \033[1m| Status:\033[m \033[1;;4;32mVulnerável!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),getLINK))
#print("\033[1;32m[{}] \033[m\033[1;33m\033[1;33mSalvando no Arquivo OnlyScan.txt \033[m\033[1;33m".format(datetime.datetime.now().strftime("%H:%M:%S")))
with open("VULNERAVEIS.txt","a") as insereErros:
insereErros.write("-----------------------------------------------------------\n")
insereErros.write("Site: {}\n".format(self.WebSite))
insereErros.write("Página vulnerável: {}\n".format(getLINK))
insereErros.write("Vulnerabilidade: SQLinjection\n")
insereErros.write("Hórario consulta: {}\n".format(datetime.datetime.now().strftime("%H:%M:%S")))
insereErros.write("-----------------------------------------------------------\n")
insereErros.close()
sleep(0.4)
break
else:
print("\033[1;33m[{}] \033[m\033[1;33mPágina:\033[m \033[1;36m{}\033[m \033[1m| Status:\033[m \033[1;4;31mNão vulnerável\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),getLINK))
sleep(0.01)
print("\n\033[1;32m[{}]\033[m \033[1;33m[+]\033[m \033[1m Retornando para a home...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(2)
else:
print("\n{}\033[1;32m[*]\033[m \033[1m Na minha filtragem, não encontrei nenhum link com".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("{}\033[1;32m[*]\033[m \033[1m Parâmetros vulneráveis! Retornando para a home...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(2)
elif len(self.LinksFinalsPHP) == 0:
print("\n\033[1;32m[{}]\033[m \033[1;31m[!]\033[m \033[1m Nenhuma url com paramentros para testes encontrado ...\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(2)
else:
print("\n\033[1;32m[{}]\033[m \033[1;31m[!]\033[m\033[1m Não encontrei Sublinks para escanear!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(3)
else:
print("\033[1;32m[{}]\033[m \033[1;31m[!]\033[m \033[1;33mNão foi possível estabelecer uma conexão com o site:\033[m \033[1;4m{}\033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),self.WebSite))
print("\033[1;32m[{}]\033[m \033[1;31m[!]\033[m \033[1;33mE por isso não foi possível localizar sublinks!\033[m".format(datetime.datetime.now().strftime("%H:%M:%S")))
print("\033[1;32m[{}]\033[m \033[1;31m[!]\033[m \033[1;33mVoltando ao menu...\n".format(datetime.datetime.now().strftime("%H:%M:%S")))
sleep(3)
if __name__ == "__main__":
while True:
BanerScan()
print("""
\033[1;34m[ 1 ]\033[m\033[1m - Scan de vulnerabilidades\033[m
\033[1;34m[ 2 ]\033[m\033[1m - Escanear um site\033[m
\033[1;34m[ 3 ]\033[m\033[1m - Abrir Sites Escaneados e vulneráveis\033[m
\033[1;34m[ X ]\033[m\033[1m - Sair\033[m
""")
try:
ChoiceUser = str(input("\033[1;31mset\033[m\033[1m-> \033[m")).strip().lower()
except KeyboardInterrupt:
BanerScan()
print("\n\n\033[1mSaindo...\033[m")
sleep(0.5)
raise SystemExit
else:
if ChoiceUser == "1":
Options = ["y","n"]
BanerScan()
UtilizarDorksWb = str(input("\033[1;32m[+]\033[m\033[1m Utilizar Wordlist de dorks para buscar mais sites? y/n: ")).lower().strip()
while UtilizarDorksWb not in Options:
print("\033[1;31m[!]\033[m\033[1m Insira uma opção válida!\033[m")
UtilizarDorksWb = str(input("\033[1;32m[+]\033[m\033[1m Utilizar Wordlist de dorks? y/n: ")).lower().strip()
if UtilizarDorksWb == "y":
size_wordlist = open("DORKS.txt","r").readlines()
with open("DORKS.txt","r") as WordlistDk:
for DorksWordlist in WordlistDk:
DorksBuscas = DorksWordlist.replace("\n","")
IniciarBuscasWeb = GetDadosUsuario(option="Wordlist",wordlist=True,dork=DorksBuscas,sizes=len(size_wordlist))
IniciarBuscasWeb.FiltrarURL()
IniciarBuscasWeb.GetPagesSearch()
IniciarBuscasWeb.FilterURLForOnline()
IniciarBuscasWeb.ExploreSQL()
BanerScan()
elif UtilizarDorksWb == "n":
DorkUsers = str(input("\033[1;32m[+]\033[m\033[1m Insira sua Dork: > \033[m")).strip()
while DorkUsers == "":
DorkUsers = str(input("\033[1;31m[+]\033[m\033[1m Insira sua Dork: > \033[m")).strip()
IniciarVarredura = GetDadosUsuario(option="-d",wordlist=False,dork=DorkUsers)
IniciarVarredura.FiltrarURL()
IniciarVarredura.GetPagesSearch()
IniciarVarredura.FilterURLForOnline()
IniciarVarredura.ExploreSQL()
BanerScan()
elif ChoiceUser == "2":
BanerScan()
print("\033[1;36m[*]\033[m \033[m\033[1m exemplo de url: https://example.com/ (www and .br-> opcional) \033[m".format(datetime.datetime.now().strftime("%H:%M:%S"),))
print("\033[1;36m[*]\033[m \033[m\033[1m Escaneamento completo de site único!\033[m\n".format(datetime.datetime.now().strftime("%H:%M:%S"),))
UrlSiteUser = str(input("\033[1;31mUrl> \033[m")).strip()
ValidarUrls = re.search(r"^(http://|https://){1}(www\.)?([a-zA-Z0-9\-\_])+.+(\.com/|\.br/|\.ch/|\.edu/|\.su/|\.org/|\.sp/|\.mg/|\.gov/|\.eu/|\.me/|\.io/|\.pt/|\.tv/|\.uk/|\.ga/|\.ac/|\.mk/|\.co/|\.id/|\.net/|\.uk/|\.jp/|\.in/|\.vn/|\.tr/|\.tw/|\.info/|\.pk/|\.ng/|\.my/|\.sy/|\.bd/|\.cn/|\.gh/|\.se/|\.cyb|\.bbs/|\.geek/|\.chan/|\.vc/|\.pirate/|\.libre/|\.neo/|\.parody/|\.xxx/)$",str(UrlSiteUser),flags=re.IGNORECASE)
while not ValidarUrls:
print("\033[1;31m[!]\033[m\033[1m Insira um link válido!\033[m")
UrlSiteUser = str(input("\033[1;32m[+]\033[m \033[1m Url: \033[m")).strip()
ValidarUrls = re.search(r"^(http://|https://){1}(www\.)?([a-zA-Z0-9\-\_])+.+(\.com/|\.br/|\.ch/|\.edu/|\.su/|\.org/|\.sp/|\.mg/|\.gov/|\.eu/|\.me/|\.io/|\.pt/|\.tv/|\.uk/|\.ga/|\.ac/|\.mk/|\.co/|\.id/|\.net/|\.uk/|\.jp/|\.in/|\.vn/|\.tr/|\.tw/|\.info/|\.pk/|\.ng/|\.my/|\.sy/|\.bd/|\.cn/|\.gh/|\.se/|\.cyb/|\.bss/|\.geek/|\.chan/|\.vc/|\.pirate/|\.libre/|\.neo/|\.parody/|\.xxx/)$",str(UrlSiteUser),flags=re.IGNORECASE)
if ValidarUrls:
EscanearWebSites = ScannerOnlyWebSite(website=UrlSiteUser)
EscanearWebSites.ScannerOnlyWebsite()
BanerScan()
elif ChoiceUser == "3":
BanerScan()
print("\n\033[1;31m[*]\033[m\033[1m Sites escaneados e vulneráveis:\n\033[m")
caminho = os.getcwd()
find = False
for files in os.listdir(str(caminho)):
if files == "VULNERAVEIS.txt":
with open("VULNERAVEIS.txt","r") as SQLreader:
for VULN in SQLreader:
print(VULN.replace("\n",""))
find = True
input("\033[1;31m[*]\033[m\033[1m Enter para voltar ao menu... \033[m")
SQLreader.close()
break
if find == False:
input("\n\033[1;31m[*]\033[m\033[1m Você não tem sites vulneráveis ainda! Enter para voltar ao menu... \033[m")
elif ChoiceUser == "x":
BanerScan()
print("\n\033[1;31m[*]\033[m\033[1m Saindo...\033[m")
sys.exit()
#.