-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathINSTALL
158 lines (140 loc) · 5.22 KB
/
INSTALL
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
#!/bin/bash
CHECKROOT ()
{
if [[ $(id -u) -ne 0 ]]
then
clear
echo -e " \033[1;31m[This script must be run as ROOT]\E[0m"
exit 1
else
echo ""
fi
}
CHECKDISTR ()
{
distr=$(cat /etc/*-release | awk -F'=' '/VERSION_CODENAME=/ {print $2}')
distrp=$(cat /etc/*-release | awk -F'=' '/VERSION_CODENAME=/ {print $2}')
if [ "$distr" = "sana" ]; then
cat /etc/apt/sources.list > /etc/apt/sources.list_lazybak
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list.d/kali_rolling.list
#echo "deb http://old.kali.org/kali sana main non-free contrib" > /etc/apt/sources.list
elif [ "$distr" = "kali-rolling" ]; then
cat /etc/apt/sources.list > /etc/apt/sources.list_lazybak
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list
elif [ "$distr" = "\"kali-rolling\"" ]; then
cat /etc/apt/sources.list > /etc/apt/sources.list_lazybak
echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list
elif [ "$distrp" = "bullseye" ]; then
cat /etc/apt/sources.list > /etc/apt/sources.list_lazybak
echo "deb http://archive.parrotsec.org/parrot parrot main contrib non-free" > /etc/apt/sources.list.d/parrot.list
else
echo -e "$aquamarine[Скрипт тестировался только для $red[Kali Linux2 и ParrotSec]$aquamarine. Вы можете самостоятельно изменить код скрипта для своей ОС.]$colorbase"
echo -e "$aquamarine[The script was tested only for $red[Kali Linux2 & ParrotSec]$aquamarine. You are free to modify the code for your operating system]$colorbase"
exit 1
fi
}
######################################################################################
CHECKDEPEND0 ()
{
depend=$(dpkg -s masscan | grep 'Status' | awk -F':' '/Status: / {print $2}')
if [ "$depend" = " install ok installed" ]; then
clear
else
echo -e "$aquamarine"
clear
echo "Требующийся пакет MASSCAN не установлен. I'll try to fix it)"
sudo apt-get update -y; sudo apt install masscan -y
fi
}
######################################################################################
CHECKDEPEND1 ()
{
depend=$(dpkg -s nmap | grep 'Status' | awk -F':' '/Status: / {print $2}')
if [ "$depend" = " install ok installed" ]; then
clear
else
echo -e "$aquamarine"
echo "Требующийся пакет nmap не установлен. I'll try to fix it)"
sudo apt-get update -y; sudo apt install nmap -y
fi
}
######################################################################################
CHECKDEPEND2 ()
{
depend=$(dpkg -s xfce4-terminal| grep 'Status' | awk -F':' '/Status: / {print $2}')
if [ "$depend" = " install ok installed" ]; then
clear
else
echo -e "$aquamarine"
clear
echo "Требующийся пакет xfce4-terminal не установлен. I'll try to fix it)"
sudo apt update -y; sudo apt install xfce4-terminal -y
fi
}
######################################################################################
CHECKDEPEND2.1 ()
{
depend=$(dpkg -s gnome-terminal| grep 'Status' | awk -F':' '/Status: / {print $2}')
if [ "$depend" = " install ok installed" ]; then
clear
else
echo -e "$aquamarine"
clear
echo "Требующийся пакет gnome-terminal не установлен. I'll try to fix it)"
sudo apt update -y; sudo apt install gnome-terminal -y
fi
}
######################################################################################
CHECKDEPEND3 ()
{
depend=$(dpkg -s freerdp2-x11| grep 'Status' | awk -F':' '/Status: / {print $2}')
if [ "$depend" = " install ok installed" ]; then
clear
else
echo -e "$aquamarine"
clear
echo "Требующийся пакет FreeRDP2 не установлен. I'll try to fix it)"
sudo apt update -y; sudo apt install freerdp2-x11 -y
fi
}
######################################################################################
CHECKDEPEND3.1 ()
{
depend=$(dpkg -s freerdp2-dev| grep 'Status' | awk -F':' '/Status: / {print $2}')
if [ "$depend" = " install ok installed" ]; then
clear
else
echo -e "$aquamarine"
clear
echo "Требующийся пакет FreeRDP2-dev не установлен. I'll try to fix it)"
sudo apt update -y; sudo apt install freerdp2-dev -y
fi
}
#########################################################################################
CHECKDEPEND4 (){
depend=$(dpkg -s curl | grep 'Status' | awk -F':' '/Status: / {print $2}')
if [ "$depend" = " install ok installed" ]; then
clear
else
echo -e "$aquamarine"
echo "Требующийся пакет Curl не установлен. I'll try to fix it)"
sudo apt update -y; sudo apt install curl -y
fi
}
############################################################################################
rm -rf /usr/bin/hydra; apt remove hydra -y
apt install hydra -y
CHECKROOT
CHECKDISTR
CHECKDEPEND0
CHECKDEPEND1
CHECKDEPEND2
CHECKDEPEND2.1
CHECKDEPEND3
CHECKDEPEND3.1
CHECKDEPEND4
chmod +x src/rdp_brute.sh start hydra/configure
cd hydra && make clean | ./configure && make && make install
clear
echo "Now you can run ./start!"
exit;