forked from leebaird/discover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiscover.sh
executable file
·3852 lines (3231 loc) · 179 KB
/
discover.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/bash
# test for lee to remove this comment with the git revert command
# by Lee Baird
# Contact me via chat or email with any feedback or suggestions that you may have:
# leebaird@gmail.com
#
# Special thanks to the following people:
#
# Ben Wood - regex master
# Dave Klug - planning, testing and bug reports
# Jay Townsend (L1ghtn1ng) - conversion from Backtrack to Kali, manages pull requests & issues, python conversion
# Jason Arnold - planning original concept, author of ssl-check and co-author of crack-wifi
# John Kim - Python guru, bug smasher and parsers
# Eric Milam - total re-write using functions
# Martin Bos - IDS evasion techniques
# Matt Banick - original development
# Numerous people on freenode IRC - #bash and #sed (e36freak)
# Rob Dixon - report framework idea
# Robert Clowser - all things
# Saviour Emmanuel - Nmap parser
# Securicon, LLC. - for sponsoring development of parsers
# Steve Copland - report framework design
# Jason Ashton - Penetration Testers Framework (PTF) compatibility, bug crusher
##############################################################################################################
# Catch process termination
trap f_terminate SIGHUP SIGINT SIGTERM
# Global variables
discover=$(locate discover.sh | sed 's:/[^/]*$::')
distro=$(uname -n)
home=$HOME
long='========================================================================================================='
medium='====================================================================================='
short='========================================'
sip='sort -n -u -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4'
# Check for OS X
if [[ `uname` == 'Darwin' ]]; then
browser=Safari
ip=$(ifconfig | grep -B3 'status: active' | grep 'broadcast' | cut -d ' ' -f2)
interface=$(ifconfig | grep $ip -B3 | grep 'UP' | cut -d ':' -f1)
msf=/opt/metasploit-framework/bin/msfconsole
msfv=/opt/metasploit-framework/bin/msfvenom
port=4444
web="open -a Safari"
else
browser=Firefox
ip=$(ip addr | grep 'global' | cut -d '/' -f1 | awk '{print $2}')
interface=$(ip link | awk '{print $2, $9}' | grep 'UP' | cut -d ':' -f1)
msf=msfconsole
msfv=msfvenom
port=443
web="firefox -new-tab"
fi
##############################################################################################################
f_banner(){
echo
echo -e "\x1B[1;33m
______ ___ ______ ______ _____ _ _ ______ _____
| \ | |____ | | | \ / |_____ |____/
|_____/ _|_ _____| |_____ |_____| \/ |_____ | \_
By Lee Baird\x1B[0m"
echo
echo
}
##############################################################################################################
f_error(){
echo
echo -e "\x1B[1;31m$medium\x1B[0m"
echo
echo -e "\x1B[1;31m *** Invalid choice or entry. ***\x1B[0m"
echo
echo -e "\x1B[1;31m$medium\x1B[0m"
sleep 2
f_main
}
f_errorOSX(){
if [[ `uname` == 'Darwin' ]]; then
echo
echo -e "\x1B[1;31m$medium\x1B[0m"
echo
echo -e "\x1B[1;31m *** Not OS X compatible. ***\x1B[0m"
echo
echo -e "\x1B[1;31m$medium\x1B[0m"
sleep 2
f_main
fi
}
##############################################################################################################
f_location(){
echo
echo -n "Enter the location of your file: "
read location
# Check for no answer
if [[ -z $location ]]; then
f_error
fi
# Check for wrong answer
if [ ! -f $location ]; then
f_error
fi
}
##############################################################################################################
f_runlocally(){
if [[ -z $DISPLAY ]]; then
clear
f_banner
echo
echo -e "\x1B[1;31m$medium\x1B[0m"
echo
echo -e "\x1B[1;31m *** This option must be run locally, in an X-Windows environment. ***\x1B[0m"
echo
echo -e "\x1B[1;31m$medium\x1B[0m"
sleep 4
f_main
fi
}
##############################################################################################################
f_terminate(){
save_dir=$home/data/cancelled-`date +%H:%M:%S`
echo "Terminating..."
echo "All data will be saved in $save_dir"
mkdir $save_dir
# Nmap and Metasploit scans
mv $name/ $save_dir 2>/dev/null
# Recon files
mv emails* names records squatting whois* sub* doc pdf ppt txt xls tmp* z* $save_dir 2>/dev/null
echo "Saving complete"
exit
}
##############################################################################################################
f_domain(){
clear
f_banner
echo -e "\x1B[1;34mRECON\x1B[0m"
echo
echo "1. Passive"
echo "2. Active"
echo "3. Previous menu"
echo
echo -n "Choice: "
read choice
case $choice in
1)
echo
echo $medium
echo
echo "Usage"
echo
echo "Company: Target"
echo "Domain: target.com"
echo
echo $medium
echo
echo -n "Company: "
read company
# Check for no answer
if [[ -z $company ]]; then
f_error
fi
echo -n "Domain: "
read domain
# Check for no answer
if [[ -z $domain ]]; then
f_error
fi
# If folder doesn't exist, create it
if [ ! -d $home/data/$domain ]; then
cp -R $discover/report/ $home/data/$domain
sed 's/REPLACEDOMAIN/'$domain'/g' $home/data/$domain/index.htm > tmp
mv tmp $home/data/$domain/index.htm
fi
# Number of tests
total=26
echo
echo $medium
echo
echo "dnsrecon (1/$total)"
dnsrecon -d $domain -t goo > tmp
grep $domain tmp | egrep -v '(Performing|Records Found)' | awk '{print $3 " " $4}' | awk '$2 !~ /[a-z]/' | column -t | sort -u > sub1
echo
echo "goofile (2/$total)"
goofile -d $domain -f doc > tmp
goofile -d $domain -f docx >> tmp
goofile -d $domain -f pdf >> tmp
goofile -d $domain -f ppt >> tmp
goofile -d $domain -f pptx >> tmp
goofile -d $domain -f txt >> tmp
goofile -d $domain -f xls >> tmp
goofile -d $domain -f xlsx >> tmp
grep $domain tmp | grep -v 'Searching in' | grep -Fv '...' | sort > tmp2
grep '.doc' tmp2 | egrep -v '(.pdf|.ppt|.xls)' > doc
grep '.pdf' tmp2 > pdf
grep '.ppt' tmp2 > ppt
grep '.txt' tmp2 | grep -v 'robots.txt' > txt
grep '.xls' tmp2 > xls
echo
echo "goog-mail (3/$total)"
$discover/mods/goog-mail.py $domain | sort -u > tmp
grep -Fv '..' tmp > tmp2
# Remove lines that start with a number
sed '/^[0-9]/d' tmp2 > tmp3
# Change to lower case
cat tmp3 | tr '[A-Z]' '[a-z]' > tmp4
# Remove blank lines
sed '/^$/d' tmp4 > zgoog-mail
echo
echo "goohost"
echo " IP (4/$total)"
$discover/mods/goohost.sh -t $domain -m ip >/dev/null
echo " Email (5/$total)"
$discover/mods/goohost.sh -t $domain -m mail >/dev/null
cat report-* > tmp
# Move the second column to the first position
grep $domain tmp | awk '{print $2 " " $1}' > tmp2
column -t tmp2 > zgoohost
rm *-$domain.txt
echo
echo "theHarvester"
echo " Baidu (6/$total)"
theHarvester -d $domain -b baidu > zbaidu
echo " Bing (7/$total)"
theHarvester -d $domain -b bing > zbing
echo " Dogpilesearch (8/$total)"
theHarvester -d $domain -b dogpilesearch > zdogpilesearch
echo " Google (9/$total)"
theHarvester -d $domain -b google > zgoogle
echo " Google CSE (10/$total)"
theHarvester -d $domain -b googleCSE > zgoogleCSE
echo " Google+ (11/$total)"
theHarvester -d $domain -b googleplus > zgoogleplus
echo " Google Profiles (12/$total)"
theHarvester -d $domain -b google-profiles > zgoogle-profiles
echo " Jigsaw (13/$total)"
theHarvester -d $domain -b jigsaw > zjigsaw
echo " LinkedIn (14/$total)"
theHarvester -d $domain -b linkedin > zlinkedin
echo " People123 (15/$total)"
theHarvester -d $domain -b people123 > zpeople123
echo " PGP (16/$total)"
theHarvester -d $domain -b pgp > zpgp
echo " Yahoo (17/$total)"
theHarvester -d $domain -b yahoo > zyahoo
echo " All (18/$total)"
theHarvester -d $domain -b all > zall
echo
echo "Metasploit (19/$total)"
msfconsole -x "use auxiliary/gather/search_email_collector; set DOMAIN $domain; run; exit y" > tmp 2>/dev/null
grep @$domain tmp | awk '{print $2}' | grep -v '%' | grep -Fv '...@' | sort -u > tmp2
# Change to lower case
cat tmp2 | tr '[A-Z]' '[a-z]' > tmp3
# Remove blank lines
sed '/^$/d' tmp3 > zmsf
echo
echo "URLCrazy (20/$total)"
urlcrazy $domain -o tmp > /dev/null
# Clean up
egrep -v '(#|:|\?|RESERVED|Typo Type|URLCrazy)' tmp | sed 's/[A-Z]\{2\},//g' > tmp2
# Remove lines that start with -
grep -v '^-' tmp2 > tmp3
# Remove blank lines
sed '/^$/d' tmp3 > tmp4
sed 's/AUSTRALIA/Australia/g; s/AUSTRIA/Austria/g; s/BAHAMAS/Bahamas/g; s/BANGLADESH/Bangladesh/g; s/BELGIUM/Belgium/g; s/CANADA/Canada/g; s/CAYMAN ISLANDS/Cayman Islands/g;
s/CHILE/Chile/g; s/CHINA/China/g; s/COSTA RICA/Costa Rica/g; s/CZECH REPUBLIC/Czech Republic/g; s/DENMARK/Denmark/g; s/EUROPEAN UNION/European Union/g; s/FINLAND/Finland/g;
s/FRANCE/France/g; s/GERMANY/Germany/g; s/HONG KONG/Hong Kong/g; s/HUNGARY/Hungary/g; s/INDIA/India/g; s/IRELAND/Ireland/g; s/ISRAEL/Israel/g; s/ITALY/Italy/g; s/JAPAN/Japan/g;
s/KOREA REPUBLIC OF/Republic of Korea/g; s/LUXEMBOURG/Luxembourg/g; s/NETHERLANDS/Netherlands/g; s/NORWAY/Norway/g; s/POLAND/Poland/g; s/RUSSIAN FEDERATION/Russia/g;
s/SAUDI ARABIA/Saudi Arabia/g; s/SPAIN/Spain/g; s/SWEDEN/Sweden/g; s/SWITZERLAND/Switzerland/g; s/TAIWAN; REPUBLIC OF China (ROC)/Taiwan/g; s/THAILAND/Thailand/g; s/TURKEY/Turkey/g;
s/UKRAINE/Ukraine/g; s/UNITED KINGDOM/United Kingdom/g; s/UNITED STATES/United States/g; s/VIRGIN ISLANDS (BRITISH)/Virgin Islands/g' tmp4 > squatting
##############################################################
cat z* | egrep -v '(@|\*|-|=|\||;|:|"|<|>|/|\?)' > tmp
# Remove blank lines
sed '/^$/d' tmp > tmp2
# Remove lines that contain a number
sed '/[0-9]/d' tmp2 > tmp3
# Remove lines that start with @ or .
sed '/^\@\./d' tmp3 > tmp4
# Remove trailing white space from each line
sed 's/[ \t]*$//' tmp4 > tmp5
# Substitute a space for a plus sign
sed 's/+/ /g' tmp5 > tmp6
# Change to lower case
cat tmp6 | tr '[A-Z]' '[a-z]' > tmp7
# Clean up
egrep -v '(academy|account|achievement|active|administrator|administrative|advanced|adventure|advertising|america|american|analysis|analyst|antivirus|apple seems|application|applications|architect|article|asian|assistant|associate|association|attorney|auditor|australia|automation|automotive|balance|bank|bbc|beginning|berlin|beta theta|between|big game|billion|bioimages|biometrics|bizspark|breaches|broker|business|buyer|buying|california|cannot|capital|career|carrying|cashing|certified|challenger|championship|change|chapter|charge|china|chinese|clearance|cloud|code|college|columbia|communications|community|company pages|competition|competitive|compliance|computer|concept|conference|config|connections|connect|construction|consultant|contractor|contributor|controllang|cooperation|coordinator|corporation|creative|critical|croatia|crm|dallas|day care|death toll|delta|department|description|designer|design|detection|developer|develop|development|devine|digital|diploma|director|disability|disaster|disclosure|dispute|division|document|dos poc|download|drivers|during|economy|ecovillage|editor|education|effect|electronic|else|emails|embargo|emerging|empower|employment|end user|energy|engineer|enterprise|entertainment|entreprises|entrepreneur|entry|environmental|error page|ethical|example|excellence|executive|expertzone|exploit|facebook|faculty|failure|fall edition|fast track|fatherhood|fbi|federal|filmmaker|finance|financial|forensic|found|freelance|from|frontiers in tax|full|function|fuzzing|germany|get control|global|google|government|graphic|greater|group|guardian|hackers|hacking|harden|harder|hawaii|hazing|headquarters|health|help|history|homepage|hospital|house|how to|hurricane|icmp|idc|in the news|index|informatics|information|innovation|installation|insurers|integrated|international|internet|instructor|insurance|interested|investigation|investment|investor|israel|items|japan|job|justice|kelowna|knowing|laptops|leadership|letter|licensing|lighting|limitless|liveedu|llp|local|looking|ltd|lsu|luscous|malware|managed|management|manager|managing|manufacturing|marketplace|mastering|md|media|medical|medicine|member|meta tags|methane|metro|microsoft|middle east|mitigation|money|monitor|more coming|mortgage|museums|negative|network|network|new user|newspaper|new york|next page|nitrogen|nyc|obtain|occupied|offers|office|online|operations|organizational|outbreak|owners|page|partner|pathology|peace|people|perceptions|philippines|photo|picture|places|planning|portfolio|potential|preassigned|preparatory|president|principal|print|private|process|producer|product|professional|professor|profile|project|program|publichealth|published|pyramid|questions|recruiter|redeem|redirect|region|register|registry|regulation|rehab|remote|report|republic|research|resolving|revised|rising|rural health|sales|satellite|save the date|school|scheduling|science|search|searc|sections|secured|security|secretary|secrets|see more|selection|senior|server|service|services|social|software|solutions|source|special|station home|statistics|strategy|student|successful|superheroines|supervisor|support|switch|system|systems|talent|targeted|tax|tcp|technical|technology|tester|textoverflow|theater|time in|tit for tat|title|toolbook|tools|traditions|trafficking|transfer|treasury|trojan|twitter|training|ts|tylenol|types of scams|unclaimed|underground|university|united states|untitled|verification|vietnam|view|Violent|virginia bar|voice|volkswagen|volume|wanted|web search|web site|website|welcome|west virginia|when the|whiskey|window|worker|world|www|xbox)' tmp7 > tmp8
# Remove leading and trailing whitespace from each line
sed 's/^[ \t]*//;s/[ \t]*$//' tmp8 > tmp9
# Remove lines that contain a single word
sed '/[[:blank:]]/!d' tmp9 > tmp10
# Clean up
sed 's/\..../ /g' tmp10 | sed 's/\.../ /g; s/iii/III/g; s/ii/II/g' > tmp11
# Capitalize the first letter of every word, print last name then first name
sed 's/\b\(.\)/\u\1/g' tmp11 | awk '{print $2", "$1}' | sort -u > names
##############################################################
cat z* | grep @$domain | grep -vF '...' | egrep -v '(%|\*|=|\+|\[|\||;|:|"|<|>|/|\?)' > tmp
# Remove trailing whitespace from each line
sed 's/[ \t]*$//' tmp > tmp2
# Change to lower case
cat tmp2 | tr '[A-Z]' '[a-z]' > tmp3
# Clean up
egrep -v '(web search|www|xxx)' tmp3 | cut -d ' ' -f2 | sed '/^@/d' | sort -u > emails
##############################################################
cat z* | sed '/^[0-9]/!d' | grep -v '@' > tmp
# Substitute a space for a colon
sed 's/:/ /g' tmp > tmp2
# Move the second column to the first position
awk '{ print $2 " " $1 }' tmp2 > tmp3
column -t tmp3 > tmp4
# Change to lower case
cat tmp4 | tr '[A-Z]' '[a-z]' > tmp5
sed 's/<strong>//g; s/<//g' tmp5 | grep $domain | column -t | sort -u > sub2
##############################################################
echo
echo "Whois"
echo " Domain (21/$total)"
whois -H $domain > tmp 2>/dev/null
# Remove leading whitespace
sed 's/^[ \t]*//' tmp > tmp2
# Clean up
egrep -v '(#|%|<a|=-=-=-=|Access may be|Additionally|Afilias except|and DNS Hosting|and limitations of|any use of|Be sure to|By submitting an|by the terms|can easily change|circumstances will|clientDeleteProhibited|clientTransferProhibited|clientUpdateProhibited|company may be|complaint will|contact information|Contact us|Copy and paste|currently set|database|data contained in|data presented in|date of|dissemination|Domaininfo AB|Domain Management|Domain names in|Domain status: ok|enable high|except as reasonably|failure to|facsimile of|for commercial purpose|for detailed information|For information for|for information purposes|for the sole|Get Noticed|Get a FREE|guarantee its|HREF|In Europe|In most cases|in obtaining|in the address|includes restrictions|including spam|information is provided|is not the|is providing|Learn how|Learn more|makes this information|MarkMonitor|mining this data|minute and one|modify existing|modify these terms|must be sent|name cannot|NamesBeyond|not to use|Note: This|NOTICE|obtaining information about|of Moniker|of this data|or hiding any|or otherwise support|other use of|own existing customers|Please be advised|Please note|policy|prior written consent|privacy is|Problem Reporting System|Professional and|prohibited without|Promote your|protect the|Public Interest|queries or|Register your|Registrars|registration record|repackaging,|responsible for|See Business Registration|server at|solicitations via|sponsorship|Status|support questions|support the transmission|telephone, or facsimile|that apply to|that you will|the right| The data is|The fact that|the transmission|The Trusted Partner|This listing is|This feature is|This information|This service is|to collect or|to entities|to report any|transmission of mass|UNITED STATES|United States|unsolicited advertising|Users may|Version 6|via e-mail|Visit AboutUs.org|while believed|will use this|with many different|with no guarantee|We reserve the|Whois|you agree|You may not)' tmp2 > tmp3
# Remove lines starting with "*"
sed '/^*/d' tmp3 > tmp4
# Remove lines starting with "-"
sed '/^-/d' tmp4 > tmp5
# Remove lines starting with http
sed '/^http/d' tmp5 > tmp6
# Remove lines starting with US
sed '/^US/d' tmp6 > tmp7
# Clean up phone numbers
sed 's/+1.//g' tmp7 > tmp8
# Remove leading whitespace from file
awk '!d && NF {sub(/^[[:blank:]]*/,""); d=1} d' tmp8 > tmp9
# Remove trailing whitespace from each line
sed 's/[ \t]*$//' tmp9 > tmp10
# Compress blank lines
cat -s tmp10 > tmp11
# Remove lines that end with various words then a colon or period(s)
egrep -v '(2:$|3:$|Address.$|Address........$|Address.........$|Ext.:$|FAX:$|Fax............$|Fax.............$|Province:$|Server:$)' tmp11 > tmp12
# Remove line after "Domain Servers:"
sed -i '/^Domain Servers:/{n; /.*/d}' tmp12
# Remove line after "Domain servers"
sed -i '/^Domain servers/{n; /.*/d}' tmp12
# Remove blank lines from end of file
awk '/^[[:space:]]*$/{p++;next} {for(i=0;i<p;i++){printf "\n"}; p=0; print}' tmp12 > tmp13
while IFS=$': \t'
read first rest; do
if [[ $first$rest ]]; then
printf '%-20s %s\n' "$first:" "$rest"
else
echo
fi
done < tmp13 > whois-domain
echo " IP (22/$total)"
y=$(ping -c1 -w2 $domain | grep 'PING' | cut -d ')' -f1 | cut -d '(' -f2) ; whois -H $y > tmp
# Remove leading whitespace
sed 's/^[ \t]*//' tmp > tmp2
# Remove trailing whitespace from each line
sed 's/[ \t]*$//' tmp2 > tmp3
# Clean up
egrep -v '(\#|\%|\*|All reports|Comment|dynamic hosting|For fastest|For more|Found a referral|http|OriginAS:$|Parent:$|point in|RegDate:$|remarks:|The activity|the correct|Without these)' tmp3 > tmp4
# Remove leading whitespace from file
awk '!d && NF {sub(/^[[:blank:]]*/,""); d=1} d' tmp4 > tmp5
# Remove blank lines from end of file
awk '/^[[:space:]]*$/{p++;next} {for(i=0;i<p;i++){printf "\n"}; p=0; print}' tmp5 > tmp6
# Compress blank lines
cat -s tmp6 > tmp7
# Clean up
sed 's/+1-//g' tmp7 > tmp8
while IFS=$': \t'
read first rest; do
if [[ $first$rest ]]; then
printf '%-20s %s\n' "$first:" "$rest"
else
echo
fi
done < tmp8 > whois-ip
echo
# Remove all empty files
find -type f -empty -exec rm {} +
echo "dnssy.com (23/$total)"
wget -q --post-data 'q=$domain&step=1&r=1448215046#3cc723b32910c180bc45aba6c21be6edf4125745' http://www.dnssy.com/report.php -O tmp
sed -n '/table border/,/\/table/p' tmp > tmp2
echo "<html>" > tmp3
cat tmp2 >> tmp3
echo "</html>" >> tmp3
sed 's/Pass/<center><img src="..\/images\/icons\/green.png" height="50" width="50"><\/center>/g;
s/Warning/<center><img src="..\/images\/icons\/yellow.png" height="50" width="50"><\/center>/g;
s/Fail/<center><img src="..\/images\/icons\/red.png" height="50" width="50"><\/center>/g;
s/ class="info"//g; s/ class="rfail"//g; s/ class="rinfo"//g; s/ class="rpass"//g; s/ class="rsecu"//g; s/ class="rwarn"//g;
s/All of the glue/Glue/g; s/All of your MX/All MX/g; s/All of your nameservers/Nameservers/g; s/Checking domain format/Domain format/g;
s/Checking for parent nameservers/Parent nameservers/g; s/Checking for parent glue/Parent glue/g; s/Each of your nameservers/Each nameserver/g;
s/I expected/Expected/g; s/I found the following MX records://g; s/I got an error response to my/Received an error response to/g;
s/I was unable/Unable/g; s/None of your MX/No MX/g; s/This is all of the MX servers I found.//g; s/WWW/www/g;
s/Your nameservers/Nameservers/g; s/Your NS records at your nameservers are://g; s/Your NS records at your parent nameserver are://g;
s/Your SOA/SOA/g; s/Your web server/The web server/g; s/Your web server says it is://g' tmp3 > $home/data/$domain/data/config.htm
echo "ewhois.com (24/$total)"
wget -q http://www.ewhois.com/$domain/ -O tmp
cat tmp | grep 'visitors' | cut -d '(' -f1 | cut -d '>' -f2 | grep -v 'OTHER' | column -t | sort -u > sub3
echo "myipneighbors.net (25/$total)"
wget -q http://www.myipneighbors.net/?s=$domain -O tmp
grep 'Domains' tmp | sed 's/<\/tr>/\\\n/g' | cut -d '=' -f3,6 | sed 's/" rel=/ /g' | sed 's/" rel//g' | grep -v '/' | column -t | sort -u > sub4
cat sub* | grep -v "$domain\." | sed 's/www\.//g' | column -t | sort -u > tmp
# Remove lines that contain a single word
sed '/[[:blank:]]/!d' tmp > subdomains
echo "urlvoid.com (26/$total)"
wget -q http://www.urlvoid.com/scan/$domain -O tmp
sed -n '/Safety Scan Report/,/<\/table>/p' tmp | grep -v 'Safety Scan Report' | sed 's/View more details.../Details/g' > $home/data/$domain/data/black-listed.htm
awk '{print $2}' subdomains > tmp
grep -E '([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})' tmp | egrep -v '(-|=|:)' | $sip > hosts
cat hosts >> $home/data/$domain/data/hosts.htm; echo "</pre>" >> $home/data/$domain/data/hosts.htm
##############################################################
echo > zreport
echo >> zreport
echo "Summary" >> zreport
echo $short >> zreport
echo > tmp
if [ -e emails ]; then
emailcount=$(wc -l emails | cut -d ' ' -f1)
echo "Emails $emailcount" >> zreport
echo "Emails ($emailcount)" >> tmp
echo $short >> tmp
cat emails >> tmp
echo >> tmp
cat emails >> $home/data/$domain/data/emails.htm
fi
if [ -e names ]; then
namecount=$(wc -l names | cut -d ' ' -f1)
echo "Names $namecount" >> zreport
echo "Names ($namecount)" >> tmp
echo $short >> tmp
cat names >> tmp
echo >> tmp
cat names >> $home/data/$domain/data/names.htm
fi
if [ -e hosts ]; then
hostcount=$(wc -l hosts | cut -d ' ' -f1)
echo "Hosts $hostcount" >> zreport
echo "Hosts ($hostcount)" >> tmp
echo $short >> tmp
cat hosts >> tmp
echo >> tmp
fi
if [ -e squatting ]; then
urlcount2=$(wc -l squatting | cut -d ' ' -f1)
echo "Squatting $urlcount2" >> zreport
echo "Squatting ($urlcount2)" >> tmp
echo $long >> tmp
cat squatting >> tmp
echo >> tmp
cat squatting >> $home/data/$domain/data/squatting.htm
fi
if [ -e subdomains ]; then
urlcount=$(wc -l subdomains | cut -d ' ' -f1)
echo "Subdomains $urlcount" >> zreport
echo "Subdomains ($urlcount)" >> tmp
echo $long >> tmp
cat subdomains >> tmp
echo >> tmp
cat subdomains >> $home/data/$domain/data/subdomains.htm
fi
if [ -e xls ]; then
xlscount=$(wc -l xls | cut -d ' ' -f1)
echo "Excel $xlscount" >> zreport
echo "Excel Files ($xlscount)" >> tmp
echo $long >> tmp
cat xls >> tmp
echo >> tmp
cat xls >> $home/data/$domain/data/xls.htm; echo "</pre>" >> $home/data/$domain/data/xls.htm
fi
if [ -e pdf ]; then
pdfcount=$(wc -l pdf | cut -d ' ' -f1)
echo "PDF $pdfcount" >> zreport
echo "PDF Files ($pdfcount)" >> tmp
echo $long >> tmp
cat pdf >> tmp
echo >> tmp
cat pdf >> $home/data/$domain/data/pdf.htm; echo "</pre>" >> $home/data/$domain/data/pdf.htm
fi
if [ -e ppt ]; then
pptcount=$(wc -l ppt | cut -d ' ' -f1)
echo "PowerPoint $pptcount" >> zreport
echo "PowerPoint Files ($pptcount)" >> tmp
echo $long >> tmp
cat ppt >> tmp
echo >> tmp
cat ppt >> $home/data/$domain/data/ppt.htm; echo "</pre>" >> $home/data/$domain/data/ppt.htm
fi
if [ -e txt ]; then
txtcount=$(wc -l txt | cut -d ' ' -f1)
echo "Text $txtcount" >> zreport
echo "Text Files ($txtcount)" >> tmp
echo $long >> tmp
cat txt >> tmp
echo >> tmp
cat txt >> $home/data/$domain/data/txt.htm; echo "</pre>" >> $home/data/$domain/data/txt.htm
fi
if [ -e doc ]; then
doccount=$(wc -l doc | cut -d ' ' -f1)
echo "Word $doccount" >> zreport
echo "Word Files ($doccount)" >> tmp
echo $long >> tmp
cat doc >> tmp
echo >> tmp
cat doc >> $home/data/$domain/data/doc.htm; echo "</pre>" >> $home/data/$domain/data/doc.htm
fi
cat tmp >> zreport
echo "Whois Domain" >> zreport
echo $long >> zreport
cat whois-domain >> zreport
echo "Whois IP" >> zreport
echo $long >> zreport
cat whois-ip >> zreport
echo "</pre>" >> $home/data/$domain/data/emails.htm
echo "</pre>" >> $home/data/$domain/data/names.htm
echo "</pre>" >> $home/data/$domain/data/squatting.htm
echo "</pre>" >> $home/data/$domain/data/subdomains.htm
cat whois-domain >> $home/data/$domain/data/whois-domain.htm; echo "</pre>" >> $home/data/$domain/data/whois-domain.htm
cat whois-ip >> $home/data/$domain/data/whois-ip.htm; echo "</pre>" >> $home/data/$domain/data/whois-ip.htm
cat zreport >> $home/data/$domain/data/passive-recon.htm; echo "</pre>" >> $home/data/$domain/data/passive-recon.htm
rm debug* emails hosts names squatting sub* tmp* whois* z* doc pdf ppt txt xls 2>/dev/null
echo
echo $medium
echo
echo "***Scan complete.***"
echo
echo
printf 'The supporting data folder is located at \x1B[1;33m%s\x1B[0m\n' $home/data/$domain/
echo
read -p "Press <return> to continue."
##############################################################
f_runlocally
$web &
sleep 2
$web https://www.virustotal.com/en/domain/$domain/information/ &
sleep 1
$web https://safeweb.norton.com/report/show?url=$domain &
sleep 1
$web toolbar.netcraft.com/site_report?url=http://www.$domain &
sleep 1
$web https://www.google.com/#q=filetype%3Axls+OR+filetype%3Axlsx+site%3A$domain &
sleep 1
$web https://www.google.com/#q=filetype%3Appt+OR+filetype%3Apptx+site%3A$domain &
sleep 1
$web https://www.google.com/#q=filetype%3Adoc+OR+filetype%3Adocx+site%3A$domain &
sleep 1
$web https://www.google.com/#q=filetype%3Apdf+site%3A$domain &
sleep 1
$web https://www.google.com/#q=filetype%3Atxt+site%3A$domain &
sleep 1
$web https://www.ssllabs.com/ssltest/analyze.html?d=$domain"&"hideResults=on"&"latest &
sleep 1
$web http://www.urlvoid.com/scan/$domain &
sleep 1
arinip=$(ping $domain -c1 | grep -m1 bytes | cut -d "(" -f2 | sed 's:)[^)]*$::')
$web https://whois.arin.net/ui/arin.xsl?queryinput=$arinip &
sleep 1
$web https://connect.data.com/login &
sleep 1
$web pastebin.com/search?cx=013305635491195529773%3A0ufpuq-fpt0\&cof=FORID%3A10\&ie=UTF-8\&q=$company\&sa.x=0\&sa.y=0 &
sleep 1
$web https://www.robtex.com/#\!dns=$domain &
sleep 1
$web https://www.shodan.io/search?query=$domain &
sleep 1
$web http://www.reuters.com/finance/stocks/lookup?searchType=any\&search=$company &
sleep 1
$web https://www.sec.gov/cgi-bin/browse-edgar?company=$company\&owner=exclude\&action=getcompany &
echo
echo
exit
;;
2)
echo
echo $medium
echo
echo "Usage: target.com"
echo
echo -n "Domain: "
read domain
# Check for no answer
if [[ -z $domain ]]; then
f_error
fi
# If folder doesn't exist, create it
if [ ! -d $home/data/$domain ]; then
cp -R $discover/report/ $home/data/$domain
sed 's/REPLACEDOMAIN/'$domain'/' $home/data/$domain/index.htm > tmp
mv tmp $home/data/$domain/index.htm
fi
# Number of tests
total=11
echo
echo $medium
echo
echo "Nmap"
echo " Email (1/$total)"
nmap -Pn -n --open -p80 --script=http-grep $domain > tmp
grep '@' tmp | awk '{print $3}' > emails1
echo
echo "dnsrecon"
echo " DNS Records (2/$total)"
dnsrecon -d $domain -t std > tmp
egrep -v '(All queries|Bind Version for|Could not|Enumerating SRV|It is resolving|not configured|Performing|Records Found|Recursion|Resolving|TXT|Wildcard)' tmp > tmp2
# Remove first 6 characters from each line
sed 's/^......//' tmp2 | awk '{print $2,$1,$3,$4,$5,$6,$7,$8,$9,$10}' | column -t | sort -u -k2 -k1 > tmp3
grep 'TXT' tmp | sed 's/^......//' | awk '{print $2,$1,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15}' >> tmp3
egrep -v '(SEC3|SKEYs|SSEC)' tmp3 > records
cat $home/data/$domain/data/records.htm records | grep -v '<' | column -t | sort -u -k2 -k1 > tmp3
echo '<pre style="font-size:14px;">' > $home/data/$domain/data/records.htm
cat tmp3 | column -t >> $home/data/$domain/data/records.htm; echo "</pre>" >> $home/data/$domain/data/records.htm
echo " Zone Transfer (3/$total)"
dnsrecon -d $domain -t axfr > tmp
egrep -v '(Checking for|Failed|filtered|NS Servers|Removing|TCP Open|Testing NS)' tmp | sed 's/^....//' | sed /^$/d > zonetransfer
echo " Sub-domains (~5 min) (4/$total)"
if [ -f /usr/share/dnsrecon/namelist.txt ]; then
dnsrecon -d $domain -t brt -D /usr/share/dnsrecon/namelist.txt --iw -f > tmp
fi
# PTF
if [ -f /pentest/intelligence-gathering/dnsrecon/namelist.txt ]; then
dnsrecon -d $domain -t brt -D /pentest/intelligence-gathering/dnsrecon/namelist.txt --iw -f > tmp
fi
grep $domain tmp | grep -v "$domain\." | egrep -v '(Performing|Records Found)' | sed 's/\[\*\] //g; s/^[ \t]*//' | awk '{print $2,$3}' | column -t | sort -u > subdomains-dnsrecon
echo
echo "Fierce (~5 min) (5/$total)"
if [ -f /usr/share/fierce/hosts.txt ]; then
fierce -dns $domain -wordlist /usr/share/fierce/hosts.txt -suppress -file tmp4
fi
# PTF
if [ -f /pentest/intelligence-gathering/fierce/hosts.txt ]; then
fierce -dns $domain -wordlist /pentest/intelligence-gathering/fierce/hosts.txt -suppress -file tmp4
fi
sed -n '/Now performing/,/Subnets found/p' tmp4 | grep $domain | awk '{print $2 " " $1}' | column -t | sort -u > subdomains-fierce
cat subdomains-dnsrecon subdomains-fierce | egrep -v '(.nat.|1.1.1.1|6.9.6.9|127.0.0.1)' | column -t | sort -u | awk '$2 !~ /[a-z]/' > subdomains
if [ -e $home/data/$domain/data/subdomains.htm ]; then
cat $home/data/$domain/data/subdomains.htm subdomains | grep -v "<" | grep -v "$domain\." | column -t | sort -u > subdomains-combined
echo '<pre style="font-size:14px;">' > $home/data/$domain/data/subdomains.htm
cat subdomains-combined >> $home/data/$domain/data/subdomains.htm
echo "</pre>" >> $home/data/$domain/data/subdomains.htm
fi
awk '{print $3}' records > tmp
awk '{print $2}' subdomains-dnsrecon subdomains-fierce >> tmp
grep -E '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}' tmp | egrep -v '(-|=|:|1.1.1.1|6.9.6.9|127.0.0.1)' | $sip > hosts
echo
echo "Loadbalancing (6/$total)"
lbd $domain > tmp 2>/dev/null
egrep -v '(Checks if a given|Written by|Proof-of-concept)' tmp > tmp2
# Remove leading whitespace from file
awk '!d && NF {sub(/^[[:blank:]]*/,""); d=1} d' tmp2 > tmp3
# Remove leading whitespace from each line
sed 's/^[ \t]*//' tmp3 > tmp4
egrep -v '(does Load-balancing|does NOT use Load-balancing)' tmp4 | sed 's/Checking for //g' > tmp5
# Remove blank lines from end of file
awk '/^[[:space:]]*$/{p++;next} {for(i=0;i<p;i++){printf "\n"}; p=0; print}' tmp5 > tmp6
# Clean up
cat -s tmp6 | grep -v 'P3P' > loadbalancing
echo
echo "Web Application Firewall (7/$total)"
wafw00f -a http://www.$domain > tmp
cat tmp | egrep -v '(By Sandro|Checking http://www.|Generic Detection|requests|WAFW00F)' > tmp2
sed "s/ http:\/\/www.$domain//g" tmp2 | egrep -v "(\_|\^|\||<|')" | sed '1,4d' > waf
echo
echo "Traceroute"
echo " UDP (8/$total)"
echo "UDP" > tmp
traceroute $domain | awk -F" " '{print $1,$2,$3}' >> tmp
echo >> tmp
echo "ICMP ECHO" >> tmp
echo " ICMP ECHO (9/$total)"
traceroute -I $domain | awk -F" " '{print $1,$2,$3}' >> tmp
echo >> tmp
echo "TCP SYN" >> tmp
echo " TCP SYN (10/$total)"
traceroute -T $domain | awk -F" " '{print $1,$2,$3}' >> tmp
grep -v 'traceroute' tmp > tmp2
# Remove blank lines from end of file
awk '/^[[:space:]]*$/{p++;next} {for(i=0;i<p;i++){printf "\n"}; p=0; print}' tmp2 > ztraceroute
echo
echo "Whatweb (11/$total)"
grep -v '<' $home/data/$domain/data/subdomains.htm | awk '{print $1}' > tmp
whatweb -i tmp --color=never --no-errors -t 255 > tmp2
# Find lines that start with http, and insert a line after
sort tmp2 | sed '/^http/a\ ' > tmp3
# Cleanup
sed 's/,/\n/g' tmp3 | sed 's/^[ \t]*//' | sed 's/\(\[[0-9][0-9][0-9]\]\)/\n\1/g; s/http:\/\///g' | grep -v 'Country' > whatweb
grep '@' whatweb | sed 's/Email//g; s/\[//g; s/\]//g' > tmp
# Change to lower case
cat tmp | tr '[A-Z]' '[a-z]' > emails2
cat emails1 emails2 | grep "@$domain" | grep -v 'hosting' | cut -d ' ' -f2 | sort -u > emails
# If this file is empty, delete it
if [ ! -s emails ]; then rm emails; fi
if [ ! -s hosts ]; then rm hosts; fi
if [ ! -s records ]; then rm records; fi
if [ ! -s subdomains ]; then rm subdomains; fi
##############################################################
echo > zreport
echo >> zreport
echo "Summary" >> zreport
echo $short >> zreport
echo > tmp
if [ -e emails ]; then
emailcount=$(wc -l emails | cut -d ' ' -f1)
echo "Emails $emailcount" >> zreport
echo "Emails ($emailcount)" >> tmp
echo $short >> tmp
cat emails >> tmp
echo >> tmp
fi
if [ -e hosts ]; then
hostcount=$(wc -l hosts | cut -d ' ' -f1)
echo "Hosts $hostcount" >> zreport
echo "Hosts ($hostcount)" >> tmp
echo $short >> tmp
cat hosts >> tmp
echo >> tmp
fi
if [ -e records ]; then
recordcount=$(wc -l records | cut -d ' ' -f1)
echo "DNS Records $recordcount" >> zreport
echo "DNS Records ($recordcount)" >> tmp
echo $long >> tmp
cat records >> tmp
echo >> tmp
fi
if [ -e subdomains ]; then
subdomaincount=$(wc -l subdomains | cut -d ' ' -f1)
echo "Subdomains $subdomaincount" >> zreport
echo "Subdomains ($subdomaincount)" >> tmp
echo $long >> tmp
cat subdomains >> tmp
echo >> tmp
fi
cat tmp >> zreport
echo "Loadbalancing" >> zreport
echo $long >> zreport
cat loadbalancing >> zreport
echo "Web Application Firewall" >> zreport
echo $long >> zreport
cat waf >> zreport
echo >> zreport
echo "Traceroute" >> zreport
echo $long >> zreport
cat ztraceroute >> zreport
echo >> zreport
echo "Zone Transfer" >> zreport
echo $long >> zreport
cat zonetransfer >> zreport
echo >> zreport
echo "Whatweb" >> zreport
echo $long >> zreport
cat whatweb >> zreport
cat loadbalancing >> $home/data/$domain/data/loadbalancing.htm; echo "</pre>" >> $home/data/$domain/data/loadbalancing.htm
cat zreport >> $home/data/$domain/data/active-recon.htm; echo "</pre>" >> $home/data/$domain/data/active-recon.htm
cat ztraceroute >> $home/data/$domain/data/traceroute.htm; echo "</pre>" >> $home/data/$domain/data/traceroute.htm
cat waf >> $home/data/$domain/data/waf.htm; echo "</pre>" >> $home/data/$domain/data/waf.htm
cat whatweb >> $home/data/$domain/data/whatweb.htm; echo "</pre>" >> $home/data/$domain/data/whatweb.htm
cat zonetransfer >> $home/data/$domain/data/zonetransfer.htm; echo "</pre>" >> $home/data/$domain/data/zonetransfer.htm
if [[ -e $home/data/$domain/data/emails.htm && -e emails ]]; then
cat $home/data/$domain/data/emails.htm emails | grep -v '<' | sort -u > tmp
echo '<pre style="font-size:14px;">' > $home/data/$domain/data/emails.htm
cat tmp >> $home/data/$domain/data/emails.htm; echo "</pre>" >> $home/data/$domain/data/emails.htm
fi
cat hosts $home/data/$domain/data/hosts.htm | grep -v '<' | $sip > tmp
echo '<pre style="font-size:14px;">' > $home/data/$domain/data/hosts.htm
cat tmp >> $home/data/$domain/data/hosts.htm; echo "</pre>" >> $home/data/$domain/data/hosts.htm
rm emails* hosts loadbalancing records sub* tmp* waf whatweb z*
echo
echo $medium
echo
echo "***Scan complete.***"
echo
echo
printf 'The supporting data folder is located at \x1B[1;33m%s\x1B[0m\n' $home/data/$domain/
echo
echo
$web $home/data/$domain/index.htm &
exit
;;
3) f_main;;
*) f_error;;
esac
}
##############################################################################################################
f_person(){
f_runlocally
clear
f_banner
echo -e "\x1B[1;34mRECON\x1B[0m"
echo
echo -n "First name: "
read firstName
# Check for no answer
if [[ -z $firstName ]]; then
f_error
fi
echo -n "Last name: "
read lastName
# Check for no answer
if [[ -z $lastName ]]; then
f_error
fi
$web &
sleep 2
$web http://www.411.com/name/$firstName-$lastName/ &
sleep 1
uripath="http://www.advancedbackgroundchecks.com/search/results.aspx?type=&fn=${firstName}&mi=&ln=${lastName}&age=&city=&state="
$web $uripath &
sleep 1
$web http://www.cvgadget.com/person/$firstName/$lastName &
sleep 1
$web http://www.peekyou.com/$firstName%5f$lastName &
sleep 1
$web http://phonenumbers.addresses.com/people/$firstName+$lastName &
sleep 1
$web https://pipl.com/search/?q=$firstName+$lastName&l=&sloc=&in=5 &
sleep 1
$web http://www.spokeo.com/search?q=$firstName+$lastName&s3=t24 &
sleep 1
$web http://www.zabasearch.com/query1_zaba.php?sname=$firstName%20$lastName&state=ALL&ref=$ref&se=$se&doby=&city=&name_style=1&tm=&tmr= &
sleep 1
$web https://www.linkedin.com/pub/dir/?first=$firstName\&last=$lastName\&search=Search &
sleep 1
$web https://twitter.com/search?q=%22$firstName%20$lastName%22&src=typd &
f_main
}
##############################################################################################################
f_salesforce(){
clear
f_banner
echo -e "\x1B[1;34mCreate a free account at salesforce (https://connect.data.com/login).\x1B[0m"
echo -e "\x1B[1;34mPerform a search on your target company > select the company name > see all.\x1B[0m"
echo -e "\x1B[1;34mCopy the results into a new file.\x1B[0m"
f_location
echo
echo
sed 's/Direct Dial Available//g' $location | sed 's/\[\]//g; s/\.//g; s/,,//g; s/,`//g; s/`,//g; s/-cpg//g; s/3d/3D/g; s/Aberdeen Pr//g; s/ACADEMIC/Academic/g; s/account/Account/g;
s/ACTING/Acting/g; s/3administrator/Administrator/g; s/Europe and Africa//g; s/Sub Saharan Africa//g; s/South Africa//g; s/Agoura Hills//g; s/New Albany//g; s/Albion QL//g;
s/Aliso Viejo//g; s/Allison Park//g; s/Altamonte S//g; s/Am-east,//g; s/Am-west,//g; s/Head of Americas//g; s/The Americas//g; s/Amst-north America//g; s/ANALYSIST/Analysist/g;
s/Analyst\//Analyst, /g; s/analytics/Analytics/g; s/and New England//g; s/and Central Us//g; s/North Andover//g; s/Andrews Air//g; s/android/Android/g; s/Annapolis J//g;
s/Ann Arbor//g; s/Apple Valley//g; s/applications/Applications/g; s/Arlington H//g; s/Asia-Pacific//g; s/Asia and India//g; s/asia Pacific Region//g; s/Asia Pacific//g;
s/assistant/Assistant/g; s/AssistantChiefPatrolAgent/Assistant Chief Patrol Agent/g; s/associate/Associate/g; s/at Booz Allen Hamilton//g; s/at Booz Allen//g; s/at Google//g;
s/Atlantic City//g; s/Atm/ATM/g; s/attorney/Attorney/g; s/Australia S//g; s/automated/Automated/g; s/Ballston Spa//g; s/Bangalore S//g; s/banking/Banking/g; s/Basking Ridge//g;
s/Baton Rouge//g; s/Battle Creek//g; s/Battle Ground//g; s/Bay City//g; s/Bay Shore//g; s/BC//g; s/Bd/BD/g; s/Beaver Falls//g; s/Bel Air//g; s/Bella Vista//g; s/Berkeley He//g;
s/Berwyn Hts//g; s/Bethel Park//g; s/Beverly Hills//g; s/billing/Billing/g; s/Black Belt//g; s/Boca Raton//g; s/BORDER/Border/g; s/Bowling Green//g; s/Boynton Beach//g;
s/branch/Branch/g; s/\/Branch/, Branch/g; s/branch/Branch/g; s/Buffalo Grove//g; s/business/Business/g; s/buyer/Buyer/g; s/By The//g; s/Calabasas Hls//g; s/Camp Hill//g;
s/Camp H M Smith//g; s/Camp Springs//g; s/Canoga Park//g; s/Canyon Country//g; s/Cape Canaveral//g; s/Cape Coral//g; s/Cape May//g; s/Capitol Hei//g; s/cargo/Cargo/g;
s/Carol Stream//g; s/Carol Stream//g; s/cascade/Cascade/g; s/Castle Rock//g; s/Cedar Hill//g; s/Cedar Rapids//g; s/census/Census/g; s/Center Line//g; s/CENTER/Center/g;
s/Central California//g; s/Central Region//g; s/central Region//g; s/Chagrin Falls//g; s/Charles Town//g; s/Charlottesv//g; s/Cherry Hill//g; s/Chester Le //g; s/East Chicago//g;
s/\/Chief/, Chief/g; s/China //g; s/Chino Hills//g; s/chromecast/Chromecast/g; s/Chula Vista//g; s/Cissp/CISSP/g;
s/CITRIX/Citrix/g; s/clean/Clean/g; s/Clifton Park//g; s/cms/CMS/g; s/Cms/CMS/g; s/CNN News Group Cable News Network//g; s/Cmms/CMMS/g; s/Cocoa Beach//g; s/Cold Spring//g;
s/Colorado Sp//g; s/Commerce City//g; s/CommitteemanagementOfficer/Committee Management Officer/g; s/compliance/Compliance/g; s/commercial/Commercial/g; s/connected/Connected/g;
s/CONSULTANT/Consultant/g; s/consumer/Consumer/g; s/contact/Contact/g; s/content/Content/g; s/corporate/Corporate/g; s/Corpus Christi//g; s/Council Bluffs//g; s/COUNSEL/Counsel/g;
s/counsel/Counsel/g; s/Cranberry T//g; s/Cranberry Twp//g; s/credit/Credit/g; s/CREDIT/Credit/g; s/Crm/CRM/g; s/Croton On H//g; s/Cross Junction//g; s/Crum Lynne//g;
s/Crystal Lake//g; s/Ctr/Center/g; s/Culver City//g; s/Cuyahoga Falls//g; s/Daly City//g; s/database/Database/g; s/dealer/Dealer/g; s/defense/Defense/g; s/DELIVERY/Delivery/g;
s/Del Mar//g; s/Delray Beach//g; s/Deer Park//g; s/Del Rio//g; s/DEPUTY/Deputy/g; s/West Des Mo//g; s/Des Moines//g; s/Des Plaines//g;
s/DesignatedFederalOfficial/Designated Federal Official/g; s/DESIGNER/Designer/g; s/DESIGN/Design/g; s/development/Development/g; s/DEVICES/Devices/g; s/Diamond Bar//g;
s/director/Director/g; s/DISCIPLINED/Disciplined/g; s/discovery/Discovery/g; s/display/Display/g; s/Dns/DNS/g; s/Downers Grove//g; s/Drexel Hill//g; s/Du Bois//g;
s/East Brunswick//g; s/East Central//g; s/East Coast//g; s/East Douglas//g; s/East Greenbush//g; s/East Hanover//g; s/East Hartford//g; s/East Lansing//g; s/East Peters//g;
s/East Stroud//g; s/East Syracuse//g; s/eastern Region//g; s/Eau Claire//g; s/Eden Prairie//g; s/education/Education/g; s/Egg Harbor//g; s/Egg Harbor//g; s/El Cajon//g;
s/El Centro//g; s/El Monte//g; s/El Paso//g; s/El Segundo//g; s/ELECTRIC/Electric /g; s/ELECTRONICS/Electronics/g; s/Port Elizabeth//g; s/Elk Grove V//g; s/Elk Grove//g;
s/Ellicott City//g; s/Elk Grove V//g; s/Elkhart//g; s/Elm Grove//g; s/emerging/Emerging/g; s/endocrinology/Endocrinology/g; s/energy/Energy/g; s/engineer/Engineer/g;
s/enterprise/Enterprise/g; s/ETHICS/Ethics/g; s/Northern Europe//g; s/EVENT/Event/g; s/executive/Executive/g; s/Faa/FAA/g; s/Fairfax Sta//g; s/Fairview He//g; s/Fall River//g;
s/Falls Church//g;