-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
install.sh
112 lines (112 loc) · 2.63 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
#! /bin/bash
clear
printf '\033]2;INSTALLER\a'
echo -e "Press \e[1;33many key\e[0m to install the script..."
read -n 1
clear
apt-get -y install gnome-terminal
clear
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [[ "$DIR" != "/root/lscript" ]]
then
echo -e "You didn't follow the github's simple install instructions.I will try to do it for you..."
sleep 4
if [[ -d /root/lscript ]]
then
rm -r /root/lscript
fi
mkdir /root/lscript
cp -r "$DIR"/* /root/lscript
chmod +x /root/lscript/install.sh
gnome-terminal -- "bash /root/lscript/install.sh"
fi
echo -e "Installing lscript..."
sleep 1
echo -e "Fixing permissions"
sleep 2
chmod +x /root/lscript/lh1
chmod +x /root/lscript/lh2
chmod +x /root/lscript/lh3
chmod +x /root/lscript/lh31
chmod +x /root/lscript/l
chmod +x /root/lscript/lh4
chmod +x /root/lscript/lh41
chmod +x /root/lscript/lh21
chmod +x /root/lscript/lh42
chmod +x /root/lscript/lh43
chmod +x /root/lscript/ls/l131.sh
chmod +x /root/lscript/ls/l132.sh
chmod +x /root/lscript/ls/l133.sh
chmod +x /root/lscript/uninstall.sh
clear
echo -e "Copying script to /bin/lscript"
sleep 1
mkdir /bin/lscript
cd /root/lscript
cp /root/lscript/l /bin/lscript
cp /root/lscript/lh1 /bin/lscript
cp /root/lscript/lh2 /bin/lscript
cp /root/lscript/lh3 /bin/lscript
cp /root/lscript/lh31 /bin/lscript
cp /root/lscript/lh4 /bin/lscript
cp /root/lscript/lh41 /bin/lscript
cp /root/lscript/lh21 /bin/lscript
cp /root/lscript/lh42 /bin/lscript
cp /root/lscript/lh43 /bin/lscript
clear
#required for gui
apt-get -y install ncurses-dev
clear
if [[ ! -d /root/handshakes ]]
then
mkdir /root/handshakes
echo -e "Made /root/handshake directory"
else
echo -e "/root/handshakes directory detected.Good."
fi
if [[ ! -d /root/wordlists ]]
then
mkdir /root/wordlists
echo -e "Made /root/wordlists directory"
else
echo -e "/root/wordlists directory detected.Good."
fi
while true
do
clear
echo -e "Are you \e[1;33mu\e[0mpdating or \e[1;33mi\e[0mnstalling the script?(\e[1;33mu\e[0m/\e[1;33mi\e[0m): "
echo -e "Only use 'i' for the first time."
read UORI
if [[ "$UORI" = "u" ]]
then
clear
echo -e "Type 'changelog' to see what's new on this version"
sleep 3
break
elif [[ "$UORI" = "i" ]]
then
clear
BASHCHECK=$(cat ~/.bashrc | grep "bin/lscript")
if [[ "$BASHCHECK" != "" ]]
then
echo -e "I SAID USE i ONLY ONE TIME..........."
sleep 3
fi
echo -e "Adding lscript to PATH so you can access it from anywhere"
sleep 1
export PATH=/bin/lscript:$PATH
sleep 1
echo "export PATH=/bin/lscript:$PATH" >> ~/.bashrc
sleep 1
clear
break
fi
done
clear
echo -e "DONE"
sleep 1
clear
echo -e "Open a NEW terminal and type 'l' to launch the script"
sleep 4
gnome-terminal -- l
exit