forked from screetsec/Sudomy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sudomy
executable file
·1371 lines (1195 loc) · 50.7 KB
/
sudomy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env bash
#-Metadata----------------------------------------------------#
# Filename: sudomy (v1.2.1) (Update: 2021-04-19) #
#-Info--------------------------------------------------------#
# Fast Subdomain Enumeration & Analysis. #
#-Author(s)---------------------------------------------------#
# Edo maland ~ @screetsec #
#-Operating System--------------------------------------------#
# Designed for & tested on: Linux #
# Reported working : Ubuntu 18 #
# : Parrot #
# : Kali Linux #
# : WSL Windows (10.0.17134 N/A Build 17134 #
# : MacOS (Mojave) #
#-Licence-----------------------------------------------------#
# MIT License ~ http://opensource.org/licenses/MIT #
#-------------------------------------------------------------#
### Variable Name and Version
APPNAME="sud⍥my.sh"
VERSION="1.2.1#dev"
### Calling Source
source sudomy.api
source slack.conf
source sudomy.conf
#### Command calling
goBanner() {
echo -e ${RED}" ___ _${YELLOW} _ _ ${GREEN} ${RESET}"
echo -e ${RED}"/ __|_ _ __| ${YELLOW}(_)(_)${GREEN}_ __ _ _ ${RESET}"
echo -e ${RED}"\__ \ || / _ ${YELLOW}/ __ \ ${GREEN} ' \ || |${RESET}"
echo -e ${RED}"|___/\_,_\__,_${YELLOW}\____/${GREEN}_|_|_\_, |${RESET}"
echo -e ${RED}" ${YELLOW} ${GREEN} |__/${RESET} v{${RED}${VERSION}${RESET}} by ${GREEN}@screetsec ${RESET}"
echo -e "${YELLOW}Sud⍥my ${RESET}- Fast Subdmain Enumeration and Analyzer ${RESET} "
echo -e "\t http://github.com/screetsec/sudomy\n"
}
#### Colors Output
RESET="\033[0m" # Normal Colour
RED="\033[0;31m" # Error / Issues
GREEN="\033[0;32m" # Successful
BOLD="\033[01;01m" # Highlight
WHITE="\033[1;37m" # BOLD
YELLOW="\033[1;33m" # Warning
PADDING=" "
DPADDING="\t\t"
#### Other Colors / Status Code
LGRAY="\033[0;37m" # Light Gray
LRED="\033[1;31m" # Light Red
LGREEN="\033[1;32m" # Light GREEN
LBLUE="\033[1;34m" # Light Blue
LPURPLE="\033[1;35m" # Light Purple
LCYAN="\033[1;36m" # Light Cyan
SORANGE="\033[0;33m" # Standar Orange
SBLUE="\033[0;34m" # Standar Blue
SPURPLE="\033[0;35m" # Standar Purple
SCYAN="\033[0;36m" # Standar Cyan
DGRAY="\033[1;30m" # Dark Gray
goHelp() {
goBanner
echo -e "${BOLD}Usage${RESET}: ${APPNAME} [${BOLD}-h [--help]$RESET] [${BOLD}-s[--source]${RESET}][${BOLD}-d[--domain=]${RESET}] \n"
echo -e "${BOLD}Example${RESET}: ${APPNAME} ${BOLD}-d ${RESET}example.com${PADDING} "
echo -e "${PADDING}${PADDING}${PADDING}${PADDING} ${APPNAME} ${BOLD}-s${RESET} Shodan,VirusTotal ${BOLD}-d ${RESET}example.com"
echo -e "\n${BOLD}Best Argument:${RESET}"
echo -e "${PADDING}${RESET}sudomy -d domain.com -dP -eP -rS -cF -pS -tO -gW --httpx --dnsx -aI webanalyze --slack -sS\n"
echo -e "\n${BOLD}Optional Arguments:${RESET}"
echo -e "${PADDING}${BOLD}-a, ${RESET} --all${DPADDING} Running all Enumeration, no nmap & gobuster "
echo -e "${PADDING}${BOLD}-b, ${RESET} --bruteforce\t Bruteforce Subdomain Using Gobuster (Wordlist: ALL Top SecList DNS) "
echo -e "${PADDING}${BOLD}-d, ${RESET} --domain${DPADDING} domain of the website to scan"
echo -e "${PADDING}${BOLD}-h, ${RESET} --help${DPADDING} show this help message"
echo -e "${PADDING}${BOLD}-o, ${RESET} --outfile\t specify an output file when completed "
echo -e "${PADDING}${BOLD}-s, ${RESET} --source${DPADDING} Use source for Enumerate Subdomain"
echo -e "${PADDING}${BOLD}-aI,${RESET} --apps-identifier Identify technologies on website (ex: -aI webanalyze)"
echo -e "${PADDING}${BOLD}-dP,${RESET} --db-port\t Collecting port from 3rd Party default=shodan"
echo -e "${PADDING}${BOLD}-eP,${RESET} --extract-params\t Collecting URL Parameter from Engine"
echo -e "${PADDING}${BOLD}-tO,${RESET} --takeover\t Subdomain TakeOver Vulnerabilty Scanner"
echo -e "${PADDING}${BOLD}-wS,${RESET} --websocket\t WebSocket Connection Check"
echo -e "${PADDING}${BOLD}-cF,${RESET} --cloudfare\t Check an IP is Owned by Cloudflare"
echo -e "${PADDING}${BOLD}-pS,${RESET} --ping-sweep\t Check live host using methode Ping Sweep"
echo -e "${PADDING}${BOLD}-rS,${RESET} --resolver\t Convert domain lists to resolved IP lists without duplicates"
echo -e "${PADDING}${BOLD}-sC,${RESET} --status-code\t Get status codes, response from domain list"
echo -e "${PADDING}${BOLD}-nT,${RESET} --nmap-top\t Port scanning with top-ports using nmap from domain list"
echo -e "${PADDING}${BOLD}-sS,${RESET} --screenshot\t Screenshots a list of website (default: gowitness)"
echo -e "${PADDING}${BOLD}-nP,${RESET} --no-passive\t Do not perform passive subdomain enumeration "
echo -e "${PADDING}${BOLD}-gW,${RESET} --gwordlist\t Generate wordlist based on collecting url resources (Passive) "
echo -e "${PADDING}${BOLD} ${RESET} --httpx${DPADDING} Perform httpx multiple probers using retryablehttp "
echo -e "${PADDING}${BOLD} ${RESET} --dnsx\t Perform multiple dns queries (dnsx) "
echo -e "${PADDING}${BOLD} ${RESET} --no-probe\t Do not perform httprobe "
echo -e "${PADDING}${BOLD} ${RESET} --html${DPADDING} Make report output into HTML "
echo -e "${PADDING}${BOLD} ${RESET} --graph${DPADDING} Network Graph Visualization"
echo -e "\n${BOLD}Sources:${RESET}"
echo -e "${PADDING}${YELLOW}+${RESET} Shodan${DPADDING} http://developer.shodan.io"
echo -e "${PADDING}${YELLOW}+${RESET} VirusTotal${PADDING}\t https://www.virustotal.com"
echo -e "${PADDING}${YELLOW}+${RESET} Censys${DPADDING} http://censys.io"
echo -e "${PADDING}${YELLOW}+${RESET} Certspotter${DPADDING} https://api.certspotter.com"
echo -e "${PADDING}${YELLOW}+${RESET} BinaryEdge${DPADDING} https://docs.binaryedge.io/"
echo -e "${PADDING}${YELLOW}+${RESET} Hackertarget${PADDING}\t https://api.hackertarget.com"
echo -e "${PADDING}${YELLOW}+${RESET} Threatminer${DPADDING} https://api.threatminer.org"
echo -e "${PADDING}${YELLOW}+${RESET} CrtSH${DPADDING} https://crt.sh"
echo -e "${PADDING}${YELLOW}+${RESET} DnsDB${DPADDING} https://www.dnsdb.info"
echo -e "${PADDING}${YELLOW}+${RESET} BufferOver${DPADDING} http://dns.bufferover.run"
echo -e "${PADDING}${YELLOW}+${RESET} Sypse${DPADDING} https://spyse.com"
echo -e "${PADDING}${YELLOW}+${RESET} Threatcrowd${DPADDING} http://threatcrowd.org"
echo -e "${PADDING}${YELLOW}+${RESET} Dnsdumpster${DPADDING} https://dnsdumpster.com"
echo -e "${PADDING}${YELLOW}+${RESET} Riddler${DPADDING} http://riddler.io"
echo -e "${PADDING}${YELLOW}+${RESET} Webarchive${DPADDING} http://web.archive.org"
echo -e "${PADDING}${YELLOW}+${RESET} SecurityTrails\t http://securitytrails.com"
echo -e "${PADDING}${YELLOW}+${RESET} RapidDNS${DPADDING} https://rapiddns.io"
echo -e "${PADDING}${YELLOW}+${RESET} AlienVault${DPADDING} https://otx.alienvault.com"
echo -e "${PADDING}${YELLOW}+${RESET} CommonCrawl${DPADDING} http://index.commoncrawl.org"
echo -e "${PADDING}${YELLOW}+${RESET} FBcert${DPADDING} https://graph.facebook.com"
echo -e "${PADDING}${YELLOW}+${RESET} URLScan${DPADDING} https://urlscan.io"
echo -e "${PADDING}${YELLOW}+${RESET} RiskIQ${DPADDING} https://community.riskiq.com\n"
}
[[ "${#}" == 0 ]] && {
goHelp && exit 1
}
## Check Folder Results
[[ ! -e "${OUT}" ]] &&
mkdir -p "${OUT}" || true
# COMMAND LINE SWITCHES
while [[ "${#}" -gt 0 ]]; do
args="${1}"
case "$(echo ${args} | tr '[:upper:]' '[:lower:]')" in
# Target
"-d" | "--domain")
DOMAIN="${2}"
shift
shift
;;
"--domain="*)
DOMAIN="${1#*=}"
shift 1
;;
# Help
"-h" | "--help")
goHelp
exit 1
;;
# sources
"-s" | "--sources")
SOURCE=true
LIST=${2}
shift
shift
;;
# Verbose
"-v" | "--verbose")
verbose=true
shift
;;
"-ps" | "--ping-sweep")
PLUGIN_PING_SWEEP=true
shift
;;
"-rs" | "--resolver")
PLUGIN_RESOLV_SD=true
shift
;;
"-sc" | "--status-code")
PLUGIN_STATUS_CODE=true
shift
;;
"-nt" | "--nmap-top")
PLUGIN_NMAP_PORTS=true
shift
;;
"-to" | "--takeover")
PLUGIN_TAKEOVER=true
shift
;;
"-ws" | "--websocket")
PLUGIN_WEBSOCKET=true
shift
;;
\
"-cf" | "--cloudfare")
PLUGIN_CFCHECK=true
shift
;;
\
\
"-ai" | "--apps-identifier")
APPS_IDENTIFIER=true
LIST_API=${2}
shift
shift
;;
"-dp" | "--db-port")
PLUGIN_DB_PORT=true
shift
;;
"-ep" | "--extract-params")
PLUGIN_EXTRACT_PARAMS=true
shift
;;
\
"-ss" | "--screenshot")
PLUGIN_DOMAIN_SCREENSHOTS=true
LIST_SCREENSHOT=${2}
# PLUGIN_AQUATONE=true
PLUGIN_GOWITNESS=true
shift
shift
;;
\
"-b" | "--bruteforce")
PLUGIN_GOBUSTER=true
shift
;;
"-np" | "--no-passive")
SOURCE=none
shift
;;
\
"--no-probe")
PLUGIN_HTTPROBE=false
shift
;;
"-o" | "--outfile")
DESTINATION=true
OUTFILE=$2
shift
shift
;;
\
"--html")
REPORTS=1
shift
;;
"--slack")
SLACK=true
shift
;;
\
"--httpx")
PLUGIN_HTTPX=true
shift
;;
\
"--dnsx")
PLUGIN_DNSX=true
shift
;;
"--graph")
PLUGIN_NGRAPH=true
shift
;;
"-gw" | "--gwordlist")
PLUGIN_WORDLISTS=true
shift
;;
\
"-a" | "--all")
PLUGIN_DOMAIN_SCREENSHOTS=true
PLUGIN_TAKEOVER=true
PLUGIN_STATUS_CODE=true
PLUGIN_RESOLV_SD=true
PLUGIN_PING_SWEEP=true
PLUGIN_DB_PORT=true
PLUGIN_EXTRACT_PARAMS=true
PLUGIN_HTTPX=true
PLUGIN_DNSX=true
PLUGIN_CFCHECK=true
PLUGIN_NGRAPH=true
PLUGIN_WORDLISTS=true
shift
;;
\
\
"-"*)
echo -e " ${YELLOW}[i]${RESET} Invalid option: ${RED}${1}${RESET}" && shift && exit 1
;;
*)
echo -e " ${YELLOW}[i]${RESET} Invalid: Unknown option ${RED}${1}${RESET}" && shift && exit
exit
;;
esac
done
if [ -z "${DOMAIN}" ]; then
echo "You need to specify a target to use. Type --help for command usage."
exit
fi
## Check mandatory dependencies
dependencies=(nmap dig jq)
for dependency in "${dependencies[@]}"; do
type -p "$dependency" &>/dev/null || {
echo "error: Error: require ${dependency} but it's is not installed. Aborting." >&2
exit 1
}
done
## Check GNU grep for MacOS
if [[ "$(grep -V)" == *"BSD"* ]]; then
echo "Error: require GNU grep. Aborting." >&2
exit 1
fi
## Check 3rd dependencies
if [[ ${PLUGIN_WAPPALYZER} == true ]]; then
command -v wappalyzer >/dev/null 2>&1 || {
echo "Error: require wappalyzer for identify apps but it's is not installed. Aborting." >&2
exit 1
}
fi
ARG_PARS_LIST() {
echo -e "\n${BOLD}[${LGREEN}+${RESET}${BOLD}]${RESET} Parsing & Sorting list Domain "
echo -e "---------------------------------------------\n"
DATE_LOG=$(date +%m-%d-%Y)
[[ ! -e "${OUT}/${DATE_LOG}/${DOMAIN}" ]] &&
mkdir -p "${OUT}/${DATE_LOG}/${DOMAIN}" || true
sed 's/\*\.//g' ${OUT}/*.log | grep -e "${DOMAIN}" | sort -u >${OUT}/${DATE_LOG}/${DOMAIN}/${RESULT_SUBDOMAIN}
rm -r ${OUT}/*.log >/dev/null 2>&1 ##REMOVE LOG
if [[ -f ${OUT}/${DATE_LOG}/${DOMAIN}/${RESULT_SUBDOMAIN} ]]; then
COUNT=$(cat ${OUT}/${DATE_LOG}/${DOMAIN}/${RESULT_SUBDOMAIN} | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Total ${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]\n"
cat ${OUT}/${DATE_LOG}/${DOMAIN}/${RESULT_SUBDOMAIN} |
while read VERBOSE; do
echo -e ${YELLOW}"\t - ${RESET}$VERBOSE"
done
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Total ${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
fi
}
## Calling Engine (Third Party-Sites) Total 18
## Selecting the good third-party sites, the enumeration process can be optimized
# source ${Engine_Entrust} // (not accessible) anymore
source ${Engine_Shodan}
source ${Engine_VirusTotal}
source ${Engine_Censys}
source ${Engine_Certspotter}
source ${Engine_BinaryEdge}
source ${Engine_Hackertarget}
source ${Engine_Threatminer}
source ${Engine_CrtSH}
source ${Engine_Spyse}
source ${Engine_BufferOver}
source ${Engine_Threatcrowd}
source ${Engine_Dnsdumpster}
source ${Engine_Riddler}
source ${Engine_Webarchive}
source ${Engine_SecurityTrails}
source ${Engine_RapidDNS}
source ${Engine_AlienVault}
source ${Engine_CommonCrawl}
source ${Engine_UrlScan}
source ${Engine_DNSDB}
source ${Engine_RiskIQ}
source ${Engine_FBCert}
# Timestamp
current_date_time=$(date "+%Y-%m-%d %H:%M:%S")
goBanner ## Called banner sudomy
echo -e "\n${BOLD}[${YELLOW}!${RESET}${BOLD}]${RESET} This tool is for ${BOLD}educational${RESET} purpose only. "
echo -e "${BOLD} ${LGREEN} ${RESET}${BOLD} ${RESET} Usage of sudomy for ${BOLD}attacking${RESET} targets ${BOLD}without ${RESET}prior mutual consent is ${RED}illegal${RESET} "
echo -e "${BOLD} ${LGREEN} ${RESET}${BOLD} ${RESET} developers assume no liability and are not responsible for any misuse or damage cause by this program "
echo -e "\n${BOLD}[${LCYAN}⍥${RESET}${BOLD}]${RESET} Perfoming Sud⍥my scans "
# pkg httprobe, checking in local system and if not have try setup pkg to local system /usr/local/bin
command -v ${_HTTPROBE} >/dev/null 2>&1 || {
echo -e "${BOLD}${PADDING}${PADDING}- ${YELLOW}Warning: ${RESET}require ${RED}${_HTTPROBE}${RESET} but it's is not installed.${GREEN}Trying to setup${RESET} pkg_${_HTTPROBE} " >&2
cp -r ${PKG_HTTPROBE} /usr/local/bin/
}
# pkg httpx, checking in local system and if not have try setup pkg to local system /usr/local/bin
command -v ${_HTTPX} >/dev/null 2>&1 || {
echo -e "${BOLD}${PADDING}${PADDING}- ${YELLOW}Warning: ${RESET}require ${RED}${_HTTPX}${RESET} but it's is not installed.${GREEN}Trying to setup${RESET} pkg_${_HTTPX} " >&2
cp -r ${PKG_HTTPX} /usr/local/bin/
}
# pkg dnsx, checking in local system and if not have try setup pkg to local system /usr/local/bin
command -v ${_DNSX} >/dev/null 2>&1 || {
echo -e "${BOLD}${PADDING}${PADDING}- ${YELLOW}Warning: ${RESET}require ${RED}${_DNSX}${RESET} but it's is not installed.${GREEN}Trying to setup${RESET} pkg_${_HTTPX} " >&2
cp -r ${PKG_DNSX} /usr/local/bin/
}
# pkg gobuster, checking in local system and if not have try setup pkg to local system /usr/local/bin
command -v ${_GOBUSTER} >/dev/null 2>&1 || {
echo -e "${BOLD}${PADDING}${PADDING}- ${YELLOW}Warning: ${RESET}require ${RED}${_GOBUSTER}${RESET} but it's is not installed.${GREEN}Trying to setup${RESET} pkg_${_GOBUSTER} " >&2
cp -r ${PKG_GOBUSTER} /usr/local/bin/
}
# pkg webanalze, checking in local system and if not have try setup pkg to local system /usr/local/bin
command -v ${_WEBANALYZE} >/dev/null 2>&1 || {
echo -e "${BOLD}${PADDING}${PADDING}- ${YELLOW}Warning: ${RESET}require ${RED}${_WEBANALYZE}${RESET} but it's is not installed.${GREEN}Trying to setup${RESET} pkg_${_WEBANALYZE} " >&2
cp -r ${PKG_WEBANALYZE} /usr/local/bin/
}
# pkg cf-check, checking in local system and if not have try setup pkg to local system /usr/local/bin
command -v ${_CFCHECK} >/dev/null 2>&1 || {
echo -e "${BOLD}${PADDING}${PADDING}- ${YELLOW}Warning: ${RESET}require ${RED}${_CFCHECK}${RESET} but it's is not installed.${GREEN}Trying to setup${RESET} pkg_${_CFCHECK} " >&2
cp -r ${PKG_CFCHECK} /usr/local/bin/
}
# pkg gowitness, checking in local system and if not have try setup pkg to local system /usr/local/bin
command -v ${_GOWITNESS} >/dev/null 2>&1 || {
echo -e "${BOLD}${PADDING}${PADDING}- ${YELLOW}Warning: ${RESET}require ${RED}${_GOWITNESS}${RESET} but it's is not installed.${GREEN}Trying to setup${RESET} pkg_${_GOWITNESS} " >&2
cp -r ${PKG_GOWITNESS} /usr/local/bin/
}
# pkg unfurl, checking in local system and if not have try setup pkg to local system /usr/local/bin
command -v ${_UNFURL} >/dev/null 2>&1 || {
echo -e "${BOLD}${PADDING}${PADDING}- ${YELLOW}Warning: ${RESET}require ${RED}${_UNFURL}${RESET} but it's is not installed.${GREEN}Trying to setup${RESET} pkg_${_UNFURL} " >&2
cp -r ${PKG_UNFURL} /usr/local/bin/
}
# pkg subjack, checking in local system and if not have try setup pkg to local system /usr/local/bin
command -v ${_SUBJACK} >/dev/null 2>&1 || {
echo -e "${BOLD}${PADDING}${PADDING}- ${YELLOW}Warning: ${RESET}require ${RED}${_SUBJACK}${RESET} but it's is not installed.${GREEN}Trying to setup${RESET} pkg_${_SUBJACK} " >&2
cp -r ${PKG_SUBJACK} /usr/local/bin/
}
# pkg aquatone, checking in local system and if not have try setup pkg to local system /usr/local/bin
command -v ${_AQUATONE} >/dev/null 2>&1 || {
echo -e "${BOLD}${PADDING}${PADDING}- ${YELLOW}Warning: ${RESET}require ${RED}${_AQUATONE}${RESET} but it's is not installed.${GREEN}Trying to setup${RESET} pkg_${_AQUATONE} " >&2
cp -r ${PKG_AQUATONE} /usr/local/bin/
}
echo -e "\n${BOLD}[${LBLUE}*${RESET}${BOLD}]${RESET} Load target domain: ${LGREEN}${DOMAIN}${RESET} "
echo -e "${BOLD}${PADDING}${PADDING}-${RESET}${BOLD}${RESET} ${LGREEN}starting${RESET} scanning @ ${current_date_time} "
echo -e "\n${BOLD}[${LGREEN}+${RESET}${BOLD}]${RESET} Running & Checking source to be used "
echo -e "---------------------------------------------\n"
# Running Source for enumarte subdomain
## This List for check if one of source get errors
#SHODAN ## http://developer.shodan.io/billing/
#WEBARCHIVE ## http://web.archive.org/
#DNSDUMPSTER ## https://dnsdumpster.com/
#VIRUSTOTAL ## https://www.virustotal.com/vtapi/v2/domain/
#CERTSPOTTER ## https://api.certspotter.com
#CERTSH ## https://crt.sh/
#BINARYEDGE ## https://docs.binaryedge.io/api-v2/
#SECURITY_TRAILS ## http://securitytrails.com/
#CENSYS ## http://censys.io/
#THREATMINER ## https://api.threatminer.org
#FINDSUBDOMAIN ## http://findsubdomains.com/
#BUFFEROVER ## http://dns.bufferover.run
#HACKERTARGET ## https://api.hackertarget.com/
#ENTRUST ## https://ctsearch.entrust.com/
#THREATCROWD ## http://threatcrowd.org/
#RIDDLER ## http://riddler.io/
if [[ ${SOURCE} == true ]]; then
for arr in $(echo ${LIST} | tr "," "\n" | tr '[:upper:]' '[:lower:]'); do
eval "${arr}=true"
done
[[ ${shodan} == true ]] && {
SHODAN
if [[ -f ${OUT_SHODAN} ]]; then
COUNT=$(cat ${OUT_SHODAN} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${virustotal} == true ]] && {
VIRUSTOTAL
if [[ -f ${OUT_VIRUSTOTAL} ]]; then
COUNT=$(cat ${OUT_VIRUSTOTAL} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${certspotter} == true ]] && {
CERTSPOTTER
if [[ -f ${OUT_CERTSPOTTER} ]]; then
COUNT=$(cat ${OUT_CERTSPOTTER} | sort -u | wc -l)
# echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${binaryedge} == true ]] && {
BINARYEDGE
if [[ -f ${OUT_BINARYEDGE} ]]; then
COUNT=$(cat ${OUT_BINARYEDGE} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${hackertarget} == true ]] && {
HACKERTARGET
if [[ -f ${OUT_HACKERTARGET} ]]; then
COUNT=$(cat ${OUT_HACKERTARGET} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${threatminer} == true ]] && {
THREATMINER
if [[ -f ${OUT_THREATMINER} ]]; then
COUNT=$(cat ${OUT_THREATMINER} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${crtsh} == true ]] && {
CERTSH
if [[ -f ${OUT_CRTSH} ]]; then
COUNT=$(cat ${OUT_CRTSH} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${bufferover} == true ]] && {
BUFFEROVER
if [[ -f ${OUT_BUFFEROVER} ]]; then
COUNT=$(cat ${OUT_BUFFEROVER} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${entrust} == true ]] && {
#ENTRUST
if [[ -f ${OUT_ENTRUST} ]]; then
COUNT=$(cat ${OUT_ENTRUST} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${threatcrowd} == true ]] && {
THREATCROWD
if [[ -f ${OUT_THREATCROWD} ]]; then
COUNT=$(cat ${OUT_THREATCROWD} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${dnsdumpster} == true ]] && {
DNSDUMPSTER
if [[ -f ${OUT_DNSDUMPSTER} ]]; then
COUNT=$(cat ${OUT_DNSDUMPSTER} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${riddler} == true ]] && {
RIDDLER
if [[ -f ${OUT_RIDDLER} ]]; then
COUNT=$(cat ${OUT_RIDDLER} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${webarchive} == true ]] && {
WEBARCHIVE
if [[ -f ${OUT_WEBARCHIVE} ]]; then
COUNT=$(cat ${OUT_WEBARCHIVE} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${securitytrails} == true ]] && {
SECURITY_TRAILS
if [[ -f ${OUT_STRAILS} ]]; then
COUNT=$(cat ${OUT_STRAILS} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${censys} == true ]] && {
CENSYS
if [[ -f ${OUT_CENSYS} ]]; then
COUNT=$(cat ${OUT_CENSYS} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${rapiddns} == true ]] && {
RAPIDDNS
if [[ -f ${OUT_RAPIDDNS} ]]; then
COUNT=$(cat ${OUT_RAPIDDNS} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${alienvault} == true ]] && {
ALIENVAULT
if [[ -f ${OUT_ALIENVAULT} ]]; then
COUNT=$(cat ${OUT_ALIENVAULT} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${commoncrawl} == true ]] && {
COMMONCRAWL
if [[ -f ${OUT_COMMONCRAWL} ]]; then
COUNT=$(cat ${OUT_COMMONCRAWL} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${urlscan} == true ]] && {
URLSCAN
if [[ -f ${OUT_URLSCAN} ]]; then
COUNT=$(cat ${OUT_URLSCAN} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${dnsdb} == true ]] && {
DNSDB
if [[ -f ${OUT_DNSDB} ]]; then
COUNT=$(cat ${OUT_DNSDB} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${spyse} == true ]] && {
SPYSE
if [[ -f ${OUT_SPYSE} ]]; then
COUNT=$(cat ${OUT_SPYSE} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${riskiq} == true ]] && {
RISKIQ
if [[ -f ${OUT_RISKIQ} ]]; then
COUNT=$(cat ${OUT_RISKIQ} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
[[ ${fbcert} == true ]] && {
FBCERT
if [[ -f ${OUT_FBCERT} ]]; then
COUNT=$(cat ${OUT_FBCERT} | sort -u | wc -l)
#echo -e "\t${BLUE}-${RESET}${RESET} Subdomain total: ${COUNT}\n"
fi
}
elif
[[ ${SOURCE} == false ]]
then
args_source=(SHODAN WEBARCHIVE DNSDUMPSTER VIRUSTOTAL CERTSPOTTER CERTSH BINARYEDGE SECURITY_TRAILS CENSYS THREATMINER BUFFEROVER HACKERTARGET SPYSE THREATCROWD RIDDLER RAPIDDNS ALIENVAULT COMMONCRAWL URLSCAN DNSDB RISKIQ FBCERT)
for i in "${!args_source[@]}"; do
"${args_source[i]}" &
done
wait
fi
echo -e "\n${BOLD}[${LGREEN}+${RESET}${BOLD}]${RESET} Get & Count subdomain total From source "
echo -e "---------------------------------------------\n"
if [[ ${verbose} == true ]]; then
if [[ -f ${OUT_SHODAN} ]]; then
COUNT=$(cat ${OUT_SHODAN} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Shodan${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_SHODAN} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_HACKERTARGET} ]]; then
COUNT=$(cat ${OUT_HACKERTARGET} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Hackertarget${RESET}${DPADDING}\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_HACKERTARGET} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_VIRUSTOTAL} ]]; then
COUNT=$(cat ${OUT_VIRUSTOTAL} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Virustotal${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_VIRUSTOTAL} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_CERTSPOTTER} ]]; then
COUNT=$(cat ${OUT_CERTSPOTTER} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Certspotter${RESET}${DPADDING}\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_CERTSPOTTER} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_BINARYEDGE} ]]; then
COUNT=$(cat ${OUT_BINARYEDGE} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}BinaryEdge${RESET}${DPADDING}\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_BINARYEDGE} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_THREATMINER} ]]; then
COUNT=$(cat ${OUT_THREATMINER} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Threatminer${RESET}${DPADDING}\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_THREATMINER} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_CRTSH} ]]; then
COUNT=$(cat ${OUT_CRTSH} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}CrtSH${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_CRTSH} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_BUFFEROVER} ]]; then
COUNT=$(cat ${OUT_BUFFEROVER} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}BufferOver${RESET}${DPADDING}\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_BUFFEROVER} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_ENTRUST} ]]; then
COUNT=$(cat ${OUT_ENTRUST} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Entrust${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_ENTRUST} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_SPYSE} ]]; then
COUNT=$(cat ${OUT_SPYSE} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Spyse${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_SPYSE} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_THREATCROWD} ]]; then
COUNT=$(cat ${OUT_THREATCROWD} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Threatcrowd${RESET}${DPADDING}\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_THREATCROWD} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_DNSDUMPSTER} ]]; then
COUNT=$(cat ${OUT_DNSDUMPSTER} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Dnsdumpster${RESET}${DPADDING}\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_DNSDUMPSTER} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_RIDDLER} ]]; then
COUNT=$(cat ${OUT_RIDDLER} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Riddler${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_RIDDLER} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_WEBARCHIVE} ]]; then
COUNT=$(cat ${OUT_WEBARCHIVE} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Webarchive${RESET}${DPADDING}\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_WEBARCHIVE} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_STRAILS} ]]; then
COUNT=$(cat ${OUT_STRAILS} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Securitytrails${RESET}${DPADDING}\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_STRAILS} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_CENSYS} ]]; then
COUNT=$(cat ${OUT_CENSYS} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Censys${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_CENSYS} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_RAPIDDNS} ]]; then
COUNT=$(cat ${OUT_RAPIDDNS} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}RapidDNS${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_RAPIDDNS} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_ALIENVAULT} ]]; then
COUNT=$(cat ${OUT_ALIENVAULT} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}AlienVault${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_ALIENVAULT} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_COMMONCRAWL} ]]; then
COUNT=$(cat ${OUT_COMMONCRAWL} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}CommonCrawl${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_COMMONCRAWL} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_URLSCAN} ]]; then
COUNT=$(cat ${OUT_URLSCAN} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}UrlScan${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_URLSCAN} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_DNSDB} ]]; then
COUNT=$(cat ${OUT_DNSDB} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}DNSDB${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_DNSDB} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_SPYSE} ]]; then
COUNT=$(cat ${OUT_SPYSE} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Spyse${RESET}${DPADDING}\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_SPYSE} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_RISKIQ} ]]; then
COUNT=$(cat ${OUT_RISKIQ} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}RiskIQ${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_RISKIQ} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
if [[ -f ${OUT_FBCERT} ]]; then
COUNT=$(cat ${OUT_FBCERT} | sort -u | wc -l)
echo -e "\n${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}FBcert${RESET}${DPADDING}\t\t[${GREEN}${COUNT}${RESET}]"
cat ${OUT_FBCERT} |
while read VERBOSE; do
echo -e "\t - $VERBOSE"
done
fi
ARG_PARS_LIST
else
if [[ -f ${OUT_SHODAN} ]]; then
COUNT=$(cat ${OUT_SHODAN} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Shodan: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_HACKERTARGET} ]]; then
COUNT=$(cat ${OUT_HACKERTARGET} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Hackertarget: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_SPYSE} ]]; then
COUNT=$(cat ${OUT_SPYSE} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Spyse: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_VIRUSTOTAL} ]]; then
COUNT=$(cat ${OUT_VIRUSTOTAL} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Virustotal: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_CERTSPOTTER} ]]; then
COUNT=$(cat ${OUT_CERTSPOTTER} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Certspotter: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_BINARYEDGE} ]]; then
COUNT=$(cat ${OUT_BINARYEDGE} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Binaryedge: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_THREATMINER} ]]; then
COUNT=$(cat ${OUT_THREATMINER} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Threatminer: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_CRTSH} ]]; then
COUNT=$(cat ${OUT_CRTSH} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Certsh: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_BUFFEROVER} ]]; then
COUNT=$(cat ${OUT_BUFFEROVER} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}BufferOver: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_ENTRUST} ]]; then
COUNT=$(cat ${OUT_ENTRUST} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Entrust: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_THREATCROWD} ]]; then
COUNT=$(cat ${OUT_THREATCROWD} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Threatcrowd: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_DNSDUMPSTER} ]]; then
COUNT=$(cat ${OUT_DNSDUMPSTER} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Dnsdumpster: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_RIDDLER} ]]; then
COUNT=$(cat ${OUT_RIDDLER} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Riddler: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_WEBARCHIVE} ]]; then
COUNT=$(cat ${OUT_WEBARCHIVE} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Webarchive: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_STRAILS} ]]; then
COUNT=$(cat ${OUT_STRAILS} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}SecurityTrails: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_CENSYS} ]]; then
COUNT=$(cat ${OUT_CENSYS} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}Censys: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_RAPIDDNS} ]]; then
COUNT=$(cat ${OUT_RAPIDDNS} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}RapidDNS: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_ALIENVAULT} ]]; then
COUNT=$(cat ${OUT_ALIENVAULT} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}AlienVault: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_COMMONCRAWL} ]]; then
COUNT=$(cat ${OUT_COMMONCRAWL} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}CommonCrawl: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_URLSCAN} ]]; then
COUNT=$(cat ${OUT_URLSCAN} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}UrlScanIo: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_DNSDB} ]]; then
COUNT=$(cat ${OUT_DNSDB} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}DNSDB: Total Subdomain (${COUNT})${RESET}"
fi
if [[ -f ${OUT_RISKIQ} ]]; then
COUNT=$(cat ${OUT_RISKIQ} | sort -u | wc -l)
echo -e "${PADDING}${YELLOW}${PADDING}⍥${PADDING}${RESET}RiskIQ: Total Subdomain (${COUNT})${RESET}"
fi