-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
54 lines (43 loc) · 1.43 KB
/
setup.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
#!/bin/bash
# Author: Trevohack
# AYO 2.0
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
RESET='\033[0m'
banner() {
echo -e "${RED}
▄▄▄ ▓██ ██▓ ▒█████
▒████▄ ▒██ ██▒▒██▒ ██▒
▒██ ▀█▄ ▒██ ██░▒██░ ██▒
░██▄▄▄▄██ ░ ▐██▓░▒██ ██░
▓█ ▓██▒ ░ ██▒▓░░ ████▓▒░
▒▒ ▓▒█░ ██▒▒▒ ░ ▒░▒░▒░
▒ ▒▒ ░▓██ ░▒░ ░ ▒ ▒░
░ ▒ ▒ ▒ ░░ ░ ░ ░ ▒
░ ░░ ░ ░ ░
░ ░
${RESET}"
read -p "Enter your username: " name
}
init() {
echo -e "[${GREEN}+${RESET}] Configuring Environment..."
mkdir -p "/home/$name/Documents/ayo"
cd "/home/$name/Documents/ayo"
pip install rich
pip install python-hosts
}
install() {
echo -e "[${GREEN}+${RESET}] Downloading AYO..."
wget https://raw.githubusercontent.com/Trevohack/AYO/main/src/main.py -O "/home/$name/Documents/ayo/main.py"
wget https://raw.githubusercontent.com/Trevohack/AYO/main/src/machine_data.json -O "/home/$name/Documents/ayo/machine_data.json"
sudo cp "/home/$name/Documents/ayo/main.py" "/usr/bin/ayo"
sudo chmod +x /usr/bin/ayo
}
end() {
echo -e "[${GREEN}+${RESET}] Happy Hacking!"
}
banner
init
install
end