-
Notifications
You must be signed in to change notification settings - Fork 25
/
Grecon
executable file
·815 lines (708 loc) · 32.1 KB
/
Grecon
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
#!/bin/bash
# Version: 2.0.1
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# License holder: DR34M-M4K3R#7751
#IMPORTS
#NONE YET
#COMMAND
clear
#COLORS
#RED = \e[1;31m
#BLUE = \e[34m
#END = \e[0m
#COLORS2
red='\e[1;31m'
yellow='\e[0;33m'
Blue='\e[1;34m'
function get_version() {
local file="$1"
local version_line
version_line=$(sed -n '2p' "$file")
local version_number
version_number=$(echo "$version_line" | cut -d " " -f 3)
echo "$version_number"
}
# SAVING FUNCTIONS
function save() {
echo -e "[\e[32m?\e[0m] Save output to a file?"
echo ""
read -p "y/N" temp
filename="temp"
appendfilename="temp"
appendfile=false
savefile=false
tempfile=$PATH_TO_REPORTS/tempfile
if [ "$temp" == "y" ]; then
savefile=true
if [ "$(find "$PATH_TO_REPORTS"/ -type f -name 'GR-report*')" == "" ]; then
read -p "No previous GhostRecon data file found in $PATH_TO_REPORTS. Enter a new file name: GR-report_" filename
else
echo -e "\n\n[\e[32m-\e[0m] Found those already existing reports in $PATH_TO_REPORTS: \n"
counter=1
find "$PATH_TO_REPORTS" -type f -name 'GR-report*' | while read -r line ; do
echo -e "[\e[32m$counter\e[0m] $line"
counter=$((counter+1))
done
echo -e "\n\e[1;31mWould you like to append the results to one of them?\e[0m"
read -p "y/N >" temp
if [ "$temp" == "y" ]; then
appendfile=true
echo -e "Please enter the \e[32mnumber\e[0m of the file you want to append:\n"
read -p ">" temp
counter=1
find "$PATH_TO_REPORTS" -type f -name 'GR-report*' | while read -r line ; do
if [[ "$counter" == "$temp" ]]; then
appendfilename=$(basename $line) # -- doesnt work alone, the variable somehow resets after the loop is finished so i have to write the variable into a file and later recover it from the file :(
echo "$PATH_TO_REPORTS/$appendfilename" > $tempfile
fi
counter=$((counter+1))
done
else
read -p "Enter a file name: GR-report_" filename
fi
fi
fi
filename=$PATH_TO_REPORTS/GR-report_$filename.txt
}
function collapsefiles() {
if [[ "$appendfile" == "true" ]]; then
appendfilename=$(cat $tempfile)
cat "$filename" >> "$appendfilename"
echo -e "[\e[32m*\e[0m] $appendfilename updated\n"
rm "$filename" $tempfile
elif [[ "$savefile" == "false" ]]; then
rm "$filename"
else
echo -e "\n[\e[32m*\e[0m] $filename created in $PATH_TO_REPORTS\n"
fi
}
function booleancolor() {
if [[ $1 == false ]]; then
#green
echo -e "\e[0;32m No\e[0m"
elif [[ $1 == true ]]; then
#red
echo -e "\e[1;31m Yes\e[0m"
else
echo "$1"
fi
}
function reversedbooleancolor() {
if [[ $1 == true ]]; then
#green
echo -e "\e[0;32m Yes\e[0m"
elif [[ $1 == false ]]; then
#red
echo -e "\e[1;31m No\e[0m"
else
echo " $1"
fi
}
function booleanconvertor() {
if [[ $1 == true ]]; then
echo -e " Yes"
elif [[ $1 == false ]]; then
echo -e " No"
else
echo " $1"
fi
}
# Compare two files
compare_files() {
local file1="$1"
local file2="$2"
# Use diff to compare the files
if diff -q "$file1" "$file2" > /dev/null; then
return 0
else
return 1
fi
}
# QUIT FUNCTION
function quit (){
echo -e "\e[1;31m THANKS FOR USING GHOST RECON! \e[0m"
exit 2
}
# CATCH CTRL
trap "quit" 2
function oldbanner
{
clear
echo -e "
\e[32m____\e[0m _ _ \e[32m____\e[0m
\e[32m / ___|\e[0m |__ ___ ___| |_\e[32m| _ \ V.1.3\e[0m___ ___ _ __
\e[32m| | _\e[0m| '_ \ / _ \/ __| __\e[32m| |_) \e[0m/ _ \/ __/ _ \| '_ \.
/\. \e[32m| |_| |\e[0m | | | (_) \__ \ |_\e[32m| _ <\e[0m __/ (_| (_) | | | |
/**\. \e[32m\____|\e[0m_| |_|\___/|___/\__\e[32m|_| \_\ \e[0m__|\___\___/|_| |_|
/****\ /\. \e[32mDEVELOPER: DR43M-M4K3R\e[0m
/ \ /**\.
/ /\ / \ /\ /\ /\ /\ /\/\/\ /\.
/ / \ / \ / \/\/ \/ \ /\/ \/\ /\ /\/ / / \/ \.
/ / \/ /\ \ / \ \ / \/ / / \/ \/ \ / \ \.
/ / \/ \/\ \ / \ / / \.
__/__/_______/___/__\___\__________________________________________________."
echo -e "\e[32m GhostRecon: investigate, search, anonymously.\e[0m"
echo -e "\e[1;31m !!! TYPE h TO SEE COMMANDS !!!\e[0m"
echo -e "\e[1;31m !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! \e[0m"
echo ""
echo ""
echo ""
}
function banner
{
clear
echo -e "
\e[32m █████████ █████ █████ \e[0m ███████████
\e[32m ███░░░░░███ ░░███ ░░███ \e[0m ░░███░░░░░███
\e[32m ███ ░░░ ████████ ███████ █████ ██████ \e[0m ░███ ░███ ██████ ██████ ██████ ████████
\e[32m ░███ ░███ ░░██ ██ ░░██ ███░░ ░░░███░ \e[0m ░██████████ ███░░███ ███░░███ ███░░███░░███░░███
\e[32m ░███ █████ ░███ ░██ ░██ ░██ ░░█████ ░███ \e[0m ░███░░░░░███ ░███████ ░███ ░░░ ░███ ░███ ░███ ░███
\e[32m ░███ ░░██ ░███ ░██ ░██ ░██ ░░░██ ░███ \e[0m ░███ ░███ ░███░░░ ░███ ███░███ ░███ ░███ ░███
\e[32m ░██████████ ████ █████ ░███████ ██████ ░░███ \e[0m █████ █████░░██████ ░░██████ ░░██████ ████ █████
\e[32m ░░░░░░░░░ ░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░░ \e[0m░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░░░░ ░░░░ ░░░░░
'##::::'##:::::'#######:::::::::'#####:::
## ##:::: ##::::'##.... ##:::::::'##.. ##::
## ##:::: ##::::..::::: ##::::::'##:::: ##:
## ##:::: ##:::::'#######::::::: ##:::: ##:
## . ##:: ##:::::'##::::::::::::: ##:::: ##:
## :. ## ##:::::: ##::::::::'###:. ##:: ##::
## ::. ###::::::: #########: ###::. #####:::
## :::...::::::::.........::...::::.....::::\e[5m############\e[0m"
echo -e "\e[32m GhostRecon: Open Source Intelligence Investigations Made Easy\e[0m"
echo ""
}
banner
banner
function help
{
echo -e "
[\e[32m1\e[0m] \e[1;31m domain_scanner \e[0m Search all possible information for Domains.
[\e[32m2\e[0m] \e[1;31m IP_scanner \e[0m Search all possible information from an IP Address.
[\e[32m3\e[0m] \e[1;31m phone_scanner \e[0m Search all possible information from a phone number.
[\e[32m4\e[0m] \e[1;31m email_scanner \e[0m Search all possible information from an email.
[\e[32m5\e[0m] \e[1;31m email_socialscan \e[0m Detects Instagram, Twitter and Snapchat registration from an email.
[\e[32m6\e[0m] \e[1;31m link_scanner \e[0m Sniff all links from a Domain.
[\e[32m7\e[0m] \e[1;31m port_scanner \e[0m Sniff all links from a Domain.
[\e[32m8\e[0m] \e[1;31m criminal_scanner \e[0m Search if someone is recoreded as a criminal on all the USA.
[\e[32mc\e[0m] \e[1;31m clear \e[0m Clear terminal.
[\e[32mu\e[0m] \e[1;31m update \e[0m Update tool.
[\e[32mb\e[0m] \e[1;31m banner \e[0m To spawn banner.
[\e[32me\e[0m] \e[1;31m exit \e[0m Exit the tool
[\e[32mh\e[0m] \e[1;31m help \e[0m shows this help and exit.
[\e[32muni\e[0m] \e[1;31m uninstall \e[0m Wipe out your hard drive from any trace of Ghostrecon and his dependencies.
DON'T FORGET TO:
-Drink plenty of milk for your bones.
-Turn off the light when you leave."
echo ""
echo "This script is under the Mozilla Public License 2. https://www.mozilla.org/en-US/MPL/2.0/"
echo ""
}
a1='clear' ##
a2='banner' ##
a3='update' ##
a7='exit'
a8='uninstall'
#####################
b1='v' ##
b2='h' ##
b3='help' ##
b4='version' ##
b5='domain_scanner' #
b6='IP_scanner' #
b7='phone_scanner'
b8='email_scanner'
b9='email_socialscan'
b10='link_scanner'
b11='port_scanner'
b12='criminal_scanner'
b13='person_finder'
temp=""
PATH_TO_TOOLS="/usr/share/GhostRecon"
PATH_TO_REPORTS="$HOME/.config/GhostRecon"
banner
while true
do
greconinput="\e[31m[\e[0mGRECON\e[31m]\e[0m\n|\n└──>"
echo -e -n "$greconinput"
read x
if [ "$x" == "$a1" ]||[ "$x" == "c" ]; then
clear
banner
elif [ "$x" == "$a2" ]||[ "$x" == "b" ]; then
banner
elif [ "$x" == "$a3" ]||[ "$x" == "u" ]; then
path_to_temp_update="$PATH_TO_TOOLS"/Grecon_temp
sudo curl -s -o "$path_to_temp_update" https://raw.githubusercontent.com/KawaCoder/GhostRecon/master/Grecon
version_local=$(get_version "/usr/bin/Grecon")
version_remote=$(get_version "$path_to_temp_update")
if [ -z "$version_remote" ] || dpkg --compare-versions "$version_local" lt "$version_remote"; then
sudo "$PATH_TO_TOOLS"/install.sh
else
echo "GhostRecon is up to date."
echo "$version_remote"
fi
elif [ "$x" == "$a7" ]||[ "$x" == "e" ]; then
quit
elif [ "$x" == "$a8" ]||[ "$x" == "uni" ]; then
sudo "$PATH_TO_TOOLS"/uninstall.sh "$PATH_TO_REPORTS"
exit
############################################################################################################
elif [ "$x" == "$b1" ] ||[ "$x" == "$b4" ]; then
echo ""
echo -e "\e[1;31m VERSION: V.2.0 $lastupdate_date by DR34M-M4K3R\e[0m"
echo "----------------------------------------------------------------------------"
echo -e "last modification: $lastcommitmessage"
echo "----------------------------------------------------------------------------"
echo ""
elif [ "$x" == "$b2" ]||[ "$x" == "$b3" ]; then
help
elif [ "$x" == "$b5" ]||[ "$x" == "1" ]; then
echo ""
echo -e "\e[1;31m_____________________\e[0m"
echo -e "\e[1;31m\ Domain Scanner /\e[0m"
echo -e "\e[1;31m -----------------\e[0m"
echo ""
save
echo "Example: kali.org"
read -p "[DOMAIN]: " domain
echo ""
echo "Gathering Informations...."
echo ""
echo -e "\e[1;31m [*] ADMIN INFO (WHOIS INFO)\e[0m"
echo "-------------------------------------------------------------------------------"
echo -e "\n\n-----DOMAIN SCAN OF $domain-----\n\n[*] ADMIN INFO (WHOIS INFO)\n-------------------------------------------------------------------------------" >> "$filename"
echo ""
whois "$domain" | tee -a "$filename"
echo ""
read -p "Press enter to continue"
echo ""
echo -e "\e[1;31m [*] DNS LOOKUP\e[0m"
echo "-------------------------------------------------------------------------------"
echo -e "\n\n[*] DNS LOOKUP\n-------------------------------------------------------------------------------\n" >> "$filename"
curl https://api.hackertarget.com/dnslookup/?q=$domain | tee -a "$filename"
echo ""
host "$domain" | tee -a "$filename"
echo "-------------------------------------------------------------------------------" | tee -a "$filename"
echo ""
echo -e "\e[1;31m [*] DONE\e[0m"
echo ""
collapsefiles
elif [ "$x" == "$b6" ]||[ "$x" == "2" ]; then
echo -e "\e[1;31m[*] HOW TO GET SHODAN API KEY: https://www.youtube.com/watch?v=nAcaAr00yjI\e[0m"
echo "Once you have your API key run:"
echo -e "~\$shodan init [your api key]\n\nPress enter to continue"
echo ""
echo -e "\e[1;31m__________________\e[0m"
echo -e "\e[1;31m\ IP Scanner /\e[0m"
echo -e "\e[1;31m --------------\e[0m"
echo ""
echo "Example: 48.345.21.782"
read -p "[IP ADDRESS]: " ipaddress
save
echo ""
echo "Gathering Informations...."
echo ""
echo -e "-----IP SCAN OF $ipaddress-----\n" >> "$filename"
echo -e "\e[1;31m [*] LOCALISATION\e[0m"
echo "[*] LOCALISATION" >> "$filename"
echo "-------------------------------------------------------------------------------" | tee -a "$filename"
curl https://api.hackertarget.com/geoip/?q="$ipaddress" | tee -a "$filename"
echo ""
read -p "Press enter to continue"
echo -e "\n-------------------------------------------------------------------------------" | tee -a "$filename"
echo ""
echo -e "\e[1;31m [*] ADMIN INFO\e[0m"
echo "[*] ADMIN INFO" >> "$filename"
echo "-------------------------------------------------------------------------------" | tee -a "$filename"
echo ""
whois "$ipaddress" | tee -a "$filename"
echo ""
read -p "Press enter to continue"
echo "-------------------------------------------------------------------------------" | tee -a "$filename"
echo ""
echo -e "\e[1;31m [*] SHODAN RESULTS\e[0m"
echo "[*] SHODAN RESULTS" >> "$filename"
echo "-------------------------------------------------------------------------------" | tee -a "$filename"
echo ""
echo "[ * ] Gathering informations..."
shodan stats --facets vuln net:"$ipaddress" | tee -a "$filename"
echo ""
shodan host "$ipaddress" | tee -a "$filename"
echo ""
echo -e "\e[1;31m [*] DONE\e[0m"
echo -e "\n [*] DONE\n" >> "$filename"
echo ""
collapsefiles
elif [ "$x" == "$b7" ]||[ "$x" == "3" ]; then
echo ""
echo -e "\e[1;31m_____________________\e[0m"
echo -e "\e[1;31m\ Phone Scanner /\e[0m"
echo -e "\e[1;31m -----------------\n\e[0m"
echo "Please Enter The Number Followed By The Dialing Code"
echo "for example : +447410490080 / +44 Is My Dialing Code"
read -p "Phone Number: " phone_info
echo ""
save
echo -e "Scan of $phone_info\n" >> "$filename"
echo "Gathering Information..."
echo ""
echo -e "\e[1;31m [*] PHONE $phone_info\e[0m"
echo "-------------------------------------------------------------------------------" >> "$filename"
echo ""
python3 $PATH_TO_TOOLS/phone_locator.py "$phone_info" | tee -a "$filename"
echo ""
echo -e "\n [*] DONE" | tee -a "$filename"
collapsefiles
elif [ "$x" == "$b8" ]||[ "$x" == "4" ]; then
echo -e "\e[1;31m_____________________\e[0m"
echo -e "\e[1;31m\ Email Scanner /\e[0m"
echo -e "\e[1;31m -----------------\n\e[0m"
echo -e "\e[0;31mWarning: after a few tries, you will be blocked. In this case, change your ip with 'hide identity' command.\e[0m"
read -p "Enter target email:>" email
save
echo -e -n " [\e[1;31m*\e[0m] Gathering informations..."
jsondata=$(curl --silent emailrep.io/"$email")
#jsondata=$(cat brutjson.json)
echo -e "\e[0;32m [OK]\e[0m"
echo -e -n " [\e[1;31m*\e[0m] Parsing informations..."
email_reputation=$(echo "$jsondata" | jq .reputation)
email_suspicious=$(echo "$jsondata" | jq .suspicious)
email_reputationscore=$(echo "$jsondata" | jq .references)
email_blacklisted=$(echo "$jsondata" | jq .details.blacklisted)
email_maliciousactivity=$(echo "$jsondata" | jq .details.malicious_activity)
email_recentmalicious=$(echo "$jsondata" | jq .details.malicious_activity_recent)
email_credsleak=$(echo "$jsondata" | jq .details.credentials_leaked)
email_databreach=$(echo "$jsondata" | jq .details.data_breach)
email_firstseen=$(echo "$jsondata" | jq .details.first_seen)
email_lastseen=$(echo "$jsondata" | jq .details.last_seen)
email_domainexists=$(echo "$jsondata" | jq .details.domain_exists)
email_domainreputation=$(echo "$jsondata" | jq .details.domain_reputation)
email_newdomain=$(echo "$jsondata" | jq .details.new_domain)
email_dayssincedomaincreation=$(echo "$jsondata" | jq .details.days_since_domain_creation)
email_suspicioustld=$(echo "$jsondata" | jq .details.suspicious_tld)
email_spam=$(echo "$jsondata" | jq .details.spam)
email_freeprovider=$(echo "$jsondata" | jq .details.free_provider)
email_disposable=$(echo "$jsondata" | jq .details.disposable)
email_deliverable=$(echo "$jsondata" | jq .details.deliverable)
email_acceptall=$(echo "$jsondata" | jq .details.accept_all)
email_validmx=$(echo "$jsondata" | jq .details.valid_mx)
email_primarymx=$(echo "$jsondata"| jq .details.primary_mx)
email_spoofable=$(echo "$jsondata" | jq .details.spoofable)
email_spf_strict=$(echo "$jsondata" | jq .details.spf_strict)
email_DMARC=$(echo "$jsondata" | jq .details.dmarc_enforced)
email_profiles=$(echo "$jsondata" | jq .details.profiles)
echo -e "\e[0;32m [OK]\e[0m"
echo -e "\e[1;31m \n_____FULL REPORT_____\e[1;31m \e[0m\n"
echo -e "-Email: |"
booleancolor "$email"
echo -n "-Suspicious: |"
booleancolor "$email_suspicious"
echo -n "-Has reputation: |"
booleancolor "$email_reputation"
echo -n "-Reputation score: "
booleancolor "$email_reputationscore"
echo -n "-Is blacklisted: |"
booleancolor "$email_blacklisted"
echo -n "-Has a malicious activity: |"
booleancolor "$email_maliciousactivity"
echo -n "-Has a recent malicious activity: |"
booleancolor "$email_recentmalicious"
echo -n "-Creditentials leaked: |"
booleancolor "$email_credsleak"
echo -n "-Is on a data breach: |"
booleancolor "$email_databreach"
echo -n "-First seen: |"
booleancolor "$email_firstseen"
echo -n "-Last seen: |"
booleancolor "$email_lastseen"
echo -n "-Domain exists: |"
reversedbooleancolor "$email_domainexists"
echo -n "-Domain reputation: |"
booleancolor "$email_domainreputation"
echo -n "-Is a new domain: |"
booleancolor "$email_newdomain"
echo -n "-Days since domain creation: |"
booleancolor "$email_dayssincedomaincreation"
echo -n "-Suspicious extention: |"
booleancolor "$email_suspicioustld"
echo -n "-Is spam: |"
booleancolor "$email_spam"
echo -n "-Free provider: |"
booleancolor "$email_freeprovider"
echo -n "-Temporary address: |"
booleancolor "$email_disposable"
echo -n "-Deliverable: |"
reversedbooleancolor "$email_deliverable"
echo -n "-Accept all: |"
booleancolor "$email_acceptall"
echo -n "-Valid MX: |"
reversedbooleancolor "$email_validmx"
echo -n "-Primary Mail Exchanger: |"
booleancolor "$email_primarymx"
echo -n "-Spoofable: |"
booleancolor "$email_spoofable"
echo -n "-Strict SPF: |"
reversedbooleancolor "$email_spf_strict"
echo -n "-DMARC (Domain-based Message Authentication, Reporting & Conformance) enforced: |"
reversedbooleancolor "$email_DMARC"
echo -n "-Profiles on social medias: |"
booleancolor "$email_profiles"
echo -e "\n_____ Scan of $email _____\n"
#for the saved file: (cannot handle colours)
echo -e "-Email: |" | tee -a "$filename"
booleanconvertor "$email" >> "$filename"
echo -n "-Suspicious: |" >> "$filename"
booleanconvertor "$email_suspicious" >> "$filename"
echo -n "-Has reputation: |" >> "$filename"
booleanconvertor "$email_reputation" >> "$filename"
echo -n "-Reputation score: " >> "$filename"
booleanconvertor "$email_reputationscore" >> "$filename"
echo -n "-Is blacklisted: |" >> "$filename"
booleanconvertor "$email_blacklisted" >> "$filename"
echo -n "-Has a malicious activity: |" >> "$filename"
booleanconvertor "$email_maliciousactivity" >> "$filename"
echo -n "-Has a recent malicious activity: |" >> "$filename"
booleanconvertor "$email_recentmalicious" >> "$filename"
echo -n "-Creditentials leaked: |" >> "$filename"
booleanconvertor "$email_credsleak" >> "$filename"
echo -n "-Is on a data breach: |" >> "$filename"
booleanconvertor "$email_databreach" >> "$filename"
echo -n "-First seen: |" >> "$filename"
booleanconvertor "$email_firstseen" >> "$filename"
echo -n "-Last seen: |" >> "$filename"
booleanconvertor "$email_lastseen" >> "$filename"
echo -n "-Domain exists: |" >> "$filename"
booleanconvertor "$email_domainexists" >> "$filename"
echo -n "-Domain reputation: |" >> "$filename"
booleanconvertor "$email_domainreputation" >> "$filename"
echo -n "-Is a new domain: |" >> "$filename"
booleanconvertor "$email_newdomain" >> "$filename"
echo -n "-Days since domain creation: |" >> "$filename"
booleanconvertor "$email_dayssincedomaincreation" >> "$filename"
echo -n "-Suspicious extention: |" >> "$filename"
booleanconvertor "$email_suspicioustld" >> "$filename"
echo -n "-Is spam: |" >> "$filename"
booleanconvertor "$email_spam" >> "$filename"
echo -n "-Free provider: |" >> "$filename"
booleanconvertor "$email_freeprovider" >> "$filename"
echo -n "-Temporary address: |" >> "$filename"
booleanconvertor "$email_disposable" >> "$filename"
echo -n "-Deliverable: |" >> "$filename"
booleanconvertor "$email_deliverable" >> "$filename"
echo -n "-Accept all: |" >> "$filename"
booleanconvertor "$email_acceptall" >> "$filename"
echo -n "-Valid MX: |" >> "$filename"
booleanconvertor "$email_validmx" >> "$filename"
echo -n "-Primary Mail Exchanger: |" >> "$filename"
booleanconvertor "$email_primarymx" >> "$filename"
echo -n "-Spoofable: |" >> "$filename"
booleanconvertor "$email_spoofable" >> "$filename"
echo -n "-Strict SPF: |" >> "$filename"
booleanconvertor "$email_spf_strict" >> "$filename"
echo -n "-DMARC (Domain-based Message Authentication, Reporting & Conformance) enforced: |" >> "$filename"
booleanconvertor "$email_DMARC" >> "$filename"
echo -n "-Profiles on social medias: |" >> "$filename"
booleanconvertor "$email_profiles" >> "$filename"
collapsefiles
elif [ "$x" == "$b9" ]||[ "$x" == "5" ]; then
echo -e "\e[1;31m____________________________\e[0m"
echo -e "\e[1;31m\ Social media Scanner /\e[0m"
echo -e "\e[1;31m ------------------------\n\e[0m"
save
echo -e "__________Social Media Check__________\n" >> "$filename"
python3 "$PATH_TO_TOOLS"/email_scanner.py | tee -a "$filename"
collapsefiles
elif [ "$x" == "$b10" ]||[ "$x" == "6" ]; then
echo -e "\e[1;31m_____________________\e[0m"
echo -e "\e[1;31m\ Link Sniffing /\e[0m"
echo -e "\e[1;31m -----------------\n\e[0m"
save
echo -e "__________Link Sniffing__________\n" >> "$filename"
echo ""
echo "Example: kali.org"
read -p "Enter DOMAIN: " link
echo ""
echo "Gathering Information..."
echo ""
echo -e "\e[1;31m [*] SNIFFING LINKS\e[0m"
echo "-------------------------------------------------------------------------------" | tee -a "$filename"
curl https://api.hackertarget.com/pagelinks/?q=$link | tee -a "$filename"
echo ""
collapsefiles
elif [ "$x" == "$b11" ]||[ "$x" == "7" ]; then
echo -e "\e[1;31m_____________________\e[0m"
echo -e "\e[1;31m\ Port Scanner /\e[0m"
echo -e "\e[1;31m -----------------\n\e[0m"
save
echo -e "__________Port Scanner__________\n" >> "$filename"
echo ""
echo -e "\e[1;31m###########################\e[0m"
echo -e "\e[1;31m## ENTER TARGET'S IP ##\e[0m"
echo -e "\e[1;31m###########################\e[0m"
echo ""
read -p "Ip: " IP
echo ""
echo -e "\e[1;31m###########################\e[0m"
echo -e "\e[1;31m## ENTER PORTS RANGE ##\e[0m"
echo -e "\e[1;31m###########################\e[0m"
echo ""
echo "EXAMPLE : \"0-100\" WILL SCAN PORTS BETWEEN 0 AND 100"
read -p "Ports range: " ports
echo ""
echo -e "------------- Port Scan of $IP : ports $ports -------------\n" >> "$filename"
firstport="$(echo "$ports" | cut -d'-' -f1)"
lastport="$(echo "$ports" | cut -d'-' -f2)"
for PORT in $(eval echo "{$firstport..$lastport}"); do
if timeout 0.5s bash -c "</dev/tcp/$IP/$PORT" 2>/dev/null ; then
echo -e "[\e[32m+\e[0m] $PORT open"
echo -e "[+] $PORT open" >> "$filename"
else
echo -e "[\e[31m-\e[0m] $PORT closed/filtered/timed out"
echo -e "[-] $PORT closed/filtered/timed out" >> "$filename"
fi
done
eho ""
collapsefiles
elif [ "$x" == "$b12" ]||[ "$x" == "8" ]; then
echo ""
read -p "TARGET'S FIRST NAME > " target_firstname
read -p "TARGET'S LAST NAME >" target_lastname
read -p "TARGET'S STATE >" target_state
read -p "TARGET'S CITY >" target_city
echo -e -n "\e[1;31m [*] GENERATING LINK... \e[0m"
if [[ -n $target_state ]]; then
target_state="${target_state}."
fi
criminal_report_link="https://"$target_state"staterecords.org/search.php?firstname=$target_firstname&lastname=$target_lastname&city=$target_city"
echo -e "\e[0;32m [OK]\e[0m"
echo -e "\n\n \e[1;31mCTRL + click on this link to get your report: [\e[0m\e[1;34m$criminal_report_link\e[0m\e[1;31m]\e[0m"
elif [ "$x" == "$b13" ]; then
echo -e "
\e[0;31mOUT OF SERVICE, JOIN THE DISCORD \nTO KNOW WHEN IT WILL BE IN SERVICE AGAIN.\e[0m
"
#echo -e "Choose database:
#[1]\e[0;32m www.thatsthem.com\e[0m (10 uses per day)
#[2]\e[0;32m coming next...\e[0m"
#read -p $'[\e[31m*\e[0m] CHOOSE A DATABASE >' i
i='999'
if [ $i == 1 ]||[ "$x" == "9" ]; then
echo ""
echo -e "\e[0;31m[*]: REQUIERED\e[0m"
read -p $'[\e[31m*\e[0m] TARGET\'S FIRST NAME >' target_firstname
read -p $'[\e[31m*\e[0m] TARGET\'S LAST NAME >' target_lastname
#read -p "TARGET'S MAIDEN LAST NAME >" target_maiden_name
#read -p "TARGET'S APROXIMATE AGE >" target_age
#read -p "TARGET'S STATE >" target_state
#read -p "TARGET'S STATE CODE (AL, UT, TX)>" target_state
#read -p "TARGET'S EMAIL >" target_email
#read -p "TARGET'S STREET >" target_street
#read -p "TARGET'S CITY >" target_city
#read -p "TARGET'S ZIP CODE >" target_zipcode
#read -p "TARGET'S PHONE>" target_phone
#read -p "TARGET'S DAY OF BIRTH >" target_day_of_birth
#read -p "TARGET'S MONTH OF BIRTH >" target_month_of_birth
#read -p "TARGET'S YEAR OF BIRTH >" target_year_of_birth
#read -p "TARGET'S CITY >" target_city
#findpeoplesearch_link="https://www.findpeoplesearch.com/$target_firstname+$target_lastname/$target_age/$target_state/$target_email/$target_street/$target_city/$target_zipcode/$target_maiden_name/$target_phone/$target_month_of_birth/$target_day_of_birth/$target_year_of_birth/1/1454471185"
echo ""
echo -e -n "\e[1;31m [*] GENERATING REQUEST FOR DATABASE... \e[0m"
target_firstname=${target_firstname^}
target_lastname=${target_lastname^}
thatsthem_link="https://thatsthem.com/name/$target_firstname-$target_lastname"
echo -e "\e[0;32m [OK]\e[0m"
mkdir results"$target_firstname"
cd results"$target_firstname" || exit
echo -e "\e[1;31m[*] OK\e[0m"
echo -e -n "\e[1;31m [*] REQUESTING DATABASE SERVER... \e[0m"
curl -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4482.0 Safari/537.36 Edg/92.0.874.0" -l $thatsthem_link -o resultpage.html
echo -e "\e[0;32m [OK]\e[0m"
echo -e -n "\e[1;31m [*] SHAPING DATA... \e[0m"
sed 's/<[^>]*>//g ; /^$/d' resultpage.html > resultpage.txt
sed -i '1,108d' resultpage.txt
sed -i '/window.addEventListener ("load", function () {/,/^\s*$/{d}' resultpage.txt
sed -i '/window.addEventListener ("load", function () {/,/^\s*$/{d}' resultpage.txt
sed -i '/<ins class="adsbygoogle"/,/^\s*$/{d}' resultpage.txt
sed -i '/About Us/,/^\s*$/{d}' resultpage.txt
sed -i '/18-24/,/^\s*$/{d}' resultpage.txt
sed -i '/ Run Background Search/,/^\s*$/{d}' resultpage.txt
sed -i '/ Is this you? Bulk Optout/,/^\s*$/{d}' resultpage.txt
sed -i '/Copyright/,$d' resultpage.txt
grep -v '^[[:space:]]*$' resultpage.txt > resultpage.txt.tmp
mv resultpage.txt.tmp resultpage.txt
extract_numberofresult=$(head -1 resultpage.txt)
extract_nameoftarget=$(head -2 resultpage.txt | tail -1)
#sed -i '1,2d' resultpage.txt
echo "$target_firstname"
awk "/$target_firstname/{if(NR!=1){for(i=0;i<j;i++)print a[i]>\"result\"k;j=0;k++;}a[j++]=\$0;next}{a[j++]=\$0;}END{for(i=0;i<j;i++)print a[i]>\"result\"k}" i=0 k=1 resultpage.txt
#echo -e "\n$extract_numberofresult\n$extract_nameoftarget
#_____________
#"
numberofresultfiles=$(ls | wc -l)
numberofresultfiles=$numberofresultfiles-2
for (( c=1; c<=$numberofresultfiles; c++ ))
do
extract_phone=$(sed -n '/Phone Number/{n;p}' result$c | grep -wv -e Alternate)
extract_alt_phone=$(sed -n '/Alternate/{n;p}' result$c | grep -wv -e Email)
extract_email=$(sed -n '/Email/{n;p}' result$c | grep -wv -e Residence)
extract_residencelength=$(sed -n '/Redidence/{n;p}' result$c | grep -wv -e Size)
extract_household_size=$(sed -n '/Household/{n;p}' result$c | grep -wv -e IP)
extract_ip=$(sed -n '/IP/{n;p}' result$c | grep -wv -e Net)
extract_net_worth=$(sed -n '/Net/{n;p}' result$c | grep -wv -e Income)
extract_income=$(sed -n '/Income/{n;p}' result$c | grep -wv -e Education)
extract_occupation=$(sed -n '/Occupation/{n;p}' result$c | grep -wv -e Other)
extract_language=$(sed -n '/Language/{n;p}' result$c | grep -wv -e Wealth)
extract_scores=$(sed -n '/Score/,$p' result$c)
echo "
$(head -1 result$c)
---------------------
_____________ Adress _____________
$(sed -n '2p' result$c)
_________ Phone Number(s) _________
Main: $extract_phone
Alternate: $extract_alt_phone
___________ Email adress ___________
$extract_email
________ Length of Residence ________
$extract_residencelength
__________ Household Size __________
$extract_household_size
___________ Ip adress ___________
$extract_ip
________ Estimated Net Worth ________
$extract_net_worth
_________ Estimated Income _________
$extract_income
___________ Occupation __________
$extract_occupation
____________ Language ____________
$extract_language
____________ Scores ____________
$extract_scores
"
done
elif [ i == "2" ] ; then
echo -e -n "\e[1;31m THERE WILL BE MORE DATABASE LATER \e[0m"
fi
else
echo "WRONG COMMAND TRY AGAIN OR TYPE \"h\" TO SEE THEM"
fi
#statements
done
# MODULES
# whois $whois
# curl http://api.hackertarget.com/geoip/?q=$geoip
# curl http://api.hackertarget.com/reverseiplookup/?q=$ip_lookup
# curl http://api.hackertarget.com/dnslookup/?q=$DNS_LOOKUP
# curl https://api.hackertarget.com/reversedns/?q=$reversedns
# curl https://api.telnyx.com/anonymous/v2/number_lookup/$phone_info
# curl https://api.hackertarget.com/bannerlookup/?q=$grab_banner
# curl http://api.hackertarget.com/nmap/?q=$nmap_scan
# sshscan.py -t $sshscan
# sqlmap -u $sqlhost2 searchgetby_id.$phphtml1?id=4 --dbs --columns -D scanme --tamper=space2comment --level 5
# msfconsole -q -x "nmap -v --script vuln $vuln_scan ;exit ;"
# osrf alias_generator
# mailfy -m $email_info -p all
# osrf alias_generator
# curl https://api.hackertarget.com/pagelinks/?q=$link_sniffer