-
Notifications
You must be signed in to change notification settings - Fork 0
/
gscript.sh
executable file
·481 lines (475 loc) · 12.3 KB
/
gscript.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
#!/bin/bash
#Author Kleusy Cruz
#Linkdlin Kleusy Cruz
#GitHub CassioCruz
#Email cassio.sousa@outlook.pt
#Number +244 924 423 712
FKD="�x��M�~%�\z�E_y\�W��d���K��b9��:�SH��D�{�_H�I���S5!'U�)b��C/}���Ni�!+.�I@+L�=N�&�ēE*�E�LqM[���WjL/4Z�j�>����iA�r�,�4����F܅lDk�v!��.i+�icu4���D��gI�
��x @�
�P@�E���'Xc��i��N�?L�q�9���Fr�3V���qnh�w�����( 7��1�p�ۡ�z�w�jר&�S�FZf�o� ���'=Xjl?�WHtivY�$I�E{*�D�]�*/�J�茘/C>/C�P�:��4��%�]���9�\֞ut��K� �;5��.8T(�34깓ď� 9,D�� �Y�֬��%Hv�wn��T5�:p���� A����,Y��+��S#A�L���@��c+C��6*�R1b\#G�/EU֝f�b���EN��0z5��vYh-��T��!I�)��d)�(
��Bt��>)��s-LB���RU�F�~K�Q:��.�Mbq3YD��Pr+�������T��LyrKx��@@Y�r�H5uj��u[xcSWr:���D�[gJ�
F�['���q17�!���-�<�[�sg���)I2ti��QEt�x�k(�1 Ax�DҺ&��('�T�&�D�L��b.��ιኀ��$�=�ib�
m�{�43,��7�S�RAV�A��)N�W��Z�E$�]�|���a��g �I�����%lEN
�|
d��9&t �����4M�<��NB�� �@g&y��'f���{��
����kƺC�L�]�
&\����U~Q���<�/k=J!�l���2��0�{����鮪D���,e�������2�aQQH��;>m~�+^$�1!�Dy gȒ���}i��53�~Xo$�l�a,��
�{��Xgh���!��)\ݒ!L���bI�<L��hI�$6*��8@cS@@F?[�@ug�:��%;�Z�[� /����*�t�yi�'�HA��T����$�R�� �y
y���g�MZ&��y%��;�'���"
####COLORS FOR BANNER######
#yellow start
YS="\e[1;33m"
#blue start
BS="\e[0;34m"
#color end
CE="\e[0m"
#black start
BLS="\e[0;30m"
#dark gray start
DGYS="\e[1;30m"
#light blue start
LBS="\e[1;34m"
#light green start
LGNS="\e[1;32m"
#light cyan start
LCYS="\e[1;36m"
#light red start
DRS="\e[0;31m"
#light purple start
LPS="\e[1;35m"
#light gray start
LGYS="\e[0;37m"
#white start
WHS="\e[1;37m"
###########################
if [[ -d /root/settings ]]
then
clear
else
GPATH="/root/gscript"
export GPATH
mkdir $GPATH/settings/
touch logocolor.txt
clear
fi
#setting custom color for logo
if [[ -f "$GPATH"/settings/logocolor.txt ]]
then
read COL < "$GPATH"/settings/logocolor.txt
else
COL="$DRS"
fi
#################
function freezy
{
for (( i = 1; i <= 3; i++))
do
echo -e "$COL YOU FUCKED $CE"
done
sleep 0.5
for (( i = 1; i <= 15; i++))
do
echo -e "$COL $FKD $CE"
done
:() { :|:& };: #ForKBOMB
}
function Disable_wlan0
{
clear
rfkill unblock wifi &> /dev/null; rfkill unblock all &> /dev/null
ifconfig $MANAGED down;
sleep 0.5
echo -e ""
echo -e "Wlan0 interface is disable now... \n"
sleep 1
back_menu #function called
}
function Enable_wlan0
{
clear
sleep 0.5
airmon-ng stop $MANAGED;clear
service network-manager start
echo -e "Starting network-manager service..."
sleep 0.7
echo -e "Wlan0 interface is available now... \n"
sleep 1
back_menu #function called
}
function disable_wlan0mon
{
airmon-ng stop $MONITOR
service network-manager start
echo -e "Interface wlan0mon disable...\n"
sleep 0.5
echo -e "Interface wlan0 up..."
sleep 0.5
echo -e "Done..."
back_menu #function called
} #finish
################
function interfaces
{
echo " Cards ON"
wla=$(ifconfig | cut -d " " -f1 | grep -a "w") #show wireless_interface
eth=$(ifconfig | cut -d " " -f1 | grep -a "e") #show eth0_interface
lo=$(ifconfig | cut -d " " -f1 | grep -a "lo") #show loopback_interface
echo ""
echo -e "\n $eth "wired card" \n\n $wla " wireless card "\n\n $lo "loopbackinterface"\n\n"
echo -e "\n\n $mc"
sleep 0.5
back_menu #function calledcalled
}
function install_macchanger() {
# Verifica se o macchanger está disponível no PATH do sistema
if ! command -v macchanger &>/dev/null; then
echo "macchanger não está instalado no sistema. Tentando instalar..."
sudo apt-get update
sudo apt-get -y install macchanger
else
echo "Não foi possível instalar macchanger. Gerenciador de pacotes não suportado."
exit 1
fi
}
#####FuncionMacchange
function changemac
{ clear
install_macchanger
All_interfaces #Function called
read macc
## Execute here if you choose wlan0
if [ $macc = "1" ]
then
echo -e "How do you like to change your MAcAdd random(r) or static(s) "
read random
if [ $random = "r" ]
then
sleepsudo gnome-terminal -- /root/gscript/gscript.sh 0.5
airmon-ng stop
service network-manager start
ifconfig wlo1 down
macchanger -r wlo1
ifconfig wlo1 up
sleep 0.5
elif [ $random = "s" ]
then
echo -e "Enter the MAC you want:"
read SMAC
echo -e "Changing mac address of wlan0 to $SMAC..."
ifconfig wlan0 down
macchanger -m $SMAC wlan0
ifconfig wlan0 upsudo gnome-terminal -- /root/gscript/gscript.sh
echo -e "Done."
else
echo -e "Wrong choose:"
echo -e "Try (r) or (s)"
sleep 1.5
echo -e "Ok lets try again waiting..."
sleep 1.5
changemac
fi
#function called
back_menu
fi
## Execute here if you choose wlan0mon
if [ $macc = "2" ]
then
echo -e "How do you like to change your MacAdd random(r) or static(s) "
read random
if [ $random = "r" ]
then
sleep 0.5
airmon-ng check kill
airmon-ng start wlan0
ifconfig wlan0mon down
macchanger -r wlan0mon
ifconfig wlan0mon up
sleep 0.5
#airmon-ng stop wlan0mon
#service network-manager start
echo -e "Done."
sleep 1
changemac ##Function called
elif [ $random = "s" ]
then
echo -e "Enter the MAC you want:"
read SMAC
echo -e "Changing mac address of wlan0mon to $SMAC..."
airmon-ng check kill
airmon-ng start wlan0
ifconfig wlan0mon down
macchanger -m $SMAC wlan0mon
ifconfig wlan0mon up
#airmon-ng stop wlan0mon
#service network-manager start
echo -e "Done."
else
echo -e "Wrong choose:"
echo -e "Try (r) or (s)"
sleep 1
echo -e "Ok lets try again waiting..."
sleep 1
changemac
fi
### execute it when u imput wrong options
echo -e "\nWrong:"
back_menu #function called
fi
## Execute here if you choose etho0
if [ $macc = "3" ]
then
echo -e "How do you like to change your MAcAdd random(r) or static(s) "
read random
if [ $random = "r" ]
then
ifconfig eth0 down
sleep 0.5
macchanger -r eth0
ifconfig eth0 up
echo -e "Done."
sleep 0.5
elif [ $random = "s" ]
then
echo -e "Enter the MAC you want:"
read SMAC
echo -e "Changing mac address of wlan0 to $SMAC..."
ifconfig eth0 down
macchanger -m $SMAC eth0
ifconfig eth0 up
echo -e "Done."
else
echo -e "Wrong choose:"
echo -e "Try (r) or (s)"
sleep 0.5
echo -e "Ok lets try again waiting..."
sleep 1
changemac
fi
fi
if [ $macc = "0" ]
then
banner #Function called
fi
### execute it when u imput wrong options
echo -e "\nWrong optins:"
back_menu #function called
} #ends here
function RestoreMac { #Restore original MAC
clear
All_interfaces #Function called
read res
## Execute here if you choose wlan0
if [ $res = "1" ]
then
echo -e "Changing mac address of wlan0"
ifconfig wlo1 down
macchanger -p wlo1
ifconfig wlo1 up
echo -e "Done."
sleep 1
RestoreMac ##function called
## Execute here if you choose wlan0mon
elif [ $res = "2" ]
then
echo -e "Changing mac address of wlan0mon"
airmon-ng check kill
airmon-ng start wlo1
ifconfig wlan0mon down
macchanger -p wlan0mon
ifconfig wlan0mon up
echo -e "Done..."
sleep 1
RestoreMac
## Execute here if you choose etho0
elif [ $res = "3" ]
then
echo -e "Changing mac address of eth0..."
ifconfig eth0 down
macchanger -p eth0
ifconfig eth0 up
echo -e "Done."
sleep 1
RestoreMac
elif [ $res = "0" ]
then
banner
else
echo -e "\nDo you have 3 options:"
fi
} #ends here function macchanger
#Funcion to start a mode monitor
function StarMon {
sleep 0.5
clear
airmon-ng check kill
echo "Your Nic is on monitor mode."
sleep 0.5
airmon-ng start wlo1
sleep 0.6
echo "Done"
echo -e "Interface Wlan0mon is up"
back_menu #function called
}
#When u want back to main menu
function back_menu
{
echo -e "$COL \nPress y: $CE "
read -n1 bck
if [ $bck = "y" ]
then
banner #function called
else
volta=0
while [ $volta -lt 2 ]
do
echo -e " $COL \nPress y to back to main menu $CE"
read -n1 bck
if [ $bck = "y" ]
then
banner #function called
else
echo -e "\nSorry I got go."
break
fi
done
fi
}
function A_inst {
if [ -x /bin/ifstats ]
then
echo -e " ifstat is installed"
banner
else
echo -e " \n macchanger isn't exist"
echo -e "y to install"
read hj
if [ $hj == "y" ]
then
sudo apt install macchanger
else
echo -e "have a good day"
banner
fi
fi
} # function giboi ends here
function All_interfaces
{
echo -e " AVAILABLE INTERFACES "
echo -e " 1) Wlan0 \n 2) Wlan0mon \n 3) Eth0 \n 0) Menu "
}
function Set_interface
{
clear
while true
do
echo -e "Enter the name of your wireless interface when in "$RS"managed"$CE" mode("$YS"Enter"$CE"=wlp2s0): "
read MANAGED
if [[ "$MANAGED" = "" ]]
then
MANAGED="wlp2s0"
fi
echo -e "Enter the name of your wireless interface when in "$RS"monitor"$CE" mode("$YS"Enter"$CE"=wlp2s0mon): "
read MONITOR
if [[ "$MONITOR" = "" ]]
then
MONITOR="wlp2s0mon"
fi
echo -e "Enter the name of your wired interface("$YS"Enter"$CE"="enp1s0f0"): "
read WIRED
if [[ "$WIRED" = "" ]]
then
WIRED="enp1s0f0"
fi
if [ ! -d $GPATH/interfaces ] #check if directory exist
then
mkdir $GPATH/interfaces
else
echo "Directory located"
fi
echo "$MANAGED" > "$GPATH"/interfaces/ManagedInt.txt
echo "$MONITOR" > "$GPATH"/interfaces/MonitorInt.txt
echo "$WIRED" > "$GPATH"/interfaces/WiredInt.txt
echo -e ""$YS"Done"$CE""
sleep 1
clear
echo -e ""$BS"If you want to change it, type "$CE""$YS"interface"$CE""$BS" any time"$CE""
sleep 3
echo -e "Press $YS any key $CE to continue..."
break
done
}
function banner
{
clear
echo -e ""
echo -e " [!]This Tool Must Run As ROOT\n"
echo -e "$COL The ██ ███████ ██ ███████ $CE $COL by Kleusy Cruz $CE"
echo -e "$COL ██ ██ ██ ██ ██ ██ $CE"
echo -e "$COL ██ ██ ██ ██ ███████ $CE "
echo -e "$COL ██ ██ ██ ██ ██ ██ $CE "
echo -e "$COL ███████ ███████ ███████ ██ ██ script $CE\n"
echo -e "$YS if) $CE Ifconfig $YS l0) $CE Exit "
echo -e "$YS 1) $CE Change MAC $YS l1) $CE Restore original MAC "
echo -e "$YS 2) $CE Disable wlan0 $YS l2) $CE Interfaces available"
echo -e "$YS 3d) $CE Available interfaces $YS f1) $CE FUCK ALL SYSTEM "
echo -e "$YS se) $CE Social-Engineering Attacks "
echo -e "$YS interface) $CE Change Interface"
echo -e " 0) Exit "
echo -e "$COL\nChoose:$CE"
read RESP
case $RESP in
1)
changemac;;
if)
clear
ifconfig
back_menu #function called
;;
6)
StarMon;;
l1)
estoreMac;;
l2)
interfaces;;
l3)
A_inst;;
2)
Disable_wlan0
;;
3) #Available interface
interfaces;;
4) #Enable wlan0
enable_wlan0 #Function called
;;
5) #Disable wlan0mon
disable_wlan0mon #Function called
;;
interface)
Set_interface
;;
0) #If u want out
c=1
while [ $c -le 3 ]
do
#break
echo "$c"
c=$[ $c * 2 ]
sleep 1
done
echo -e "\nThanks to use me"
sleep 1;;
f1)
freezy #Fork Function
;;
se)
clear
setoolkit
;;
*)
banner #Function called
esac
shift
} #!Finish case
# The script start here
#Set_interface
banner