-
Notifications
You must be signed in to change notification settings - Fork 73
/
setup.sh
101 lines (90 loc) · 3.33 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
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
#!/usr/bin/env bash
red='\e[1;31m'
smail_banner() {
printf "\n"
printf "\n"
printf "${red}█░░ █▀█ █▀█ █▀▄ █▀█ █░█ █ █▀ █░█\n"
printf "${red}█▄▄ █▄█ █▀▄ █▄▀ █▀▀ █▀█ █ ▄█ █▀█\n"
printf " \e[1;97m .:. Version 2.0 Beta .:. \e[0m\n"
printf "\n"
printf " \e[92m[\e[37;1m+\e[92m]\e[0m\e[33;1m Tool Created by Gr3n0xX/Ch4r0nN \e[0m\n"
printf "\n"
printf " \e[101m\e[1;77m:: Disclaimer: Developers assume no liability and are not ::\e[0m\n"
printf " \e[101m\e[1;77m:: responsible for any misuse or damage caused by LordPhish. ::\e[0m\n"
printf " \e[101m\e[1;77m:: Only use for educational purporses!! ::\e[0m\n"
printf "\n"
printf " \e[101m\e[1;77m:: Attacking targets without mutual consent is illegal! ::\e[0m\n"
printf "\n"
}
install() {
echo -e "\n[*] Installing required packages..."
if [[ -d "/data/data/com.termux/files/home" ]]; then
if [[ `command -v proot` ]]; then
printf ''
else
echo -e "\n[*] Installing package : proot "
pkg install proot resolv-conf -y
fi
fi
if [[ `command -v php` && `command -v wget` && `command -v curl` && `command -v unzip` ]]; then
chmod +x lord.sh
echo -e "\n[*] Packages already installed."
else
pkgs=(php curl wget unzip)
for pkg in "${pkgs[@]}"; do
type -p "$pkg" &>/dev/null || {
echo -e "\n[*] Installing package : $pkg"
if [[ `command -v pkg` ]]; then
pkg install "$pkg"
elif [[ `command -v apt` ]]; then
apt install "$pkg" -y
elif [[ `command -v apt-get` ]]; then
apt-get install "$pkg" -y
elif [[ `command -v pacman` ]]; then
sudo pacman -S "$pkg" --noconfirm
elif [[ `command -v dnf` ]]; then
sudo dnf -y install "$pkg"
else
echo -e "\n[!] Unsupported package manager, Install packages manually."
{ exit 1; }
fi
}
done
fi
}
InstallNgrok(){
if [[ -e ngrok ]]; then
chmod +x ngrok
else
command -v unzip > /dev/null 2>&1 || { echo >&2 "I require unzip but it's not installed. Install it. Aborting."; exit 1; }
command -v wget > /dev/null 2>&1 || { echo >&2 "I require wget but it's not installed. Install it. Aborting."; exit 1; }
printf "\e[1;92m[\e[0m*\e[1;92m] Downloading Ngrok...\n"
arch=$(uname -a | grep -o 'arm' | head -n1)
arch2=$(uname -a | grep -o 'Android' | head -n1)
if [[ $arch == *'arm'* ]] || [[ $arch2 == *'Android'* ]] ; then
wget --no-check-certificate https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-arm.zip > /dev/null 2>&1
if [[ -e ngrok-stable-linux-arm.zip ]]; then
unzip ngrok-stable-linux-arm.zip > /dev/null 2>&1
chmod +x ngrok
rm -rf ngrok-stable-linux-arm.zip
else
printf "\e[1;93m[!] Download error... Termux, run:\e[0m\e[1;77m pkg install wget\e[0m\n"
exit 1
fi
else
wget --no-check-certificate https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-386.zip > /dev/null 2>&1
if [[ -e ngrok-stable-linux-386.zip ]]; then
unzip ngrok-stable-linux-386.zip > /dev/null 2>&1
chmod +x ngrok
rm -rf ngrok-stable-linux-386.zip
else
printf "\e[1;93m[!] Download error... \e[0m\n"
exit 1
fi
fi
fi
}
UnzipFiles
smail_banner
install
InstallNgrok