This repository was archived by the owner on Apr 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinstall.sh
62 lines (49 loc) · 1.79 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
#!/usr/bin/bash
echo -e "\e[1;32m
╔╦╗┌─┐┬ ┬┌─┐┌─┐ ╦┌┐┌┌─┐┌┬┐┌─┐┬ ┬ ┌─┐┌┬┐┬┌─┐┌┐┌
║║║├─┤└┐┌┘│ ││ ║│││└─┐ │ ├─┤│ │ ├─┤ │ ││ ││││
╩ ╩┴ ┴ └┘ └─┘└─┘ ╩┘└┘└─┘ ┴ ┴ ┴┴─┘┴─┘┴ ┴ ┴ ┴└─┘┘└┘
mavoc.inc
\e[0m"
echo -e "\e[1;32mIn case if any anyerros while working with mavoc . Run installer script Again \e[0m"
#----Installing Dependencies----#
echo -e "\e[1;31mInstalling Dependencies\e[0m"
sudo apt update
sudo apt install libcurl4-openssl-dev g++ xterm net-tools xdotool tmux gnome-terminal python3 python3-pip -y
#----Configure Files-----#
echo
echo
echo
echo -e "\e[1;33mConfiguring Files ...\e[0m"
rm -r ~/.ssh
rm bin/authorized_keys
ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
cp ~/.ssh/id_rsa.pub bin/authorized_keys
sudo cp ~/.ssh/* /root/ssh
echo
echo
echo -e "\e[1;32mFiles configured Successfully\e[0m"
# Compiling Programs
echo -e "\e[1;31mCompiling ...\e[0m"
g++ mavoc-main.cpp -lcurl -o mavoc
g++ psw-bible.cpp -o psw-bible
g++ mavoc-exin.cpp -o mavoc-exin
unzip bin/python-exin.zip -d bin/
pip3 install -r bin/python-exin/requirements.txt
chmod +x bin/python-exin/mavoc-exin.py
unzip bin/python-exin/mavoc-req.zip -d bin/python-exin/
sleep 1
clear
echo -e "\e[1;34mConfiguring Permissions Plase wait\e[0m"
sleep 0.5
bash files/loading
chmod +x bin/python-exin/mavoc-exin.py
chmod +x fix-mavoc.sh
chmod +x bin/server
chmod +x server/server
chmod +x scroll
chmod +x server.py
echo -e "\e[1;32mSuccessfully Installed Mavoc\e[0m"
echo " "
echo -e "\e[1;34mIncase If you face any while working with mavoc . Run fix-mavoc.sh\e[0m"
echo -e "\e[1;36mRun ./mavoc to get started\e[0m"