[login] ``` #!/bin/bash blue() { echo -e "\033[34m\033[01m$1\033[0m" } green() { echo -e "\033[32m\033[01m$1\033[0m" } red() { echo -e "\033[31m\033[01m$1\033[0m" } installRely() { aptOryum="apt-get" if [[ $(command -v yum) ]]; then aptOryum="yum" fi $aptOryum update $aptOryum install screen gzip unzip curl socat vim tar net-tools } DownFrps() { frpsscreen_name="frps" screen -S $frpsscreen_name -X "quit" >/dev/null 2>&1 cd /root/ wget https://github.com/fatedier/frp/releases/download/v0.58.0/frp_0.58.0_linux_amd64.tar.gz tar -xzvf frp_0.58.0_linux_amd64.tar.gz chmod -R 777 /root/* cat >/root/frp_0.58.0_linux_amd64/frps.ini <<-EOF [common] bind_port = 7000 token = 123bbb use_encryption = true //下面这两行是加密和压缩传输 use_compression = true EOF } RunFrps(){ frpsscreen_name="frps" screen -S $frpsscreen_name -X "quit" >/dev/null 2>&1 screen -dmS $frpsscreen_name sleep 2s cmd=$"/root/frp_0.58.0_linux_amd64/frps -c /root/frp_0.58.0_linux_amd64/frps.ini" screen -x -S $frpsscreen_name -p 0 -X stuff "$cmd" screen -x -S $frpsscreen_name -p 0 -X stuff $'\n' } Runhbbrhbbs() { runhbbr runhbbs } runhbbr(){ hbbrscreen_name="hbbr" screen -S $hbbrscreen_name -X "quit" >/dev/null 2>&1 screen -dmS $hbbrscreen_name sleep 2s cmd=$"/root/rustdesk/hbbr" screen -x -S $hbbrscreen_name -p 0 -X stuff "$cmd" screen -x -S $hbbrscreen_name -p 0 -X stuff $'\n' } runhbbs(){ hbbsscreen_name="hbbs" screen -S $hbbsscreen_name -X "quit" >/dev/null 2>&1 screen -dmS $hbbsscreen_name sleep 2s cmd=$"/root/rustdesk/hbbs" screen -x -S $hbbsscreen_name -p 0 -X stuff "$cmd" screen -x -S $hbbsscreen_name -p 0 -X stuff $'\n' } runXray() { xrayscreen_name="xray" screen -S $xrayscreen_name -X "quit" >/dev/null 2>&1 screen -dmS $xrayscreen_name sleep 2s cmd=$"/root/xray/xray -c /root/xray/config.json" screen -x -S $xrayscreen_name -p 0 -X stuff "$cmd" screen -x -S $xrayscreen_name -p 0 -X stuff $'\n' } StopXray() { xrayscreen_name="tj" screen -S $xrayscreen_name -X "quit" xraypid=`ps -ef | grep xray | grep -v grep | awk '{print $2}'` kill -9 $xraypid } DDSys() { # apt update apt install unzip curl -y wget http://i.lil.cx/ahk/ahk.zip -O /root/ahk.zip unzip -o /root/ahk.zip chmod -R 777 /root/* bash /root/cf-v4-ddns.sh bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -a -p 'Mxy6994.....' --mirror 'https://mirrors.aliyun.com/debian/' } downRun() { apt update apt install unzip screen vim curl -y wget http://i.lil.cx/ahk/ahk.zip -O /root/ahk.zip unzip -o /root/ahk.zip chmod -R 777 /root/* uninstallAli bash /root/cf-v4-ddns.sh # 文件夹路径 FRP_FOLDER="/root/frp_0.58.0_linux_amd64" # 判断文件夹是否存在 if [ -d "$FRP_FOLDER" ]; then echo "文件夹 $FRP_FOLDER 存在。直接运行frp" RunFrps else echo "文件夹 $FRP_FOLDER 不存在。下载frp并运行" DownFrps fi runXray Runhbbrhbbs RunFrps } uninstallAli (){ wget http://update2.aegis.aliyun.com/download/uninstall.sh chmod +x uninstall.sh ./uninstall.sh wget http://update2.aegis.aliyun.com/download/quartz_uninstall.sh chmod +x quartz_uninstall.sh ./quartz_uninstall.sh /usr/local/share/assist-daemon/assist_daemon --stop /usr/local/share/assist-daemon/assist_daemon --delete rm -rf /usr/local/share/assist-daemon sudo rpm -qa | grep aliyun_assist | xargs sudo rpm -e rm -rf /usr/local/share/aliyun-assist # 杀死阿里云服务后台程序 pkill aliyun-service rm -fr /etc/init.d/agentwatch /usr/sbin/aliyun-service rm -rf /usr/local/aegis* rm /usr/sbin/aliyun-service rm /lib/systemd/system/aliyun.service rm -rf /etc/motd touch /etc/motd } start_menu() { green "———————————————————————————————— 1. 下载和运行卸载aliyun监控 11. DD debian11 12. 卸载阿里云监控 2. 运行xray 3. 运行hbbr&hbbs 4. 运行frps 5. 下载frps 9. 安装依赖 0. exit ————————————————————————————————" blue "请输入数字 :" read num case "$num" in 0) exit 1 ;; 1) downRun ;; 11) DDSys ;; 12) uninstallAli ;; 2) runXray ;; 3) Runhbbrhbbs ;; 4) RunFrps ;; 5) DownFrps ;; 9) installRely ;; *) clear echo -e "${Error}:请输入正确数字 " sleep 2s start_menu ;; esac } start_menu ``` [/login] 该部分仅登录用户可见 最后修改:2024 年 06 月 01 日 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏