forked from byteSalgado/router-kill
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
126 lines (102 loc) · 2.91 KB
/
install.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
#!/bin/bash
#Colors
white="\033[1;37m"
grey="\033[0;37m"
purple="\033[0;35m"
red="\033[1;31m"
green="\033[1;32m"
yellow="\033[1;33m"
Purple="\033[0;35m"
Cyan="\033[0;36m"
Cafe="\033[0;33m"
Fiuscha="\033[0;35m"
blue="\033[1;34m"
nc="\e[0m"
clear
case `dpkg --print-architecture` in
aarch64)
echo -e "$red(error)$blue el script solo soporta arquitectura$red AMD 64$blue Sistemas debian y deribados [$red✗$nc]"
exit
;;
arm)
echo -e "$red(error)$blue el script solo soporta arquitectura$red AMD 64$blue Sistemas debian y deribados [$red✗$nc]"
exit
;;
armhf)
echo -e "$red(error)$blue el script solo soporta arquitectura$red AMD 64$blue Sistemas debian y deribados [$red✗$nc]"
exit
;;
i*86)
echo -e "$red(error)$blue el script solo soporta arquitectura$red AMD 64$blue Sistemas debian y deribados [$red✗$nc]"
exit
;;
x86_64)
echo -e "$red(error)$blue el script solo soporta arquitectura$red AMD 64$blue Sistemas debian y deribados [$red✗$nc]"
exit
;;
esac
if [[ $EUID -ne 0 ]]; then
echo " "
echo " (✗) No eres usuario root, para ejecutar la heramienta tienes que ejecutarla siendo root (✗) "
echo " (✗) You are not a root user, to run the tool you have to run it as root (✗) "
exit 1
fi
apt-get update -y && apt-get upgrade -y
clear
if which airodump-ng >/dev/null; then
sleep 0.25
echo -e "$blue(AIRODUMP-NG)$nc .................................................. Instalado [$green✓$nc]"
else
sleep 0.25
echo -e "$red(AIRODUMP-NG)$nc No instalado [$red✗$nc]"
sleep 1
apt-get install aircrack-ng -y
fi
if which mdk3 >/dev/null; then
sleep 0.25
echo -e "$blue(MDK3)$nc ......................................................... Instalado [$green✓$nc]"
sleep 0.25
else
sleep 0.25
echo -e "$red(MDK3)$nc No instalado [$red✗$nc]"
sleep 1
apt-get install mdk3 -y
fi
if which toilet >/dev/null; then
sleep 0.25
echo -e "$blue(Toilet)$nc ......................................................... Instalado [$green✓$nc]"
sleep 0.25
else
sleep 0.25
echo -e "$red(Toilet)$nc No instalado [$red✗$nc]"
sleep 1
apt-get install toilet -y
fi
if which macchanger >/dev/null; then
sleep 0.25
echo -e "$blue(macchanger)$nc ......................................................... Instalado [$green✓$nc]"
sleep 0.25
else
sleep 0.25
echo -e "$red(macchanger)$nc No instalado [$red✗$nc]"
sleep 1
apt-get install macchanger -y
fi
if which ruby >/dev/null; then
sleep 0.25
echo -e "$blue(ruby)$nc ......................................................... Instalado [$green✓$nc]"
sleep 0.25
gem install lolcat
else
sleep 0.25
echo -e "$red(macchanger)$nc No instalado [$red✗$nc]"
sleep 1
apt-get install ruby -y
gem install lolcat
fi
clear
chmod +x routerkill.sh
mkdir handshake
echo -e "iniciando programa en 5 segundos"
sleep 5
bash routerkill.sh