-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFLDSMDFR.sh
1759 lines (1468 loc) · 76 KB
/
FLDSMDFR.sh
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
#!/bin/env bash
#set -o errexit comando falla se para el programa
#set -o pipefail esto sirve para ver si el primero comando se ejecuto antesde el |
#set -o nounset esto es para verificar si una variable sin asignar
#set -o xtrace trazar los errores depurar
green='\e[32m'
BLK='\e[30m'; blk='\e[90m'; BBLK='\e[40m'; bblk='\e[100m' #| Black |
RED='\e[31m'; red='\e[91m'; BRED='\e[41m'; bred='\e[101m' #| Red |
GRN='\e[32m'; grn='\e[92m'; BGRN='\e[42m'; bgrn='\e[102m' #| Green |
YLW='\e[33m'; ylw='\e[93m'; BYLW='\e[43m'; bylw='\e[103m' #| Yellow |
BLU='\e[34m'; blu='\e[94m'; BBLU='\e[44m'; bblu='\e[104m' #| Blue |
MGN='\e[35m'; mgn='\e[95m'; BMGN='\e[45m'; bmgn='\e[105m' #| Magenta |
CYN='\e[36m'; cyn='\e[96m'; BCYN='\e[46m'; bcyn='\e[106m' #| Cyan |
WHT='\e[37m'; wht='\e[97m'; BWHT='\e[47m'; bwht='\e[107m' #| Whit |
RESET='\033[0m'
# ANSI
RED_='\033[91m'
RESET='\033[0m'
# ASCII art
echo -e "${RED_}"
cat << "EOF"
________ ____ _____ __ _______ __________
/ ____/ / / __ \/ ___// |/ / __ \/ ____/ __ \
/ /_ / / / / / /\__ \/ /|_/ / / / / /_ / /_/ /
/ __/ / /___/ /_/ /___/ / / / / /_/ / __/ / _, _/
/_/ /_____/_____//____/_/ /_/_____/_/ /_/ |_| v1.0.
("Aquiles369 Github")
.......'.......................... .od;..;;l0x. ..'''.......
.................... 'do;..'';d0c. .............
... .........;c:lo:,,,;oo,'. ..,,,'......
. .cddlcccc:;:;,:l:;,..,:;,'..,coxkOkxl;'....
..'llcc:;,'....',co:;'..'cdl::lxO0OkO0KK0d;...
.... ...... .,do;,:cc:,'..''.,ldl,'..:l,,cox0XX0O0NNK0kc.
.. ..... . .ldlcdkkkxdl,,''..';:,.....';ccokKK0OkKXK0K0l'
..... .;c:;cxkkkko,..',....'.....,lddolxkxkxxO0O0N0l.
. .... .... ......';:::c;. .','.......':dO0Odlox0Ok0XOk0K0;
... .. ......'. ..''..'... ..........':dOOdodloO0k0KOkO00:
...............',........',,'. .....''....';ldocoxookkkOkOKK0:
... ..............',cc;;........''.......... .....';codxxllddxkO0O0c
......................';:c,;:' ........ . ...';lc;;cdd:;ldxxk0Kc
.................. .....',',:,. ....... .;ddc:;;,,cdkkx0K:
................ .......... ....... 'lll:,.';ckOxO0:
...... ...... ...... .'... .,. .,:;;'..'';ooxO:
..... ..... ....... .,'.. .. .''';,,'..,,:lldk:
.... ..... ...',;'. .;'..... .'',:::,..':llloo,
.... ...... ...',;;. .;,,;:;'.. ...;:;,'...,::cdd,
..... ...... ...',:;. .clllc;,,'. . ..','.'',',,,;:ox;
..... ...... ...',;;. .o0ko:;;;;'.. ..........'''';;:llcc'
..... ....... ....',,. ;doc;;;,;'... ........''.''.,;,;lc;l;
....... ......... ......... ....................................;,
',..',..',...,,'..',,..'..'.'....'.','..'.'..,,'...',...,,'.............'.
cdc:do',ld:.;ll:,c:',':c.,c:c;..,c;cdo::l;c::l,:c',ldc.:l,:c'.............
cllllc;cc:l;,cll;::,,',c;:c;cc,';c;cc';ol;c::l;:c;cc:l;:l;::............
''','',,..''';;,..,;,..';;'.,;;,''.''..,,.''';;,..'..',,;;,......,,'cll.
EOF
echo -e "${RESET}"
# Get the current user's home directory
usuario=$(echo $USER)
pwd=$(echo $PWD)
# Define the target domain
#echo "------------------------------"
echo -e "\n\n*================{ INGRESA TARGET: MAQUINA }===================*\n\n"
#echo -e "TARGET MAQUINA ESCRIBE REY url COMPLETA ejmplo , https://example.com:"
read target
echo -e "\n"
#echo "------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ INGRESAR EL NOMBRE EMPRESA: SOLO SIN NADA:}===================*\n\n"
#echo "PERFECTO AHORA TE PEDIMOS EL NOMBRE SOLO DE LA EMPRESA GENIO MAQUINA, para poder ver las ADQUISICIONES:"
echo -e "${CYN}\nNombre de la empresa:\n"
read empresa
#echo "------------------------------------------------------------------------------------------------------"
echo -e "\n"
#echo "-------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ INRESAR NOMBRE: PRODUCTO DE LA EMPRESA }===================*\n\n"
#echo "PERFECTO AHORA TE PEDIMOS EL NOMBRE SOLO DEl PRODUCTO GENIO MAQUINA:"
echo -e "${CYN}\nNombre del producto:\n"
read producto
#echo "-------------------------------------------------------------------------------------------------------"
echo -e "\n"
#echo "------------------------------------------------------------------------------------------------------"
#echo -e "\n\n*================{ INGRESAR VERSION TEGONOLOGIA EJEMPLO: APACHE }===================*\n\n"
#echo "PERFECTO AHORA TE PEDIMOS EL NOMBRE DE LA TEGNOLOGIA Y la version si es posible:"
#echo -e "${CYN}\nNombre de la tegnologia y version:\n"
#read vers
#echo "-------------------------------------------------------------------------------------------------------"
#echo -e "\n\n*================{ INGRESAR: ASN }===================*\n\n"
#echo "PERFECTO AHORA TE PEDIMOS EL ASN , GENIO MAQUINA , ya tenias que mirar eso de antes cabeza:"
#echo -e "${CYN}\nNombre de la tegnologia y version:\n"
#read asn
#echo "--------------------------------------------------------------------------------------------------------"
# Create the results directory
results_dir=results-$target
mkdir $results_dir
# Create subdirectories for each category of information
mkdir $results_dir/Domain_reconnaissance
mkdir $results_dir/Vulnerability-scanning
mkdir $results_dir/Network_map_ping
mkdir $results_dir/Application_fingerprinting
mkdir $results_dir/Google-dorks
mkdir $results_dir/DNSRECON
mkdir $results_dir/IP_VERDADERA
mkdir $results_dir/ASN
mkdir $results_dir/TEGNOLOA_TODO_SUBDOMINIOS
mkdir $results_dir/Screenshots
mkdir $results_dir/Reporting
mkdir $results_dir/HACKERONE
mkdir $results_dir/TEGNOLOGIA_MUCHO_MAS
mkdir $results_dir/ADQUISIOCIONES_EMPRESA
mkdir $results_dir/BUGCROW
mkdir $results_dir/INTITRI
mkdir $results_dir/WAFF
mkdir $results_dir/GITGRABER
mkdir $results_dir/ENUM_CLOUD
mkdir $results_dir/WAYBU
mkdir $results_dir/ARCHIVO_JAVACRYPT_DOMINI_COMPLETO
mkdir $results_dir/PARAMETROS
mkdir $results_dir/NUCLE
mkdir $results_dir/CVE_TEGNO_VERSION
mkdir $results_dir/WHOIS
mkdir $results_dir/FOFA
mkdir $results_dir/EMAIL
mkdir $results_dir/SHODAN
mkdir $results_dir/FFUF
mkdir $results_dir/CMS
mkdir $results_dir/ADQUISICION_SUBDOMAIN
mkdir $results_dir/LINKEDIN
mkdir $results_dir/VISUAL_PING
#echo "----------------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ IP_VERDADERA: INGRESAR AL LINK Y VER LA ULTIMA IP ANTES DEL WAFF }===================*\n\n"
#echo -e "[*]IP VERDADERA ....INGRESAR AL LINK ...CABEZA \n\n"
echo "https://viewdns.info/iphistory/?domain=$tarjet"$target > $results_dir/IP_VERDADERA/ip.txt 2>/dev/null
cat $results_dir/IP_VERDADERA/ip.txt 2>/dev/null
#echo "-----------------------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "-------------------------------------------------------------------------------"
echo -e "\n\n*================{ INGRESAR: AL LINK VER ASN }===================*\n\n"
#echo -e "[*] ASN: ...INGRESAR AL LINK...: \n\n"
echo "https://bgp.he.net/dns/$target#_ipinfo" > $results_dir/ASN/asn.txt 2>/dev/null
cat $results_dir/ASN/asn.txt 2>/dev/null
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "------------------------------------------------------------------------------------"
echo -e "\n\n*================{ WAFF UTILIZADO POR EL SITIO WEB }===================*\n\n"
#echo -e "[*] WAFF DE DEL DOMINIO ....MIRAR POSIBLE BYPASS GIT HUB...CABEZA: \n\n"
wafw00f https://$target > $results_dir/WAFF/waff.txt 2>/dev/null
cat $results_dir/WAFF/waff.txt 2>/dev/null
#echo "------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
echo -e "\n\n*================{ COMPROBADOR DE VUL DE ADQUISICION DE SUBDOMAIN: $target }===================*\n\n"
subzy run --target $target > $results_dir/ADQUISICION_SUBDOMAIN/vuln_adquisicion_subdomain.txt 2>/dev/null
cat $results_dir/ADQUISICION_SUBDOMAIN/vuln_adquisicion_subdomain.txt 2>/dev/null
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "__________________________________________________________________________________"
echo -e "\n\n*================{ WIG: EXTRAE INFO GENERAL }===================*\n\n"
#echo -e "[*]Saca info general wig \n\n"
wig $target > $results_dir/WHOIS/wig.txt
cat $results_dir/WHOIS/wig.txt
#echo "----------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "--------------------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ CMS: DETECTA AL SITIO WEB:REALIZA BUSQUEDA RUTAS , EXPLOTACION ETC: }===================*\n\n"
#echo -e "[*]DETECCÍON DE CMS MAS DE 170:...CABEZA...\n\n "
python3 /home/$usuario/FLDSMDFR/TOOLS_Y_INSTALADOR/CMSeeK/cmseek.py -u $target > $results_dir/CMS/cms.txt 2>/dev/null
cat $results_dir/CMS/cms.txt 2>/dev/null
#echo "--------------------------------------------------------------------------------------------------------------------------"
echo "si no se crea el archivo es por que no encontro nada"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "-----------------------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ INGRESAR: LINK MUY INTERESANTE REALIZA VARIAS BUSQUEDAS PASIVAS POR EL SITIOS WEB: }===================*\n\n"
#echo -e "[*]INGRESAR AL LINKS MUY BUENO BUSQUEDA PASIVA: \n\n"
echo "https://web-check.xyz/results/https%3A%2F%2F$target" > $results_dir/WHOIS/web.txt 2>/dev/null
cat $results_dir/WHOIS/web.txt 2>/dev/null
#echo "-----------------------------------------------------------------------------------------------------------------------------"
echo "si no se crea el archivo es por que no encontro nada"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "----------------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ INGREASAR: AL LINKS BUSCA POSIBLES FILTRACIONES DE ARCHIVOS ETC: }===================*\n\n"
#echo -e "[*] INGRESAR AL LINKS BUSCAR ARCHIVOS CONDIFENCIAL, SECRET ETC: \n\n"
echo "https://es.scribd.com/search?query=$target%20confidential" > $result_dir/WHOIS/scribd.txt 2>/dev/null
cat $result_dir/WHOIS/scribd.txt 2>/dev/null
echo "si no se crear el archivo es por no se encontro nada"
#echo "-----------------------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "----------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ INGRESAR: BUSCA POSIBLES ARCHIVOS BUCKEST ETC: }===================*\n\n"
#echo -e "[*]INGRESAR LINK BUSCAR ARCHIVOS AWS ETC:\n\n "
echo "https://buckets.grayhatwarfare.com/files?keywords=$target" > $result_dir/WHOIS/buckets.txt 2>/dev/null
cat $result_dir/WHOIS/buckets.txt 2>/dev/null
echo "si no se crea el archivo es por que no se encontro nada"
#echo "------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "------------------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ INGRESAR: LINKS POSTMAN : APLICACIONES DE JAVA EXPUESTAS POSIBLES: }===================*\n\n"
echo "https://www.postman.com/search?q=$target" > $result_dir/WHOIS/postamn.txt 2>/dev/null
echo "no crea el archivo por que no se encontro nada"
#echo "------------------------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ BUSCA EN GITHUB: POSIBLES FILTRACIONES DE TOKENS ETC: }===================*\n\n"
echo "GIT GRABER BUSCA POSIBLES TOKENS KEY ....loquita..CABEZA , esto tardara un momento"
python3 /home/$usuario/FLDSMDFR/TOOLS_Y_INSTALADOR/gitGraber/gitGraber.py -l 33 -k /home/$usuario/FLDSMDFR/TOOLS_Y_INSTALADOR/gitGraber/wordlists/keywords.txt -q \"$target\" > $results_dir/GITGRABER/gitgraber.txt &
#echo "------------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "---------------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ BUSCA EN GITHUB: POSIBLES FILTRACIONES DE PALABRAS CLAVES ETC: }===================*\n\n"
echo "busca nombre de palabras claves"
python3 /home/$usuario/FLDSMDFR/TOOLS_Y_INSTALADOR/gitGraber/gitGraber.py -l 33 -k /home/$usuario/FLDSMDFR/TOOLS_Y_INSTALADOR/gitGraber/wordlists/filename_keywords.txt -q \"$target\" > $results_dir/GITGRABER/palabras_Archivos.txt 2> /dev/null &
#echo "---------------------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "----------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ BUSCA EN GIT HUB: POSIBLES FILTRACION SECRETOS: }===================*\n\n"
echo "busca palabras ramdomn secretas"
python3 /home/$usuario/FLDSMDFR/TOOLS_Y_INSTALADOR/gitGraber/gitGraber.py -l 33 -k /home/$usuario/FLDSMDFR/TOOLS_Y_INSTALADOR/gitGraber/wordlists/nullenc0de_keywords.txt -q \"$target\" > $results_dir/GITGRABER/palabras_random.txt 2> /dev/null &
#echo "----------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "-----------------------------------------------------------"
echo -e "\n\n*================{ SHODAN }===================*\n\n"
#echo "Shodan:"
ip=$( host $target )
shodan $ip > $results_dir/SHODAN/shodan_info.txt 2> /dev/null
echo -e "\n"
echo "https://www.shodan.io/search?query=$ip" > $results_dir/SHODAN/shodan_info_links.txt 2> /dev/null
echo -e "\n"
echo "ingresar al link:"
cat $results_dir/SHODAN/shodan_info_links.txt 2> /dev/null
#echo "-----------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "-------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ FOFA: BUSCA POR PROTOCOLO TIPS GENIO Y POR FAVICON: }===================*\n\n"
#echo "fofa ingresar link y busca por dominio y podes buscar tambien por el favicon , tips por protocolo maquina "
dato=$( echo "$target" | base64 )
echo "https://en.fofa.info/result?qbase64="$dato > $results_dir/FOFA/fofa_info.txt 2> /dev/null
echo -e "\n"
cat $results_dir/FOFA/fofa_info.txt 2>/dev/null
#echo "-----------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "---------------------------------------------------------------------------------"
echo -e "\n\n*================{ INGRESAR: LINK WHOIS DOMINIO }===================*\n\n"
#echo "INFO DOMINIOS WHOIS ETC ....INGRESAR AL LINK ...CABEZA"
echo "https://www.whoxy.com/$target" > $results_dir/WHOIS/whoxy_info.txt 2> /dev/null
cat $results_dir/WHOIS/whoxy_info.txt 2>/dev/null
echo "si no se crea el archivo es pór que no se encontro nada"
#echo "---------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
#echo "-------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ INGRESAR: LINK YA QUE TIENE UN WAFF BUSCAR TARGET }===================*\n\n"
#echo "WHOISXML VER"
echo "https://whois.whoisxmlapi.com/lookup?q=$target" > $results_dir/WHOIS/whoisxml_info.txt 2> /dev/null
echo "si no se crea el archivo es por que tiene un waff ingresar manualmente"
#echo "--------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "---------------------------------------------------------"
echo -e "\n\n*================{ WHOIS: HOST }===================*\n\n"
echo "TEGNOLOGIAS Y MUCHO MAS ....INGRESAR AL LINK ...CABEZA"
echo "https://builtwith.com/$tarjet$target" > $results_dir/TEGNOLOGIA_MUCHO_MAS/tegnologia.txt 2> /dev/null
cat $results_dir/TEGNOLOGIA_MUCHO_MAS/tegnologia.txt 2> /dev/null
#echo "---------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "-------------------------------------------------------------------------"
echo -e "\n\n*================{ PARAMETROS: DOMINIO }===================*\n\n"
#echo "PARAMETROS DEL DOMINIO...CABEZA"
paramspider -d $target > $results_dir/PARAMETROS/parametros.txt 2> /dev/null
cat $results_dir/PARAMETROS/parametros.txt 2> /dev/null
#echo "-------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "-----------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ ADQUISICIONES DE LA EMPRESA: INGRESAR LINK }===================*\n\n"
#echo "ADQUISICIONES DE LA EMPRESA ingresar AL LINK MAQUINA:"
echo "https://www.crunchbase.com/organization/$empresa" > $results_dir/ADQUISIOCIONES_EMPRESA/adquisiciones.txt 2>/dev/null
cat $results_dir/ADQUISIOCIONES_EMPRESA/adquisiciones.txt 2> /dev/null
echo "si no se crea el archivo es pór que no se encontro nada"
#echo "-----------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "--------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ BUSCA SI ESTA LA EMPRESA EN LOS PROGRAMAS DE HACKERONER: }===================*\n\n"
#echo " HACKERONE TARJET VER SI ESTA DISPONIBLE....INGRESAR AL LINK ...CABEZA"
echo "https://hackerone.com/directory/programs?q=$empresa&asset_type=URL" > $results_dir/HACKERONE/hackerone.txt 2> /dev/null
echo "si no se crea el archivo es pór que no se encontro nada"
#echo "--------------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "-----------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ BUSCA SI ESTA LA EMPRESA EN LOS PROGRAMAS DE BUGCROW: }===================*\n\n"
#echo "BUGCROW VER TARJET SI EXISTE ....INGRESAR AL LINK ...CABEZA"
echo "https://bugcrowd.com/engagements?category=bug_bounty&target_categories=website%2Capi&sort_by=promoted&sort_direction=desc&search=$empresa&page=1" > $results_dir/BUGCROW/bugc.txt 2> /dev/null
echo "si no se crea el archivo es pór que no se encontro nada"
#echo "-----------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "---------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ BUSCA SI ESTA LA EMPRESA EN LOS PROGRAMAS DE INTIGRITI: }===================*\n\n"
#echo "INITIGRITI VER TARGET SI EXISTE ....INGRESAR AL LINK ...CABEZA"
echo "https://www.intigriti.com/programs$target" > $results_dir/INTITRI/Intigriti.txt 2>/dev/null
echo "si no se crea el archivo es pór que no se encontro nada"
#echo "---------------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "--------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ BUSCA EN AWS, GOOGLE_CLOUD , AZURE ETC: }===================*\n\n"
python3 /home/$usuario/FLDSMDFR/TOOLS_Y_INSTALADOR/cloud_enum/cloud_enum.py -k $empresa -k $tarjet -k $producto >> $results_dir/ENUM_CLOUD/cloud_enum.txt 2> /dev/null &
#echo "--------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "------------------------------------------------------------"
#echo "CVE DE LA VULN ingresar AL LINK MAQUINA:"
#echo ""
#searchsploit $vers > $results_dir/CVE_TEGNO_VERSION/CVE_TEGNO.txt 2> /dev/null
#echo "----------------------------------------------------------"
# printf "${GRN}"
# echo -ne '[||| ][20%]\r'
# sleep 1
# echo -ne '[||||||| ][40%]\r'
# sleep 1
# echo -ne '[|||||||||||||| ][60%]\r'
# sleep 1
# echo -ne '[||||||||||||||||||||||| ][80%]\r'
# sleep 1
# echo -ne '[|||||||||||||||||||||||||][100%]\r'
# echo -ne '\n\n'
# echo -e "[*] results saved successfully \n\n"
#echo "----------------------------------------------------------"
echo -e "\n"
# -------------------Perform domain reconnaissance------------------
printf "$YLW"
echo -e "\n\n*============{ Domain Reconnaissance }============*\n\n"
#ENUMERA SUBDOMAIN SOLO CON EL ASN:
#amass intel -active -cidr $rango_ip para rango de ip animal te saca los subdomain 2> /dev/null
#echo"enumara con el ASN subdomain con whois con extasis hasta el culo:"
#echo "-------------------------------------------------------------------------------"
#subdomains=$ amass intel -active -asn $asn -whois -d $target | tee $results_dir/Domain_reconnaissance/amass_asn_con_whois_subdomain.txt 2> /dev/null
#cat $results_dir/Domain_reconnaissance/amass_asn_con_whois_subdomain.txt | wc -l 2> /dev/null
#echo "-------------------------------------------------------------------------------"
# printf "${GRN}"
# echo -ne '[||| ][20%]\r'
# sleep 1
# echo -ne '[||||||| ][40%]\r'
# sleep 1
# echo -ne '[|||||||||||||| ][60%]\r'
# sleep 1
# echo -ne '[||||||||||||||||||||||| ][80%]\r'
# sleep 1
# echo -ne '[|||||||||||||||||||||||||][100%]\r'
# echo -ne '\n\n'
# echo -e "[*] results saved successfully \n\n"
#echo "------------------------------------------------------------------------------"
echo -e "\n\n*================{ AMASS --PASIVE : $target }===================*\n\n"
#Gather information about subdomains
subdomains=$ amass enum --passive -d $target | tee $results_dir/Domain_reconnaissance/amass.txt && pv | awk '{printf("%3d%% [%s%s]\r", ($1/$2)*100, str, sp)}{str=str "#";sp=sp " "}' 2>/dev/null &
#echo "------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "-----------------------------------------------------------------------------"
echo -e "\n\n*================{ SUBFINDER --ALL $target }===================*\n\n"
#Gather information about subdomains using subfinder
subdomains=$ subfinder -d $target -all -silent -o $results_dir/Domain_reconnaissance/subfinder.txt 2> /dev/null
sort $results_dir/Domain_reconnaissance/subfinder.txt | uniq > $results_dir/Domain_reconnaissance/subdomains_subfinder_limpio.txt 2> /dev/null
cat $results_dir/Domain_reconnaissance/subdomains_subfinder_limpio.txt | wc -l 2> /dev/null
#echo "------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "------------------------------------------------------------------------"
echo -e "\n\n*================{ SUBLIST3R: $target }===================*\n\n"
# Gather information about subdomains using sublister
subdomains=$ sublist3r -d $target > $results_dir/Domain_reconnaissance/subdomains_sublister.txt
sort $results_dir/Domain_reconnaissance/subdomains_sublister.txt | uniq > $results_dir/Domain_reconnaissance/subdomains_sublister_limpio.txt 2> /dev/null
cat $results_dir/Domain_reconnaissance/subdomains_sublister_limpio.txt | wc -l 2> /dev/null
#echo "------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "------------------------------------------------------------------"
echo -e "\n\n*================{ FFUF: $target }===================*\n\n"
#echo "FFUF COMPLETO DE SUBDOMAIN LLEVA UN TIEMPO MAQUINA:..."
ffuf -w /home/$usuario/FLDSMDFR/TOOLS_Y_INSTALADOR/SecLists/Discovery/Web-Content/directory-list-2.3-small.txt -c -v -rate 1 -recursion-depth 10 -t 10 -u http://$target/FUZZ > $results_dir/FFUF/subdomain.txt 2>/dev/null &
#echo "------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[### ][20%]\r'
sleep 1
echo -ne '[####### ][40%]\r'
sleep 1
echo -ne '[############## ][60%]\r'
sleep 1
echo -ne '[####################### ][80%]\r'
sleep 1
echo -ne '[##########################][100%]\r'
echo -ne '\n\n'
echo -e "[*] Endpoints gathering completed successfully \n\n"
#guardar todos los subdomain en un solo archivo limpio ya
#echo "-----------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ GUARDA TODOS LOS SUDOMAIN YA LIMPIOS EN SOLO ARCHIVO: }===================*\n\n"
echo "(se paso los sub todo a un archivo) "
cat $results_dir/Domain_reconnaissance/subdomains_sublister_limpio.txt $results_dir/Domain_reconnaissance/subdomains_subfinder_limpio.txt > $results_dir/Domain_reconnaissance/subdomains_todas_las__tres.txt 2> /dev/null
echo "listo"
#echo "-----------------------------------------------------------------------------------------------------------"
echo "(ahora limpia los duplicados de todos las tools) "
sort $results_dir/Domain_reconnaissance/subdomains_todas_las__tres.txt | uniq > $results_dir/Domain_reconnaissance/subdomains_todas_las_tools.txt 2> /dev/null
cat $results_dir/Domain_reconnaissance/subdomains_todas_las_tools.txt | wc -l 2> /dev/null
#echo "-----------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
###################################################################
#echo "--------------------------------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ TODOS LOS SUBDOMAIN LIMPIOS + WAYBACKURLS LOS UNE EN UN SOLO ARCHIVO Y QUITA LOS DUPLICADOS: }===================*\n\n"
#echo "HISTORIAL DE PAGINAS WEB SUBDOMAIN .... + WAYBAC HISTORY...CABEZA"
cat $results_dir/Domain_reconnaissance/subdomains_todas_las_tools.txt | waybackurls > $results_dir/WAYBU/waybur_no_limpio.txt
sort $results_dir/WAYBU/waybur_no_limpio.txt | uniq > $results_dir/WAYBU/waybur.txt
cat $results_dir/WAYBU/waybur.txt | wc -l 2> /dev/null
#echo "------------------------------------------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "----------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ HTTPROBE: PAGINAS VIVAS SUBDOMAIN_LIMPIOS }===================*\n\n"
#echo "PAGINAS VIVAS HTTPROBE"
cat $results_dir/WAYBU/waybur.txt | httprobe -p http:81 -p https:8443 -p http:8000 -p http:8001 -p http:8080 -p htpp:8181 -t 40000 | tee /home/$usuario/FLDSMDFR/$results_dir/Domain_reconnaissance/paginas_vivas.txt
cat /home/$usuario/FLDSMDFR/$results_dir/Domain_reconnaissance/paginas_vivas.txt | wc -l 2> /dev/null
#echo "----------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
echo -e "\n\n*================{ COMPROBADOR DE VUL DE ADQUISICION DE SUBDOMAIN VIVOS DEL: $target }===================*\n\n"
subzy run --targets /home/$usario/FLDSMDFR/$results_dir/Domain_reconnaissance/paginas_vivas.txt > $results_dir/ADSQUISICION_SUBDOMAIN/vuln_adquisicion_subdomain_vivos.txt 2>/dev/null
cat $results_dir/ADQUISICION_SUBDOMAIN/vuln_adquisicion_subdomain_vivos.txt 2>/dev/null
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ HTTPX: TEGNOLOGIAS DE LOS SUBDOMAIN_LIMPIOS y VIVOS}===================*\n\n"
#echo "TEGNOLOGIA DE CADA SUBDOMINIO HTTPX"
cat /home/$usuario/FLDSMDFR/$results_dir/Domain_reconnaissance/paginas_vivas.txt | httpx -td -v | tee /home/$usuario/FLDSMDFR/$results_dir/Domain_reconnaissance/tegnoligas_subdomain.txt
cat /home/$usuario/FLDSMDFR/$results_dir/Domain_reconnaissance/tegnoligas_subdomain.txt 2> /dev/null
#echo "-------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "-----------------------------------------------------------------------------------------------------------"
echo -e "\n\n*================{ HTTPX: ESTADOS DE LOS SUBDOMAIN_LIMPIOS }===================*\n\n"
#echo "respuestas status de todos los subdominios"
cat $results_dir/WAYBU/waybur.txt | httpx -status-code -v | tee /home/$usuario/FLDSMDFR/$results_dir/Domain_reconnaissance/estatus_code.txt 2> /dev/null
cat home/$usuario/FLDSMDFR/$results_dir/Domain_reconnaissance/estatus_code.txt 2> /dev/null
#echo "-----------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "____________________________________________________________________________________________________________"
echo -e "\n\n*================{ WIG: EXTRAE INFO GENERAL DEL SUBDOMAIN_VIVOS_LIMPIOS }===================*\n\n"
#echo "Saca info general wig"
wig -l /home/$usuario/FLDSMDFR/$results_dir/Domain_reconnaissance/paginas_vivas.txt > $results_dir/WHOIS/wig_subdomain.txt
cat $results_dir/WHOIS/wig_subdomain.txt
#echo "-----------------------------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
#echo "-------------------------------------------------------------------------------------"
echo -e "\n\n*================{ PARAMETROS : SUBDOMAIN_VIVO_LIMPIO }===================*\n\n"
#echo "PARAMETROS DEL LOS SUBDOMAIN VIVOS...CABEZA"
paramspider -l /home/$usuario/FLDSMDFR/$results_dir/Domain_reconnaissance/paginas_vivas.txt >> $results_dir/PARAMETROS/parametros_de_subdomain_vivos.txt 2> /dev/null
cat $results_dir/PARAMETROS/parametros_de_subdomain_vivos.txt 2> /dev/null
#echo "-------------------------------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1
echo -ne '[||||||||||||||||||||||| ][80%]\r'
sleep 1
echo -ne '[|||||||||||||||||||||||||][100%]\r'
echo -ne '\n\n'
echo -e "[*] results saved successfully \n\n"
# Gather IP addresses using dig
printf $CYN
#echo "----------------------------------------------------------------"
echo -e "\n\n*================{ WHOIS: NS-LOOKUP }===================*\n\n"
#echo "Gathering NS-lookup Details . . . . ."
ip_addresses=$(nslookup $target)
echo "$ip_addresses" > $results_dir/Domain_reconnaissance/nslookup.txt
cat $results_dir/Domain_reconnaissance/nslookup.txt 2> /dev/null
#echo "----------------------------------------------------------------"
printf "${GRN}"
echo -ne '[||| ][20%]\r'
sleep 1
echo -ne '[||||||| ][40%]\r'
sleep 1
echo -ne '[|||||||||||||| ][60%]\r'
sleep 1