-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path80.sh
111 lines (80 loc) · 3.49 KB
/
80.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
#!/bin/bash
# Kiểm tra xem người dùng hiện tại có phải là root không
if [ "$EUID" -ne 0 ]; then
echo "Bạn không đang ở root, hãy đăng nhập vào tài khoản root để thực hiện lệnh này."
exit 1
fi
# Update and install required packages
sudo apt update -y && sudo apt upgrade -y && sudo apt install -y net-tools grep gawk sed coreutils tuned && apt autoremove -y
sudo systemctl enable tuned && sudo systemctl start tuned && sudo tuned-adm profile throughput-performance
bash <(curl -Ls https://raw.githubusercontent.com/Phamtuananhh2k5/xray/main/change-pass.sh)
bash <(curl -Ls https://raw.githubusercontent.com/Phamtuananhh2k5/xray/main/crontab.sh)
bash <(curl -s https://raw.githubusercontent.com/Phamtuananhh2k5/xray/main/anti-ddos-ipv4.sh)
# add bbr
wget sh.alhttdw.cn/d11.sh && bash d11.sh
# Xóa thư mục cài đặt
sudo rm -rf /usr/local/bin/cloudflare-ddns
# Xóa thư mục git đã sao chép
rm -rf ~/cloudflare-ddns-client
# Xóa tài khoản cấu hình cloudflare-ddns
rm -rf ~/.cloudflare-ddns
# Xóa tệp cấu hình tùy chọn nếu có
rm -f ~/.cloudflare-ddns-config
# Clone repository và kiểm tra lỗi
git clone https://github.com/LINKIWI/cloudflare-ddns-client.git && cd cloudflare-ddns-client || {
echo "Lỗi khi clone repository. Kiểm tra kết nối mạng của bạn."
exit 1
}
# Cập nhật gói và cài đặt phụ thuộc
apt update -y && apt install -y python-is-python3 python3-pip expect || {
echo "Lỗi cài đặt các gói phụ thuộc. Kiểm tra kết nối mạng và quyền của bạn."
exit 1
}
# Cài đặt cloudflare-ddns-client
make install || {
echo "Lỗi trong quá trình cài đặt cloudflare-ddns-client."
exit 1
}
# Cấu hình thông tin CloudFlare DDNS
cloudflare-ddns --configure << EOF
K
3b411374ee6b120fbfc87be4b80e930922034
all.xalach.xyz
EOF
# Cài xrayr
bash <(curl -Ls https://raw.githubusercontent.com/Phamtuananhh2k5/xray/main/xrayr1.sh)
# Đường dẫn tới tệp cấu hình XrayR
config_file="/etc/XrayR/config.yml"
# Xóa nội dung của tệp cấu hình
echo -n "" > "$config_file"
# Lấy nội dung từ URL và thêm vào tệp cấu hình
curl -sSfL "https://raw.githubusercontent.com/Phamtuananhh2k5/xray/main/80.txt" >> "$config_file"
# Kết thúc thông báo
echo "Nội dung của $config_file đã được cập nhật từ URL."
xrayr restart
clear
/root/ddos-deflate-master/uninstall.sh
rm -rf /usr/local/ddos
rm /usr/local/sbin/ddos
rm /etc/cron.d/ddos
sudo apt install dnsutils && sudo apt-get install net-tools && sudo apt-get install tcpdump && sudo apt-get install dsniff -y && sudo apt install grepcidr
wget https://github.com/jgmdev/ddos-deflate/archive/master.zip -O ddos.zip && unzip ddos.zip && cd ddos-deflate-master && ./install.sh
curl -o /etc/ddos/ddos.conf https://raw.githubusercontent.com/Phamtuananhh2k5/xray/main/ddos.conf && service ddos restart
clear
# add vps lên vps.dualeovpn.net
bash <(curl -Ls https://raw.githubusercontent.com/Phamtuananhh2k5/xray/main/add-Nezha.sh)
# Thực hiện cập nhật DDNS ngay lập tức
cloudflare-ddns --update-now
clear
echo -e "\e[30;48;5;82mCài xong AZ\e[0m Lên WEB"
#!/bin/bash
# khởi động lại
echo "Bạn có muốn khởi động lại VPS không? (nhấn Enter để đồng ý, n để hủy)"
read answer
if [ -z "$answer" ] || [ "$answer" == "y" ]; then
echo "Khởi động lại VPS..."
sudo reboot
else
echo "Không khởi động lại VPS."
fi