代码拉取完成,页面将自动刷新
#!/bin/bash
# Bash Script for install Fsociety tools
# Must run to install tool
clear
echo "
███████╗███████╗ ██████╗ ██████╗██╗███████╗████████╗██╗ ██╗
██╔════╝██╔════╝██╔═══██╗██╔════╝██║██╔════╝╚══██╔══╝╚██╗ ██╔╝
█████╗ ███████╗██║ ██║██║ ██║█████╗ ██║ ╚████╔╝
██╔══╝ ╚════██║██║ ██║██║ ██║██╔══╝ ██║ ╚██╔╝
██║ ███████║╚██████╔╝╚██████╗██║███████╗ ██║ ██║
╚═╝ ╚══════╝ ╚═════╝ ╚═════╝╚═╝╚══════╝ ╚═╝ ╚═╝
██╗███╗ ██╗███████╗████████╗ █████╗ ██╗ ██╗ ███████╗██████╗
██║████╗ ██║██╔════╝╚══██╔══╝██╔══██╗██║ ██║ ██╔════╝██╔══██╗
██║██╔██╗ ██║███████╗ ██║ ███████║██║ ██║ █████╗ ██████╔╝
██║██║╚██╗██║╚════██║ ██║ ██╔══██║██║ ██║ ██╔══╝ ██╔══██╗
██║██║ ╚████║███████║ ██║ ██║ ██║███████╗███████╗███████╗██║ ██║
╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝
";
sudo chmod +x uninstall
if [ "$PREFIX" = "/data/data/com.termux/files/usr" ]; then
INSTALL_DIR="$PREFIX/usr/share/doc/fsociety"
BIN_DIR="$PREFIX/bin/"
BASH_PATH="$PREFIX/bin/bash"
TERMUX=true
pkg install -y git python2
elif [ "$(uname)" = "Darwin" ]; then
INSTALL_DIR="/usr/local/fsociety"
BIN_DIR="/usr/local/bin/"
BASH_PATH="/bin/bash"
TERMUX=false
else
INSTALL_DIR="$HOME/.fsociety"
BIN_DIR="/usr/local/bin/"
BASH_PATH="/bin/bash"
TERMUX=false
sudo apt-get install -y git python2.7
fi
echo "[✔] Checking directories...";
if [ -d "$INSTALL_DIR" ]; then
echo "[◉] A directory fsociety was found! Do you want to replace it? [Y/n]:" ;
read -r mama
if [ "$mama" = "y" ]; then
if [ "$TERMUX" = true ]; then
rm -rf "$INSTALL_DIR"
rm "$BIN_DIR/fsociety*"
else
sudo rm -rf "$INSTALL_DIR"
sudo rm "$BIN_DIR/fsociety*"
fi
else
echo "[✘] If you want to install you must remove previous installations [✘] ";
echo "[✘] Installation failed! [✘] ";
exit
fi
fi
echo "[✔] Cleaning up old directories...";
if [ -d "$ETC_DIR/Manisso" ]; then
echo "$DIR_FOUND_TEXT"
if [ "$TERMUX" = true ]; then
rm -rf "$ETC_DIR/Manisso"
else
sudo rm -rf "$ETC_DIR/Manisso"
fi
fi
echo "[✔] Installing ...";
echo "";
git clone --depth=1 https://github.com/Manisso/fsociety "$INSTALL_DIR";
echo "#!$BASH_PATH
python $INSTALL_DIR/fsociety.py" "${1+"$@"}" > "$INSTALL_DIR/fsociety";
chmod +x "$INSTALL_DIR/fsociety";
if [ "$TERMUX" = true ]; then
cp "$INSTALL_DIR/fsociety" "$BIN_DIR"
cp "$INSTALL_DIR/fsociety.cfg" "$BIN_DIR"
else
sudo cp "$INSTALL_DIR/fsociety" "$BIN_DIR"
sudo cp "$INSTALL_DIR/fsociety.cfg" "$BIN_DIR"
fi
rm "$INSTALL_DIR/fsociety";
if [ -d "$INSTALL_DIR" ] ;
then
echo "";
echo "[✔] Tool installed successfully! [✔]";
echo "";
echo "[✔]====================================================================[✔]";
echo "[✔] All is done!! You can execute tool by typing fsociety ! [✔]";
echo "[✔]====================================================================[✔]";
echo "";
else
echo "[✘] Installation failed! [✘] ";
exit
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。