-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathinstaller.sh
165 lines (163 loc) Β· 7.04 KB
/
installer.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
#!/bin/bash
# author : Joker-Security
# Tested on Kali Linux / Parrot Os / Archman / ArcoLinux / Termux
# Simple script for Install Optiva-Framework
#Colors
cyan='\e[0;36m'
green='\e[0;32m'
lightgreen='\e[1;32m'
white='\e[1;37m'
red='\e[1;31m'
yellow='\e[1;33m'
blue='\e[1;34m'
#Options
path=`pwd` # Path
name="\e[1;34mOptiva-Framework" #Name
VeR="\e[1;31mV1.0.4" # Version
#Check root exist
#[[ `id -u` -eq 0 ]] > /dev/null 2>&1 || { echo $red "You must be root to run the script"; exit 1; }
#banner head
function main_menu()
{
while :
do
echo -e """
βββββββ βββββββ βββββββββββββββ βββ ββββββ
ββββββββββββββββββββββββββββββββ βββββββββββ
βββ βββββββββββ βββ ββββββ βββββββββββ
βββ ββββββββββ βββ βββββββ ββββββββββββ
ββββββββββββ βββ βββ βββββββ βββ βββ
βββββββ βββ βββ βββ βββββ βββ βββ
βββββββββββββββ ββββββ ββββ βββββββββββββββ βββ βββββββ βββββββ βββ βββ
βββββββββββββββββββββββββββββ ββββββββββββββββ βββββββββββββββββββββββ ββββ
ββββββ βββββββββββββββββββββββββββββββββ βββ ββ ββββββ ββββββββββββββββββ
ββββββ βββββββββββββββββββββββββββββββββ βββββββββββββ ββββββββββββββββββ
βββ βββ ββββββ ββββββ βββ βββββββββββββββββββββββββββββββββ ββββββ βββ
βββ βββ ββββββ ββββββ βββββββββββ ββββββββ βββββββ βββ ββββββ βββ
Setup Script for $name $VeR
"""
echo -e $yellow "Systems Available : "
echo -e "$lightgreen 1) $red β Kali Linux / Parrot-Os / Ubuntu "
echo -e "$lightgreen 2) $red β Black Arch / Arch Linux / Archman"
echo -e "$lightgreen 3) $red β Termux(Android)"
echo -e "$lightgreen 0) $red β Exit"
echo -n -e "$lightgreen Select Your System : $red"
read -e joker
case $joker in
'1')
echo -e $green "[*] Loading... "
sudo apt-get update
sudo apt-get install python-pip
echo "[*] installing requirements...."
pip2 install -r requirements.txt
pip2 install mechanize
pip2 install requests
pip2 install termcolor
pip2 install --upgrade html5lib
pip2 install --upgrade beautifulsoup4
echo -e $green "[*] Moving Optiva-Framework folder "
mkdir /usr/share/optiva
cp -r ico /usr/share/optiva
cp -r core /usr/share/optiva
cp -r modules /usr/share/optiva
cp -r plugins /usr/share/optiva
cp installer.sh /usr/share/optiva
cp requirements.txt /usr/share/optiva
cp optiva.py /usr/share/optiva
echo -e $blue "[ β ]Done"
echo -e $red "[*] Creating Icons Dirctory"
cp -r $path/ico/optiva.desktop /usr/share/applications/optiva.desktop
cp -r $path/ico/optiva.png /usr/share/icons/optiva.png
echo -e $yellow "[*] Creating shortcut command $red Optiva-Framework"
echo "#!/bin/sh" >> /usr/bin/optiva
echo "cd /usr/share/optiva" >> /usr/bin/optiva
echo "exec python2 optiva.py \"\$@\"" >> /usr/bin/optiva
chmod +x /usr/bin/optiva
echo -e $green ""
echo "------------------------------------"
echo "| [ β ]installation completed[ β ] |"
echo "------------------------------------"
echo
echo -e $green "#####################################"
echo -e $blue "|Now Just Type In Terminal (optiva)|"
echo -e $green "#####################################"
echo -e $green "γ!γ Main Menuγ!γ"
read -p "pess any key to return ..."
clear
;;
'2')
echo -e $green "[*] Loading... "
sudo pacman -Syy
sudo pacman -S python2-pip
echo "[*] installing requirements...."
pip2 install -r requirements.txt
pip2 install mechanize
pip2 install requests
pip2 install termcolor
pip2 install --upgrade html5lib
pip2 install --upgrade beautifulsoup4
echo -e $green "[*] Moving $red Optiva-Framework folder "
mkdir /usr/share/optiva
cp -r ico /usr/share/optiva
cp -r core /usr/share/optiva
cp -r modules /usr/share/optiva
cp -r plugins /usr/share/optiva
cp installer.sh /usr/share/optiva
cp requirements.txt /usr/share/optiva
cp optiva.py /usr/share/optiva
echo -e $blue "[ β ]Done"
echo -e $red "[*] Creating Icons Dirctory"
cp -r $path/ico/optiva.desktop /usr/share/applications/optiva.desktop
cp -r $path/ico/optiva.png /usr/share/icons/optiva.png
echo -e $yellow "[*] Creating shortcut command Optiva-Framework"
echo "#!/bin/sh" >> /usr/bin/optiva
echo "cd /usr/share/optiva" >> /usr/bin/optiva
echo "exec python2 optiva.py \"\$@\"" >> /usr/bin/optiva
chmod +x /usr/bin/optiva
echo -e $green ""
echo "------------------------------------"
echo "| [ β ]installation completed[ β ] |"
echo "------------------------------------"
echo
echo -e $green "#####################################"
echo -e $blue "|Now Just Type In Terminal (optiva)|"
echo -e $green "#####################################"
echo -e $green "γ!γ Main Menuγ!γ"
read -p "pess any key to return ..."
clear
;;
'3')
echo -e $green "[*] Loading... "
apt install python2
echo "[*] installing requirements...."
pip2 install -r requirements.txt
pip2 install mechanize
pip2 install requests
pip2 install termcolor
pip2 install --upgrade html5lib
pip2 install --upgrade beautifulsoup4
echo -e $blue "[ β ]Done"
echo -e $green ""
echo "------------------------------------"
echo "| [ β ]installation completed[ β ] |"
echo "------------------------------------"
echo
echo "------------------------------------"
echo "| [ β ]Run python2 optiva.py[ β ] |"
echo "------------------------------------"
echo -e $green "#########################################"
echo -e $blue "| Thanks For Installing Optiva-Framework |"
echo -e $green "#########################################"
echo -e $green "γ!γ Main Menuγ!γ"
read -p "pess any key to return ..."
clear
;;
'0')
echo -e $red " Good Bye !!"
echo
exit 0
;;
esac
done
}
main_menu