-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
67 lines (53 loc) · 1.55 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
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
# ألوان
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m' # لا لون
# دالة للطباعة الملونة
print_step() {
echo -e "[${BLUE}*${NC}] $1"
}
print_success() {
echo -e "[${GREEN}+${NC}] $1"
}
print_error() {
echo -e "[${RED}-${NC}] $1"
}
# تحديد النظام المناسب
if [ -x "$(command -v pkg)" ]; then
print_step "Detected Termux system"
URL="https://github.com/DrDataYE/DrXploit/releases/download/v1.0.0/drxploit_1.0.0_all_termux.deb"
elif [ -x "$(command -v apt-get)" ]; then
print_step "Detected Linux system"
URL="https://github.com/DrDataYE/DrXploit/releases/download/v1.0.0/drxploit_1.0.0_all_linux.deb"
else
print_error "Unsupported system. Only Linux and Termux are supported."
exit 1
fi
# تحميل الملف بصمت
print_step "Downloading package..."
wget $URL -O drxploit.deb &> /dev/null
if [ $? -ne 0 ]; then
print_error "Failed to download the package"
exit 1
fi
print_success "Package downloaded successfully"
# تثبيت الحزمة
print_step "Installing the package"
if [ -x "$(command -v apt-get)" ]; then
dpkg -i drxploit.deb
elif [ -x "$(command -v pkg)" ]; then
pkg install ./drxploit.deb
fi
if [ $? -ne 0 ]; then
print_error "Failed to install the package"
exit 1
fi
print_success "Package installed successfully"
# تنظيف
print_step "Cleaning up"
rm drxploit.deb
# رسالة للمستخدم
print_success "Installation completed successfully!"
print_success "You can now use the tool by typing: ${GREEN}drxploit${NC}"