From 467e625560087092455d838056682cca4dd1c7e7 Mon Sep 17 00:00:00 2001 From: r0fus0d Date: Tue, 14 Nov 2023 17:13:54 +0800 Subject: [PATCH] fix path issue(2023/11/14) --- f8x | 380 ++++++++++++++++++++++++++----------------------- f8x_version.sh | 12 +- 2 files changed, 210 insertions(+), 182 deletions(-) diff --git a/f8x b/f8x index 87ded40c..cc1e2f46 100644 --- a/f8x +++ b/f8x @@ -32,7 +32,7 @@ Proxy_OK= Docker_OK= error=0 Linux_architecture_Name= -F8x_Version="1.6.8 Dev(2023/11/10)" +F8x_Version="1.6.9 Dev(2023/11/14)" wget_option="-q --show-progress" # ===================== Software version variable setting (dev) ===================== @@ -178,9 +178,9 @@ httpx_Ver="v1.3.6" httpx_bin_amd64="httpx_1.3.6_linux_amd64.zip" httpx_bin_arm64="httpx_1.3.6_linux_arm64.zip" # https://github.com/projectdiscovery/mapcidr/releases -mapcidr_Ver="v1.1.14" -mapcidr_bin_amd64="mapcidr_1.1.14_linux_amd64.zip" -mapcidr_bin_arm64="mapcidr_1.1.14_linux_arm64.zip" +mapcidr_Ver="v1.1.15" +mapcidr_bin_amd64="mapcidr_1.1.15_linux_amd64.zip" +mapcidr_bin_arm64="mapcidr_1.1.15_linux_arm64.zip" # https://github.com/ffffffff0x/iprange/releases iprange_Ver="v1.0.1" iprange_bin_amd64="iprange_1.0.1_linux_amd64.tar.gz" @@ -284,9 +284,9 @@ sliver_Ver="v1.5.41" sliver_bin_Server="sliver-server_linux" sliver_bin_Client="sliver-client_linux" # https://github.com/mstxq17/MoreFind/releases -MoreFind_Ver="v1.3.2" -MoreFind_bin_amd64="MoreFind_Linux_x86_64.tar.gz" -MoreFind_bin_arm64="MoreFind_Linux_arm64.tar.gz" +MoreFind_Ver="v1.5.3" +MoreFind_bin_amd64="MoreFind_v1.5.3_linux_x86_64.tar.gz" +MoreFind_bin_arm64="MoreFind_v1.5.3_Linux_arm64.tar.gz" # https://github.com/praetorian-inc/fingerprintx fingerprintx_Ver="v1.1.11" fingerprintx_Install_amd64="fingerprintx_1.1.11_linux_amd64.tar.gz" @@ -2280,8 +2280,9 @@ Python3_def_Install(){ Install_Switch "python3-distutils" case $Linux_Version_Num in "16.04") - cd /tmp && rm -rf get-pip.py && $Proxy_OK wget https://bootstrap.pypa.io/pip/3.5/get-pip.py > /dev/null 2>&1 - $Proxy_OK python3 get-pip.py > /dev/null 2>&1 && rm -rf get-pip.py + mkdir -p /tmp/get-pip && cd /tmp/get-pip && rm -rf get-pip.py && $Proxy_OK wget https://bootstrap.pypa.io/pip/3.5/get-pip.py > /dev/null 2>&1 + $Proxy_OK python3 get-pip.py > /dev/null 2>&1 + rm -rf /tmp/get-pip && cd /tmp ;; esac python3 -m pip install --upgrade pip > /dev/null 2>&1 && Echo_INFOR "Updated python3-pip" || Echo_ERROR "Update python3-pip failed" @@ -2309,7 +2310,7 @@ Python37_Install_with_pyenv(){ else mkdir -p ~/.pyenv/cache/ && cd $_ && rm -f $py37_bin && $Proxy_OK wget https://www.python.org/ftp/python/$py37_ver/$py37_bin ${wget_option} && Echo_INFOR "Downloaded from python.org" || Echo_ERROR "download failed, please check if the network is reachable, proxychains4 configuration is correct" pyenv install $py37_ver && pyenv global $py37_ver && pyenv local $py37_ver && Echo_INFOR "Successfully installed Python, Please run the following command:\npyenv global $py37_ver && pyenv local $py37_ver" - rm -rf $py37_bin + rm -rf $py37_bin && cd /tmp fi } @@ -2346,7 +2347,7 @@ Python37_Install(){ python3 -m pip install --upgrade pip > /dev/null 2>&1 Echo_INFOR "pip3 output: $(pip3 -V)" - rm -rf /tmp/py37 + rm -rf /tmp/py37 && cd /tmp } @@ -2367,7 +2368,7 @@ Python38_Install_with_pyenv(){ else mkdir -p ~/.pyenv/cache/ && cd $_ && rm -f $py38_bin && $Proxy_OK wget https://www.python.org/ftp/python/$py38_ver/$py38_bin ${wget_option} && Echo_INFOR "Downloaded from python.org" || Echo_ERROR "download failed, please check if the network is reachable, proxychains4 configuration is correct" pyenv install $py38_ver && pyenv global $py38_ver && pyenv local $py38_ver && Echo_INFOR "Successfully installed Python, Please run the following command:\npyenv global $py38_ver && pyenv local $py38_ver" - rm -rf $py38_bin + rm -rf $py38_bin && cd /tmp fi } @@ -2404,7 +2405,7 @@ Python38_Install(){ python3 -m pip install --upgrade pip > /dev/null 2>&1 Echo_INFOR "pip3 output: $(pip3 -V)" - rm -rf /tmp/py38 + rm -rf /tmp/py38 && cd /tmp } @@ -2425,7 +2426,7 @@ Python39_Install_with_pyenv(){ else mkdir -p ~/.pyenv/cache/ && cd $_ && rm -f $py39_bin && $Proxy_OK wget https://www.python.org/ftp/python/$py39_ver/$py39_bin ${wget_option} && Echo_INFOR "Downloaded from python.org" || Echo_ERROR "download failed, please check if the network is reachable, proxychains4 configuration is correct" pyenv install $py39_ver && pyenv global $py39_ver && pyenv local $py39_ver && Echo_INFOR "Successfully installed Python, Please run the following command:\npyenv global $py39_ver && pyenv local $py39_ver" - rm -rf $py39_bin + rm -rf $py39_bin && cd /tmp fi } @@ -2462,7 +2463,7 @@ Python39_Install(){ python3 -m pip install --upgrade pip > /dev/null 2>&1 Echo_INFOR "pip3 output: $(pip3 -V)" - rm -rf /tmp/py39 + rm -rf /tmp/py39 && cd /tmp } @@ -2483,7 +2484,7 @@ Python310_Install_with_pyenv(){ else mkdir -p ~/.pyenv/cache/ && cd $_ && rm -f $py310_bin && $Proxy_OK wget https://www.python.org/ftp/python/$py310_ver/$py310_bin ${wget_option} && Echo_INFOR "Downloaded from python.org" || Echo_ERROR "download failed, please check if the network is reachable, proxychains4 configuration is correct" pyenv install $py310_ver && pyenv global $py310_ver && pyenv local $py310_ver && Echo_INFOR "Successfully installed Python, Please run the following command:\npyenv global $py310_ver && pyenv local $py310_ver" - rm -rf $py310_bin + rm -rf $py310_bin && cd /tmp fi } @@ -2520,7 +2521,7 @@ Python310_Install(){ python3 -m pip install --upgrade pip > /dev/null 2>&1 Echo_INFOR "pip3 output: $(pip3 -V)" - rm -rf /tmp/py310 + rm -rf /tmp/py310 && cd /tmp } @@ -2760,11 +2761,11 @@ SDKMAN_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && $Proxy_OK curl -o sdkman.sh "https://get.sdkman.io" > /dev/null 2>&1 && $Proxy_OK bash sdkman.sh > /dev/null 2>&1 + mkdir -p /tmp/SDKMAN && cd /tmp/SDKMAN && $Proxy_OK curl -o sdkman.sh "https://get.sdkman.io" > /dev/null 2>&1 && $Proxy_OK bash sdkman.sh > /dev/null 2>&1 source "/root/.sdkman/bin/sdkman-init.sh" sdk version && Echo_INFOR "Successfully installed $name" || Echo_ERROR3 - rm -f /tmp/sdkman.sh > /dev/null 2>&1 + rm -rf /tmp/SDKMAN && cd /tmp fi } @@ -2788,10 +2789,10 @@ Terraform_Install(){ Echo_ALERT "$name installed" else Echo_ALERT "Downloading $name" - cd /tmp && $Proxy_OK wget https://releases.hashicorp.com/terraform/$Terraform_Ver/$Terraform_bin > /dev/null 2>&1 && Echo_INFOR "Downloaded from hashicorp.com" || Echo_ERROR2 + mkdir -p /tmp/terraform && cd /tmp/terraform && $Proxy_OK wget https://releases.hashicorp.com/terraform/$Terraform_Ver/$Terraform_bin > /dev/null 2>&1 && Echo_INFOR "Downloaded from hashicorp.com" || Echo_ERROR2 unzip $Terraform_bin > /dev/null 2>&1 mv --force terraform /usr/local/bin/terraform > /dev/null 2>&1 && chmod +x /usr/local/bin/terraform && Echo_INFOR "Successfully installed $name $Terraform_Ver" || Echo_ERROR3 - rm -rf $Terraform_bin + rm -rf /tmp/terraform && cd /tmp fi } @@ -2817,7 +2818,7 @@ aliyun-cli_Install(){ mkdir -p /tmp/aliyun-cli && cd /tmp/aliyun-cli && $Proxy_OK wget https://github.com/aliyun/aliyun-cli/releases/download/$aliyun_cli_Ver/$aliyun_cli_bin > /dev/null 2>&1 || Echo_ERROR2 tar zxvf $aliyun_cli_bin > /dev/null 2>&1 mv --force aliyun /usr/local/bin/aliyun > /dev/null 2>&1 && chmod +x /usr/local/bin/aliyun && Echo_INFOR "Successfully installed $name $aliyun-cli_Ver" || Echo_ERROR3 - rm -rf /tmp/aliyun-cli + rm -rf /tmp/aliyun-cli && cd /tmp fi } @@ -2835,7 +2836,7 @@ aws-cli_Install(){ mkdir -p /tmp/aws-cli && cd /tmp/aws-cli && $Proxy_OK curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" > /dev/null 2>&1 || Echo_ERROR2 unzip awscliv2.zip > /dev/null 2>&1 ./aws/install && Echo_INFOR "Successfully installed $name" || Echo_ERROR3 - rm -rf /tmp/aws-cli + rm -rf /tmp/aws-cli && cd /tmp fi } @@ -3018,9 +3019,10 @@ Pentest_ffuf_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $ffuf_Install > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/ffuf/ffuf/releases/download/$ffuf_Ver/$ffuf_Install > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/ffuf && cd /tmp/ffuf && rm -f $ffuf_Install && $Proxy_OK wget ${GitProxy}https://github.com/ffuf/ffuf/releases/download/$ffuf_Ver/$ffuf_Install > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $ffuf_Install > /dev/null 2>&1 - mv --force ffuf /usr/local/bin/ && chmod +x /usr/local/bin/ffuf && rm -f /tmp/$ffuf_Install > /dev/null 2>&1 + mv --force ffuf /usr/local/bin/ && chmod +x /usr/local/bin/ffuf + rm -rf /tmp/ffuf && cd /tmp ffuf -V > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $ffuf_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3053,7 +3055,7 @@ Pentest_SecretFinder_Install(){ Echo_ALERT "$name is already installed in $dir" else $Proxy_OK git clone ${GitProxy}https://github.com/m4ll0k/SecretFinder.git $dir > /dev/null 2>&1 && cd $dir || Echo_ERROR2 - pip3 install -r requirements.txt > /dev/null 2>&1 && Echo_INFOR "Installed dependency modules" || { Echo_ERROR "Failed to install dependency module"; rm -rf $dir; } + pip3 install -r requirements.txt > /dev/null 2>&1 && Echo_INFOR "Installed dependency modules" || { Echo_ERROR "Failed to install dependency module"; rm -rf $dir; cd /tmp; } python3 SecretFinder.py -h > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || Echo_ERROR3 fi @@ -3072,7 +3074,7 @@ Pentest_OneForAll_Install(){ Install_Switch5 "setuptools" Install_Switch5 "wheel" $Proxy_OK git clone --depth 1 ${GitProxy}https://github.com/shmilylty/OneForAll.git $dir > /dev/null 2>&1 && cd $dir || Echo_ERROR "$name download failed, please check if the network is reachable, proxychains4 configuration is correct, or download using gitee git clone https://gitee.com/shmilylty/OneForAll.git " - Echo_ALERT "Installing dependency modules\033[0m" && pip3 install -r requirements.txt > /dev/null 2>&1 || { Echo_ERROR "Failed to install dependency module"; rm -rf $dir; } + Echo_ALERT "Installing dependency modules\033[0m" && pip3 install -r requirements.txt > /dev/null 2>&1 || { Echo_ERROR "Failed to install dependency module"; rm -rf $dir; cd /tmp; } python3 oneforall.py version > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" && aarch64_massdns_Install || Echo_ERROR3 fi @@ -3085,7 +3087,7 @@ aarch64_massdns_Install(){ mkdir -p /tmp/massdns && cd $_ $Proxy_OK git clone --depth 1 ${GitProxy}https://github.com/blechschmidt/massdns.git > /dev/null 2>&1 cd /tmp/massdns/massdns && make > /dev/null 2>&1 - mv /tmp/massdns/massdns/bin/massdns $P_Dir/OneForAll/thirdparty/massdns/massdns_linux_aarch64 && Echo_INFOR "Successfully installed massdns in the $P_Dir/OneForAll/thirdparty/massdns/" && rm -rf /tmp/massdns + mv /tmp/massdns/massdns/bin/massdns $P_Dir/OneForAll/thirdparty/massdns/massdns_linux_aarch64 && Echo_INFOR "Successfully installed massdns in the $P_Dir/OneForAll/thirdparty/massdns/" && rm -rf /tmp/massdns && cd /tmp ;; esac @@ -3104,14 +3106,16 @@ Pentest_ksubdomain_Install(){ else case $Linux_architecture_Name in *"linux-x86_64"*) - cd $T_Dir && rm -f ${ksubdomain_Install} > /dev/null 2>&1 && rm -rf ksubdomain > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/boy-hack/ksubdomain/releases/download/$ksubdomain_Ver/$ksubdomain_Install > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/ksubdomain && cd /tmp/ksubdomain && rm -f ${ksubdomain_Install} && $Proxy_OK wget ${GitProxy}https://github.com/boy-hack/ksubdomain/releases/download/$ksubdomain_Ver/$ksubdomain_Install > /dev/null 2>&1 || Echo_ERROR2 tar -xvf ${ksubdomain_Install} > /dev/null 2>&1 - mv --force ksubdomain /usr/local/bin/ksubdomain && chmod +x /usr/local/bin/ksubdomain && rm -f ${T_Dir:?}/${ksubdomain_Install} > /dev/null 2>&1 + mv --force ksubdomain /usr/local/bin/ksubdomain && chmod +x /usr/local/bin/ksubdomain + rm -rf /tmp/ksubdomain && cd /tmp ksubdomain > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $ksubdomain_Ver in the /usr/local/bin/" || Echo_ERROR3 ;; *"linux-arm64"*) - cd /tmp && go install github.com/boy-hack/ksubdomain/cmd/ksubdomain@latest + mkdir -p /tmp/ksubdomain && cd /tmp/ksubdomain && go install github.com/boy-hack/ksubdomain/cmd/ksubdomain@latest mv $GOPATH/bin/ksubdomain /usr/local/bin/ksubdomain && chmod +x /usr/local/bin/ksubdomain || { mv /root/go/bin/ksubdomain /usr/local/bin/ksubdomain; chmod +x /usr/local/bin/ksubdomain; } + rm -rf /tmp/ksubdomain && cd /tmp which ksubdomain > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -3155,10 +3159,10 @@ Pentest_fscan_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $fscan_Install > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/shadow1ng/fscan/releases/download/$fscan_Ver/$fscan_Install > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/fscan && cd /tmp/fscan && rm -f $fscan_Install && $Proxy_OK wget ${GitProxy}https://github.com/shadow1ng/fscan/releases/download/$fscan_Ver/$fscan_Install > /dev/null 2>&1 || Echo_ERROR2 mv $fscan_Install fscan && mv --force fscan /usr/local/bin/fscan && chmod +x /usr/local/bin/fscan fscan > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $fscan_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/fscan > /dev/null 2>&1 + rm -rf /tmp/fscan && cd /tmp fi } @@ -3186,7 +3190,7 @@ Pentest_fingerprintx_Install(){ tar -zxvf $fingerprintx_Install > /dev/null 2>&1 mv --force fingerprintx /usr/local/bin/fingerprintx && chmod +x /usr/local/bin/fingerprintx which fingerprintx > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $fingerprintx_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/fingerprintx > /dev/null 2>&1 + rm -rf /tmp/fingerprintx && cd /tmp fi } @@ -3213,7 +3217,7 @@ Pentest_HostCollision_Install(){ else Echo_ERROR3 fi - rm -rf /tmp/HostCollision > /dev/null 2>&1 + rm -rf /tmp/HostCollision && cd /tmp fi } @@ -3242,7 +3246,7 @@ Pentest_asnmap_Install(){ unzip $asnmap_bin > /dev/null 2>&1 mv --force asnmap /usr/local/bin/asnmap && chmod +x /usr/local/bin/asnmap which asnmap > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $asnmap_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/asnmap + rm -rf /tmp/asnmap && cd /tmp fi } @@ -3271,7 +3275,7 @@ Pentest_tlsx_Install(){ unzip $tlsx_bin > /dev/null 2>&1 mv --force tlsx /usr/local/bin/tlsx && chmod +x /usr/local/bin/tlsx which tlsx > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $tlsx_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/tlsx + rm -rf /tmp/tlsx && cd /tmp fi } @@ -3299,7 +3303,7 @@ Pentest_gogo_Install(){ mkdir -p /tmp/gogo && cd /tmp/gogo && rm -f $gogo_File > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/chainreactors/gogo/releases/download/$gogo_Ver/$gogo_File > /dev/null 2>&1 || Echo_ERROR2 mv --force $gogo_File /usr/local/bin/gogo && chmod +x /usr/local/bin/gogo which gogo > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $gogo_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/gogo + rm -rf /tmp/gogo && cd /tmp fi } @@ -3316,8 +3320,9 @@ Pentest_csprecon_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && go install github.com/edoardottt/csprecon/cmd/csprecon@latest + mkdir -p /tmp/csprecon && cd /tmp/csprecon && go install github.com/edoardottt/csprecon/cmd/csprecon@latest mv $GOPATH/bin/csprecon /usr/local/bin/csprecon && chmod +x /usr/local/bin/csprecon || { mv /root/go/bin/csprecon /usr/local/bin/csprecon; chmod +x /usr/local/bin/csprecon; } + rm -rf /tmp/csprecon && cd /tmp which csprecon > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3347,7 +3352,7 @@ Pentest_rad_Install(){ mkdir -p /tmp/rad && cd /tmp/rad && rm -f ${rad_File} > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/chaitin/rad/releases/download/$rad_Ver/$rad_File > /dev/null 2>&1 || Echo_ERROR2 unzip $rad_File > /dev/null 2>&1 mv --force $rad_bin /usr/local/bin/rad && chmod +x /usr/local/bin/rad - rm -rf /tmp/rad + rm -rf /tmp/rad && cd /tmp which rad > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $rad_Ver in the /usr/local/bin/" || Echo_ERROR3 Echo_INFOR "$name needs to be used with chromium, you can install chromium with the -chromium option" fi @@ -3373,10 +3378,10 @@ Pentest_crawlergo_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $crawlergo_File > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/Qianlitp/crawlergo/releases/download/$crawlergo_Ver/$crawlergo_File > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/crawlergo && cd /tmp/crawlergo && rm -f $crawlergo_File && $Proxy_OK wget ${GitProxy}https://github.com/Qianlitp/crawlergo/releases/download/$crawlergo_Ver/$crawlergo_File > /dev/null 2>&1 || Echo_ERROR2 # unzip $crawlergo_File > /dev/null 2>&1 - mv --force $crawlergo_File /usr/local/bin/crawlergo && chmod +x /usr/local/bin/crawlergo && rm -f /tmp/$crawlergo_File > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $crawlergo_Ver in the /usr/local/bin/" || Echo_ERROR3 - + mv --force $crawlergo_File /usr/local/bin/crawlergo && chmod +x /usr/local/bin/crawlergo && Echo_INFOR "Successfully installed $name $crawlergo_Ver in the /usr/local/bin/" || Echo_ERROR3 + rm -rf /tmp/crawlergo && cd /tmp Echo_INFOR "$name needs to be used with chromium, you can install chromium with the -chromium option" fi @@ -3405,7 +3410,7 @@ Pentest_katana_Install(){ unzip $katana_bin > /dev/null 2>&1 mv --force katana /usr/local/bin/katana && chmod +x /usr/local/bin/katana which katana > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $katana_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/katana > /dev/null 2>&1 + rm -rf /tmp/katana && cd /tmp fi } @@ -3450,7 +3455,7 @@ Pentest_gospider_Install(){ mkdir -p /tmp/gospider && cd /tmp/gospider && rm -f ${gospider_bin} && rm -rf ${gospider_dir} && $Proxy_OK wget ${GitProxy}https://github.com/jaeles-project/gospider/releases/download/$gospider_Ver/$gospider_bin > /dev/null 2>&1 || Echo_ERROR2 unzip ${gospider_bin} > /dev/null 2>&1 mv --force ${gospider_dir}/gospider /usr/local/bin/gospider && chmod +x /usr/local/bin/gospider - rm -rf /tmp/gospider + rm -rf /tmp/gospider && cd /tmp which gospider > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $gospider_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3480,12 +3485,14 @@ Pentest_naabu_Install(){ ;; *) ;; esac - cd /tmp && go install github.com/projectdiscovery/naabu/v2/cmd/naabu@latest + mkdir -p /tmp/naabu && cd /tmp/naabu && go install github.com/projectdiscovery/naabu/v2/cmd/naabu@latest mv $GOPATH/bin/naabu /usr/local/bin/naabu && chmod +x /usr/local/bin/naabu || { mv /root/go/bin/naabu /usr/local/bin/naabu; chmod +x /usr/local/bin/naabu; } + rm -rf /tmp/naabu && cd /tmp which naabu > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 - # cd /tmp && rm -f $naabu_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/projectdiscovery/naabu/releases/download/$naabu_Ver/$naabu_bin > /dev/null 2>&1 || Echo_ERROR2 + # mkdir -p /tmp/naabu && cd /tmp/naabu && rm -f $naabu_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/projectdiscovery/naabu/releases/download/$naabu_Ver/$naabu_bin > /dev/null 2>&1 || Echo_ERROR2 # unzip $naabu_bin > /dev/null 2>&1 - # mv --force naabu /usr/local/bin/naabu && chmod +x /usr/local/bin/naabu && rm -f /tmp/$naabu_bin > /dev/null 2>&1 + # mv --force naabu /usr/local/bin/naabu && chmod +x /usr/local/bin/naabu + # rm -rf /tmp/naabu # naabu -version > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $naabu_Ver in the /usr/local/bin/" || Echo_ERROR3 ;; *"linux-arm64"*) @@ -3500,8 +3507,9 @@ Pentest_naabu_Install(){ ;; *) ;; esac - cd /tmp && go install github.com/projectdiscovery/naabu/v2/cmd/naabu@latest + mkdir -p /tmp/naabu && cd /tmp/naabu && go install github.com/projectdiscovery/naabu/v2/cmd/naabu@latest mv $GOPATH/bin/naabu /usr/local/bin/naabu && chmod +x /usr/local/bin/naabu || { mv /root/go/bin/naabu /usr/local/bin/naabu; chmod +x /usr/local/bin/naabu; } + rm -rf /tmp/naabu && cd /tmp which naabu > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -3531,7 +3539,7 @@ Pentest_httpx_Install(){ mkdir -p /tmp/httpx && cd /tmp/httpx && rm -f ${httpx_bin} && $Proxy_OK wget ${GitProxy}https://github.com/projectdiscovery/httpx/releases/download/$httpx_Ver/$httpx_bin > /dev/null 2>&1 || Echo_ERROR2 unzip $httpx_bin > /dev/null 2>&1 mv --force httpx /usr/local/bin/httpx && chmod +x /usr/local/bin/httpx - rm -rf /tmp/httpx + rm -rf /tmp/httpx && cd /tmp httpx -version > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $httpx_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3556,9 +3564,10 @@ Pentest_subfinder_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $subfinder_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/projectdiscovery/subfinder/releases/download/$subfinder_Ver/$subfinder_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/subfinder && cd /tmp/subfinder && rm -f $subfinder_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/projectdiscovery/subfinder/releases/download/$subfinder_Ver/$subfinder_bin > /dev/null 2>&1 || Echo_ERROR2 unzip $subfinder_bin > /dev/null 2>&1 - mv --force subfinder /usr/local/bin/subfinder && chmod +x /usr/local/bin/subfinder && rm -f /tmp/$subfinder_bin > /dev/null 2>&1 + mv --force subfinder /usr/local/bin/subfinder && chmod +x /usr/local/bin/subfinder + rm -rf /tmp/subfinder && cd /tmp subfinder -version > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $subfinder_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3577,14 +3586,16 @@ Pentest_gau_Install(){ else case $Linux_architecture_Name in *"linux-x86_64"*) - cd /tmp && rm -f $gau_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/lc/gau/releases/download/$gau_Ver/$gau_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/gau && cd /tmp/gau && rm -f $gau_bin && $Proxy_OK wget ${GitProxy}https://github.com/lc/gau/releases/download/$gau_Ver/$gau_bin > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $gau_bin > /dev/null 2>&1 - mv --force gau /usr/local/bin/gau && chmod +x /usr/local/bin/gau && rm -f /tmp/$gau_bin > /dev/null 2>&1 + mv --force gau /usr/local/bin/gau && chmod +x /usr/local/bin/gau + rm -rf /tmp/gau && cd /tmp which gau > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $gau_Ver in the /usr/local/bin/" || Echo_ERROR3 ;; *"linux-arm64"*) - cd /tmp && go install github.com/lc/gau/v2/cmd/gau@latest + mkdir -p /tmp/gau && cd /tmp/gau && go install github.com/lc/gau/v2/cmd/gau@latest mv $GOPATH/bin/gau /usr/local/bin/gau && chmod +x /usr/local/bin/gau || { mv /root/go/bin/gau /usr/local/bin/gau; chmod +x /usr/local/bin/gau; } + rm -rf /tmp/gau && cd /tmp which gau > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -3605,10 +3616,11 @@ Pentest_apktool_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f apktool && $Proxy_OK wget -O apktool ${GitProxy}https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/apktool && cd /tmp/apktool && rm -f apktool && $Proxy_OK wget -O apktool ${GitProxy}https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool > /dev/null 2>&1 || Echo_ERROR2 rm -f $apktool_bin && $Proxy_OK wget ${GitProxy}https://github.com/iBotPeaches/Apktool/releases/download/$apktool_Ver/$apktool_bin > /dev/null 2>&1 || Echo_ERROR2 mv $apktool_bin apktool.jar && mv --force apktool.jar /usr/local/bin/apktool.jar && chmod +x /usr/local/bin/apktool.jar mv --force apktool /usr/local/bin/apktool && chmod +x /usr/local/bin/apktool + rm -rf /tmp/apktool && cd /tmp which apktool > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $apktool_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3698,7 +3710,7 @@ Pentest_Amass_Install(){ mkdir -p /tmp/Amass && cd /tmp/Amass && rm -rf ${Amass_bin} && $Proxy_OK wget ${GitProxy}https://github.com/owasp-amass/amass/releases/download/$Amass_Ver/$Amass_bin > /dev/null 2>&1 || Echo_ERROR2 unzip ${Amass_bin} > /dev/null 2>&1 && rm -rf ${Amass_bin} mv --force amass_*/amass /usr/local/bin/amass && chmod +x /usr/local/bin/amass - rm -rf /tmp/Amass + rm -rf /tmp/Amass && cd /tmp which amass > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $Amass_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3727,7 +3739,7 @@ Pentest_gobuster_Install(){ mkdir -p /tmp/gobuster && cd /tmp/gobuster && rm -f ${gobuster_bin} && rm -rf gobuster-linux-amd64 && $Proxy_OK wget ${GitProxy}https://github.com/OJ/gobuster/releases/download/$gobuster_Ver/$gobuster_bin > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $gobuster_bin > /dev/null 2>&1 && rm -f $gobuster_bin > /dev/null 2>&1 mv --force gobuster /usr/local/bin/gobuster && chmod +x /usr/local/bin/gobuster - rm -rf /tmp/gobuster + rm -rf /tmp/gobuster && cd /tmp which gobuster > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $gobuster_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3774,8 +3786,9 @@ Pentest_dismap_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f ${dismap_bin} && $Proxy_OK wget ${GitProxy}https://github.com/zhzyker/dismap/releases/download/$dismap_Ver/$dismap_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/dismap && cd /tmp/dismap && rm -f ${dismap_bin} && $Proxy_OK wget ${GitProxy}https://github.com/zhzyker/dismap/releases/download/$dismap_Ver/$dismap_bin > /dev/null 2>&1 || Echo_ERROR2 mv --force $dismap_bin /usr/local/bin/dismap && chmod +x /usr/local/bin/dismap + rm -rf /tmp/dismap && cd /tmp which dismap > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $dismap_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3836,7 +3849,7 @@ Pentest_netspy_Install(){ unzip $netspy_bin > /dev/null 2>&1 mv --force $netspy_bin /usr/local/bin/netspy && chmod +x /usr/local/bin/netspy which netspy > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $netspy_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/netspy + rm -rf /tmp/netspy && cd /tmp fi } @@ -3850,8 +3863,9 @@ Pentest_zscan_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && go install github.com/zyylhn/zscan@latest + mkdir -p /tmp/zscan && cd /tmp/zscan && go install github.com/zyylhn/zscan@latest mv $GOPATH/bin/zscan /usr/local/bin/zscan && chmod +x /usr/local/bin/zscan || { mv /root/go/bin/zscan /usr/local/bin/zscan; chmod +x /usr/local/bin/zscan; } + rm -rf /tmp/zscan && cd /tmp which zscan > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3869,9 +3883,9 @@ Pentest_Metasploit_Install(){ Echo_ALERT "$name installed , consider running 'msfupdate' to update to the latest version." else Rm_Lock - cd /tmp && rm -f msfinstall > /dev/null 2>&1 && $Proxy_OK curl -o msfinstall https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > /dev/null 2>&1 && chmod 777 msfinstall + mkdir -p /tmp/Metasploit && cd /tmp/Metasploit && rm -f msfinstall && $Proxy_OK curl -o msfinstall https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > /dev/null 2>&1 && chmod 777 msfinstall Echo_ALERT "Downloading Metasploit" && $Proxy_OK ./msfinstall > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name" || Echo_ERROR3 - rm -f msfinstall > /dev/null 2>&1 + rm -rf /tmp/Metasploit && cd /tmp fi } @@ -3915,7 +3929,7 @@ Pentest_xray_Install(){ else mkdir -p /tmp/xray && cd /tmp/xray && rm -f $xray_File && $Proxy_OK wget ${GitProxy}https://github.com/chaitin/xray/releases/download/$xray_Ver/$xray_File > /dev/null 2>&1 || Echo_ERROR2 unzip $xray_File > /dev/null 2>&1 && rm -f $xray_File && mv --force $xray_bin /usr/local/bin/xray && chmod +x /usr/local/bin/xray - rm -rf /tmp/xray + rm -rf /tmp/xray && cd /tmp which xray > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $xray_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3966,9 +3980,10 @@ Pentest_Nuclei_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $Nuclei_Install > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/projectdiscovery/nuclei/releases/download/$Nuclei_Ver/$Nuclei_Install > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/nuclei && cd /tmp/nuclei && rm -f $Nuclei_Install && $Proxy_OK wget ${GitProxy}https://github.com/projectdiscovery/nuclei/releases/download/$Nuclei_Ver/$Nuclei_Install > /dev/null 2>&1 || Echo_ERROR2 unzip $Nuclei_Install > /dev/null 2>&1 - mv --force nuclei /usr/local/bin/nuclei && chmod +x /usr/local/bin/nuclei && rm -f /tmp/$Nuclei_Install > /dev/null 2>&1 + mv --force nuclei /usr/local/bin/nuclei && chmod +x /usr/local/bin/nuclei + rm -rf /tmp/nuclei && cd /tmp which nuclei > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $Nuclei_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -3992,7 +4007,7 @@ Pentest_w13scan_Install(){ Echo_ALERT "$name is already installed in $dir" else $Proxy_OK git clone --depth 1 ${GitProxy}https://github.com/w-digital-scanner/w13scan.git $dir > /dev/null 2>&1 && Echo_INFOR "Downloaded $name" || Echo_ERROR2 - cd $dir && pip3 install -r requirements.txt > /dev/null 2>&1 && Install_Switch4 "cowpy" && cd W13SCAN && python3 w13scan.py -h > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || { Echo_ERROR3; rm -rf $dir; } + cd $dir && pip3 install -r requirements.txt > /dev/null 2>&1 && Install_Switch4 "cowpy" && cd W13SCAN && python3 w13scan.py -h > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || { Echo_ERROR3; rm -rf $dir; cd /tmp; } fi } @@ -4056,7 +4071,7 @@ Pentest_CORScanner_Install(){ Echo_ALERT "$name is already installed in $dir" else $Proxy_OK git clone --depth 1 ${GitProxy}https://github.com/chenjj/CORScanner.git $dir > /dev/null 2>&1 && Echo_INFOR "Downloaded $name" || Echo_ERROR2 - cd $dir && pip3 install -r requirements.txt > /dev/null 2>&1 && python3 cors_scan.py -h > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || { Echo_ERROR3; rm -rf $dir; } + cd $dir && pip3 install -r requirements.txt > /dev/null 2>&1 && python3 cors_scan.py -h > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || { Echo_ERROR3; rm -rf $dir; cd /tmp; } fi } @@ -4165,7 +4180,7 @@ Pentest_SSRFmap_Install(){ Echo_ALERT "$name is already installed in $dir" else $Proxy_OK git clone ${GitProxy}https://github.com/swisskyrepo/SSRFmap.git $dir > /dev/null 2>&1 && Echo_INFOR "Downloaded $name" || Echo_ERROR2 - cd $dir && pip3 install -r requirements.txt > /dev/null 2>&1 && python3 ssrfmap.py -h > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || { Echo_ERROR3; rm -rf $dir; } + cd $dir && pip3 install -r requirements.txt > /dev/null 2>&1 && python3 ssrfmap.py -h > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || { Echo_ERROR3; rm -rf $dir; cd /tmp; } fi } @@ -4214,9 +4229,10 @@ Pentest_dalfox_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $dalfox_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/hahwul/dalfox/releases/download/$dalfox_Ver/$dalfox_bin > /dev/null 2>&1 || Echo_ERROR2 - tar -zxvf $dalfox_bin > /dev/null 2>&1 && rm -f $dalfox_bin > /dev/null 2>&1 - mv dalfox /usr/local/bin/dalfox && chmod +x /usr/local/bin/dalfox && rm -f /tmp/$dalfox_bin > /dev/null 2>&1 + mkdir -p /tmp/dalfox && cd /tmp/dalfox && rm -f $dalfox_bin && $Proxy_OK wget ${GitProxy}https://github.com/hahwul/dalfox/releases/download/$dalfox_Ver/$dalfox_bin > /dev/null 2>&1 || Echo_ERROR2 + tar -zxvf $dalfox_bin > /dev/null 2>&1 + mv dalfox /usr/local/bin/dalfox && chmod +x /usr/local/bin/dalfox + rm -rf /tmp/dalfox && cd /tmp which dalfox > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $dalfox_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -4425,8 +4441,9 @@ Pentest_CDK_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f ${cdk_bin} && $Proxy_OK wget ${GitProxy}https://github.com/cdk-team/CDK/releases/download/$cdk_Ver/$cdk_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/cdk && cd /tmp/cdk && rm -f ${cdk_bin} && $Proxy_OK wget ${GitProxy}https://github.com/cdk-team/CDK/releases/download/$cdk_Ver/$cdk_bin > /dev/null 2>&1 || Echo_ERROR2 mv --force $cdk_bin /usr/local/bin/cdk && chmod +x /usr/local/bin/cdk + rm -rf /tmp/cdk && cd /tmp which cdk > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $cdk_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -4451,9 +4468,10 @@ Pentest_cf_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $cf_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/teamssix/cf/releases/download/$cf_Ver/$cf_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/cf && cd /tmp/cf && rm -f $cf_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/teamssix/cf/releases/download/$cf_Ver/$cf_bin > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $cf_bin > /dev/null 2>&1 && rm -f $cf_bin > /dev/null 2>&1 - mv cf /usr/local/bin/cf && chmod +x /usr/local/bin/cf && rm -f /tmp/$cf_bin > /dev/null 2>&1 + mv cf /usr/local/bin/cf && chmod +x /usr/local/bin/cf + rm -rf /tmp/cf && cd /tmp which cf > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $cf_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -4690,7 +4708,7 @@ Pentest_bettercap_Install(){ mkdir -p /tmp/bettercap && cd /tmp/bettercap && rm -f $bettercap_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/bettercap/bettercap/releases/download/$bettercap_Ver/$bettercap_bin > /dev/null 2>&1 || Echo_ERROR2 unzip $bettercap_bin > /dev/null 2>&1 mv --force bettercap /usr/local/bin/bettercap && chmod +x /usr/local/bin/bettercap - rm -rf /tmp/bettercap + rm -rf /tmp/bettercap && cd /tmp which bettercap > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $bettercap_Ver in the /usr/local/bin/" || Echo_ERROR3 case $Linux_Version in @@ -4716,11 +4734,12 @@ Pentest_mitmproxy_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $mitmproxy_bin > /dev/null 2>&1 && $Proxy_OK wget -O $mitmproxy_bin https://snapshots.mitmproxy.org/$mitmproxy_Ver/$mitmproxy_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/mitmproxy && cd /tmp/mitmproxy && rm -f $mitmproxy_bin && $Proxy_OK wget -O $mitmproxy_bin https://snapshots.mitmproxy.org/$mitmproxy_Ver/$mitmproxy_bin > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $mitmproxy_bin > /dev/null 2>&1 mv --force mitmproxy /usr/local/bin/ && chmod +x /usr/local/bin/mitmproxy && rm -f /tmp/$mitmproxy_bin > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $mitmproxy_Ver in the /usr/local/bin/" || Echo_ERROR3 mv --force mitmdump /usr/local/bin/ && chmod +x /usr/local/bin/mitmdump && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR "mitmdump installation failed" mv --force mitmweb /usr/local/bin/ && chmod +x /usr/local/bin/mitmweb && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR "mitmweb installation failed" + rm -rf /tmp/mitmproxy && cd /tmp fi } @@ -4801,7 +4820,7 @@ Pentest_suo5_Install(){ mkdir -p /tmp/suo5 && cd /tmp/suo5 && $Proxy_OK wget ${GitProxy}https://github.com/zema1/suo5/releases/download/${suo5_Ver}/${suo5_bin} > /dev/null 2>&1 || Echo_ERROR2 mv ${suo5_bin} /usr/local/bin/suo5 && chmod +x /usr/local/bin/suo5 which suo5 > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name ${suo5_Ver} in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/suo5 + rm -rf /tmp/suo5 && cd /tmp fi } @@ -4821,12 +4840,13 @@ Pentest_kerbrute_Install(){ *"linux-x86_64"*) mkdir -p /tmp/kerbrute && cd /tmp/kerbrute && rm -f $kerbrute_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/ropnop/kerbrute/releases/download/$kerbrute_Ver/$kerbrute_bin > /dev/null 2>&1 || Echo_ERROR2 mv --force $kerbrute_bin /usr/local/bin/kerbrute && chmod +x /usr/local/bin/kerbrute && rm -f /tmp/$kerbrute_bin > /dev/null 2>&1 - rm -rf /tmp/kerbrute + rm -rf /tmp/kerbrute && cd /tmp which kerbrute > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $kerbrute_Ver in the /usr/local/bin/" || Echo_ERROR3 ;; *"linux-arm64"*) - cd /tmp && go install github.com/ropnop/kerbrute@latest + mkdir -p /tmp/kerbrute && cd /tmp/kerbrute && go install github.com/ropnop/kerbrute@latest mv $GOPATH/bin/kerbrute /usr/local/bin/kerbrute && chmod +x /usr/local/bin/kerbrute || { mv /root/go/bin/kerbrute /usr/local/bin/kerbrute; chmod +x /usr/local/bin/kerbrute; } + rm -rf /tmp/kerbrute && cd /tmp which kerbrute > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -4849,13 +4869,14 @@ Pentest_Adinfo_Install(){ *"linux-x86_64"*) mkdir -p /tmp/Adinfo && cd /tmp/Adinfo && rm -f $Adinfo_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/lzzbb/Adinfo/releases/download/$Adinfo_Ver/$Adinfo_bin > /dev/null 2>&1 || Echo_ERROR2 mv --force $Adinfo_bin /usr/local/bin/Adinfo && chmod +x /usr/local/bin/Adinfo && rm -f /tmp/$Adinfo_bin > /dev/null 2>&1 - rm -rf /tmp/Adinfo + rm -rf /tmp/Adinfo && cd /tmp which Adinfo > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $Adinfo_Ver in the /usr/local/bin/" || Echo_ERROR3 ;; *"linux-arm64"*) # fork版更新了go.mod - cd /tmp && go install github.com/No-Github/Adinfo@latest + mkdir -p /tmp/Adinfo && cd /tmp/Adinfo && go install github.com/No-Github/Adinfo@latest mv $GOPATH/bin/Adinfo /usr/local/bin/Adinfo && chmod +x /usr/local/bin/Adinfo || { mv /root/go/bin/Adinfo /usr/local/bin/Adinfo; chmod +x /usr/local/bin/Adinfo; } + rm -rf /tmp/Adinfo && cd /tmp which Adinfo > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -5028,7 +5049,7 @@ Pentest_Platypus_Install(){ mkdir -p /tmp/Platypus && cd /tmp/Platypus && $Proxy_OK wget ${GitProxy}https://github.com/WangYihang/Platypus/releases/download/${Platypus_Ver}/${Platypus_bin} > /dev/null 2>&1 || Echo_ERROR2 mv ${Platypus_bin} /usr/local/bin/Platypus && chmod +x /usr/local/bin/Platypus which Platypus > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name ${Platypus_Ver} in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/Platypus + rm -rf /tmp/Platypus && cd /tmp fi } @@ -5056,7 +5077,7 @@ Pentest_MoreFind_Install(){ tar -zxvf $MoreFind_bin > /dev/null 2>&1 mv --force MoreFind /usr/local/bin/MoreFind && chmod +x /usr/local/bin/MoreFind which MoreFind > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $MoreFind_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/MoreFind + rm -rf /tmp/MoreFind && cd /tmp fi } @@ -5084,7 +5105,7 @@ Pentest_alterx_Install(){ unzip $alterx_bin > /dev/null 2>&1 mv --force alterx /usr/local/bin/alterx && chmod +x /usr/local/bin/alterx alterx -version > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $alterx_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/alterx + rm -rf /tmp/alterx && cd /tmp fi } @@ -5112,7 +5133,7 @@ Pentest_mapcidr_Install(){ unzip $mapcidr_bin > /dev/null 2>&1 mv --force mapcidr /usr/local/bin/mapcidr && chmod +x /usr/local/bin/mapcidr mapcidr -version > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $mapcidr_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/mapcidr + rm -rf /tmp/mapcidr && cd /tmp fi } @@ -5137,11 +5158,11 @@ Pentest_iprange_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $iprange_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/ffffffff0x/iprange/releases/download/$iprange_Ver/$iprange_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/iprange && cd /tmp/iprange && rm -f $iprange_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/ffffffff0x/iprange/releases/download/$iprange_Ver/$iprange_bin > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $iprange_bin > /dev/null 2>&1 mv --force iprange /usr/local/bin/iprange && chmod +x /usr/local/bin/iprange + rm -rf /tmp/iprange && cd /tmp which iprange > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $iprange_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -f /tmp/$iprange_bin fi } @@ -5169,7 +5190,7 @@ Pentest_dnsx_Install(){ unzip $dnsx_bin > /dev/null 2>&1 mv --force dnsx /usr/local/bin/dnsx && chmod +x /usr/local/bin/dnsx which dnsx > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $dnsx_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/dnsx + rm -rf /tmp/dnsx && cd /tmp fi } @@ -5197,7 +5218,7 @@ Pentest_uncover_Install(){ unzip $uncover_bin > /dev/null 2>&1 mv --force uncover /usr/local/bin/uncover && chmod +x /usr/local/bin/uncover which uncover > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $uncover_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/uncover + rm -rf /tmp/uncover && cd /tmp fi } @@ -5225,7 +5246,7 @@ Pentest_nali_Install(){ gunzip $nali_bin > /dev/null 2>&1 mv nali-linux-* /usr/local/bin/nali && chmod +x /usr/local/bin/nali which nali > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $nali_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/nali + rm -rf /tmp/nali && cd /tmp fi } @@ -5253,7 +5274,7 @@ Pentest_anew_Install(){ tar -xzvf ${anew_bin} > /dev/null mv anew /usr/local/bin/anew && chmod +x /usr/local/bin/anew which anew > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $anew_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/anew + rm -rf /tmp/anew && cd /tmp fi } @@ -5281,7 +5302,7 @@ Pentest_gron_Install(){ tar -xzvf ${gron_bin} > /dev/null 2>&1 mv /tmp/gron/gron /usr/local/bin/gron && chmod +x /usr/local/bin/gron which gron > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name ${gron_Ver} in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/gron + rm -rf /tmp/gron && cd /tmp fi } @@ -5301,12 +5322,13 @@ Pentest_unfurl_Install(){ mkdir -p /tmp/unfurl && cd /tmp/unfurl && rm -f ${unfurl_Bin} > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/tomnomnom/unfurl/releases/download/${unfurl_Ver}/${unfurl_Bin} > /dev/null 2>&1 || Echo_ERROR2 tar -xzvf ${unfurl_Bin} > /dev/null 2>&1 mv /tmp/unfurl/unfurl /usr/local/bin/unfurl && chmod +x /usr/local/bin/unfurl + rm -rf /tmp/unfurl && cd /tmp which unfurl > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name ${unfurl_Ver} in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/unfurl ;; *"linux-arm64"*) - cd /tmp && go install github.com/tomnomnom/unfurl@latest + mkdir -p /tmp/unfurl && cd /tmp/unfurl && go install github.com/tomnomnom/unfurl@latest mv $GOPATH/bin/unfurl /usr/local/bin/unfurl && chmod +x /usr/local/bin/unfurl || { mv /root/go/bin/unfurl /usr/local/bin/unfurl; chmod +x /usr/local/bin/unfurl; } + rm -rf /tmp/unfurl && cd /tmp which unfurl > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -5329,12 +5351,13 @@ Pentest_qsreplace_Install(){ mkdir -p /tmp/qsreplace && cd /tmp/qsreplace && rm -f ${qsreplace_bin} > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/tomnomnom/qsreplace/releases/download/${qsreplace_Ver}/${qsreplace_bin} > /dev/null 2>&1 || Echo_ERROR2 tar -xzvf ${qsreplace_bin} > /dev/null 2>&1 mv /tmp/qsreplace/qsreplace /usr/local/bin/qsreplace && chmod +x /usr/local/bin/qsreplace + rm -rf /tmp/qsreplace && cd /tmp which qsreplace > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name ${qsreplace_Ver} in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/qsreplace ;; *"linux-arm64"*) - cd /tmp && go install github.com/tomnomnom/qsreplace@latest + mkdir -p /tmp/qsreplace && cd /tmp/qsreplace && go install github.com/tomnomnom/qsreplace@latest mv $GOPATH/bin/qsreplace /usr/local/bin/qsreplace && chmod +x /usr/local/bin/qsreplace || { mv /root/go/bin/qsreplace /usr/local/bin/qsreplace; chmod +x /usr/local/bin/qsreplace; } + rm -rf /tmp/qsreplace && cd /tmp which qsreplace > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -5352,11 +5375,11 @@ Pentest_Interlace_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -rf Interlace + mkdir -p /tmp/interlace && cd /tmp/interlace && rm -rf Interlace $Proxy_OK git clone --depth 1 ${GitProxy}https://github.com/codingo/Interlace.git > /dev/null 2>&1 && Echo_INFOR "Downloaded $name" || Echo_ERROR2 cd Interlace && $Proxy_OK python3 setup.py install > /dev/null 2>&1 + rm -rf /tmp/interlace && cd /tmp which interlace > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name" || Echo_ERROR3 - rm -rf /tmp/Interlace fi } @@ -5380,9 +5403,10 @@ Pentest_sttr_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $sttr_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/abhimanyu003/sttr/releases/download/$sttr_Ver/$sttr_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/sttr && cd /tmp/sttr && rm -f $sttr_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/abhimanyu003/sttr/releases/download/$sttr_Ver/$sttr_bin > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $sttr_bin > /dev/null 2>&1 - mv --force sttr /usr/local/bin/ && chmod +x /usr/local/bin/sttr && rm -f /tmp/$sttr_bin > /dev/null 2>&1 + mv --force sttr /usr/local/bin/ && chmod +x /usr/local/bin/sttr + rm -rf /tmp/sttr && cd /tmp which sttr > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $sttr_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -5420,12 +5444,13 @@ Pentest_gojwtcrack_Install(){ mkdir -p /tmp/gojwtcrack && cd /tmp/gojwtcrack && $Proxy_OK wget ${GitProxy}https://github.com/x1sec/gojwtcrack/releases/download/${gojwtcrack_Ver}/${gojwtcrack_bin} > /dev/null 2>&1 || Echo_ERROR2 gunzip ${gojwtcrack_bin} > /dev/null 2>&1 mv gojwtcrack-linux-* /usr/local/bin/gojwtcrack && chmod +x /usr/local/bin/gojwtcrack + rm -rf /tmp/gojwtcrack && cd /tmp which gojwtcrack > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name ${gojwtcrack_Ver} in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/gojwtcrack ;; *"linux-arm64"*) - cd /tmp && go install github.com/x1sec/gojwtcrack@latest + mkdir -p /tmp/gojwtcrack && cd /tmp/gojwtcrack && go install github.com/x1sec/gojwtcrack@latest mv $GOPATH/bin/gojwtcrack /usr/local/bin/gojwtcrack && chmod +x /usr/local/bin/gojwtcrack || { mv /root/go/bin/gojwtcrack /usr/local/bin/gojwtcrack; chmod +x /usr/local/bin/gojwtcrack; } + rm -rf /tmp/gojwtcrack && cd /tmp which gojwtcrack > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -5479,7 +5504,7 @@ Pentest_proxify_Install(){ unzip $proxify_bin > /dev/null 2>&1 mv --force proxify /usr/local/bin/proxify && chmod +x /usr/local/bin/proxify proxify -version > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $proxify_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/proxify > /dev/null 2>&1 + rm -rf /tmp/proxify && cd /tmp fi } @@ -5511,16 +5536,16 @@ Pentest_jaeles_Install(){ else case $Linux_architecture_Name in *"linux-x86_64"*) - mkdir -p /tmp/jaeles - cd /tmp/jaeles && rm -f $jaeles_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/jaeles-project/jaeles/releases/download/$jaeles_Ver/$jaeles_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/jaeles && cd /tmp/jaeles && rm -f $jaeles_bin && $Proxy_OK wget ${GitProxy}https://github.com/jaeles-project/jaeles/releases/download/$jaeles_Ver/$jaeles_bin > /dev/null 2>&1 || Echo_ERROR2 unzip $jaeles_bin > /dev/null 2>&1 mv $jaeles_sbin /usr/local/bin/jaeles && chmod +x /usr/local/bin/jaeles - rm -rf /tmp/jaeles + rm -rf /tmp/jaeles && cd /tmp which jaeles > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $jaeles_Ver in the /usr/local/bin/" || Echo_ERROR3 ;; *"linux-arm64"*) - cd /tmp && go install github.com/jaeles-project/jaeles@latest + mkdir -p /tmp/jaeles && cd /tmp/jaeles && go install github.com/jaeles-project/jaeles@latest mv $GOPATH/bin/jaeles /usr/local/bin/jaeles && chmod +x /usr/local/bin/jaeles || { mv /root/go/bin/jaeles /usr/local/bin/jaeles; chmod +x /usr/local/bin/jaeles; } + rm -rf /tmp/jaeles && cd /tmp which jaeles > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -5547,9 +5572,10 @@ Pentest_Girsh_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $Girsh_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/nodauf/Girsh/releases/download/$Girsh_Ver/$Girsh_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/Girsh && cd /tmp/Girsh && rm -f $Girsh_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/nodauf/Girsh/releases/download/$Girsh_Ver/$Girsh_bin > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $Girsh_bin > /dev/null 2>&1 - mv --force Girsh /usr/local/bin/ && chmod +x /usr/local/bin/Girsh && rm -f /tmp/$Girsh_bin > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $Girsh_Ver in the /usr/local/bin/" || Echo_ERROR3 + mv --force Girsh /usr/local/bin/ && chmod +x /usr/local/bin/Girsh && Echo_INFOR "Successfully installed $name $Girsh_Ver in the /usr/local/bin/" || Echo_ERROR3 + rm -rf /tmp/Girsh && cd /tmp fi } @@ -5582,16 +5608,16 @@ Pentest_subjs_Install(){ else case $Linux_architecture_Name in *"linux-x86_64"*) - mkdir -p /tmp/subjs - cd /tmp/subjs && rm -f $subjs_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/lc/subjs/releases/download/$subjs_Ver/$subjs_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/subjs && cd /tmp/subjs && rm -f $subjs_bin && $Proxy_OK wget ${GitProxy}https://github.com/lc/subjs/releases/download/$subjs_Ver/$subjs_bin > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $subjs_bin > /dev/null 2>&1 mv subjs /usr/local/bin/subjs && chmod +x /usr/local/bin/subjs - rm -rf /tmp/subjs + rm -rf /tmp/subjs && cd /tmp which subjs > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $subjs_Ver in the /usr/local/bin/" || Echo_ERROR3 ;; *"linux-arm64"*) - cd /tmp && go install github.com/lc/subjs@latest + mkdir -p /tmp/subjs && cd /tmp/subjs && go install github.com/lc/subjs@latest mv $GOPATH/bin/subjs /usr/local/bin/subjs && chmod +x /usr/local/bin/subjs || { mv /root/go/bin/subjs /usr/local/bin/subjs; chmod +x /usr/local/bin/subjs; } + rm -rf /tmp/subjs && cd /tmp which subjs > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -5611,16 +5637,16 @@ Pentest_assetfinder_Install(){ else case $Linux_architecture_Name in *"linux-x86_64"*) - mkdir -p /tmp/assetfinder - cd /tmp/assetfinder && rm -f $assetfinder_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/tomnomnom/assetfinder/releases/download/$assetfinder_Ver/$assetfinder_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/assetfinder && cd /tmp/assetfinder && rm -f $assetfinder_bin && $Proxy_OK wget ${GitProxy}https://github.com/tomnomnom/assetfinder/releases/download/$assetfinder_Ver/$assetfinder_bin > /dev/null 2>&1 || Echo_ERROR2 tar -xzvf $assetfinder_bin > /dev/null 2>&1 mv assetfinder /usr/local/bin/assetfinder && chmod +x /usr/local/bin/assetfinder - rm -rf /tmp/assetfinder + rm -rf /tmp/assetfinder && cd /tmp which assetfinder > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $assetfinder_Ver in the /usr/local/bin/" || Echo_ERROR3 ;; *"linux-arm64"*) - cd /tmp && go install github.com/tomnomnom/assetfinder@latest + mkdir -p /tmp/assetfinder && cd /tmp/assetfinder && go install github.com/tomnomnom/assetfinder@latest mv $GOPATH/bin/assetfinder /usr/local/bin/assetfinder && chmod +x /usr/local/bin/assetfinder || { mv /root/go/bin/assetfinder /usr/local/bin/assetfinder; chmod +x /usr/local/bin/assetfinder; } + rm -rf /tmp/assetfinder && cd /tmp which assetfinder > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -5641,10 +5667,11 @@ Pentest_hakrawler_Install(){ Echo_ALERT "$name installed" else Echo_INFOR "Local compilation and installation, if the compilation timeout, please deal with it yourself" - cd /tmp && rm -rf hakrawler + mkdir -p /tmp/hakrawler && cd /tmp/hakrawler && rm -rf hakrawler $Proxy_OK git clone --depth 1 ${GitProxy}https://github.com/hakluke/hakrawler.git > /dev/null 2>&1 && cd hakrawler || Echo_ERROR2 go build hakrawler.go - mv hakrawler /usr/local/bin/hakrawler && chmod +x /usr/local/bin/hakrawler && rm -rf /tmp/hakrawler + mv hakrawler /usr/local/bin/hakrawler && chmod +x /usr/local/bin/hakrawler + rm -rf /tmp/hakrawler && cd /tmp which hakrawler > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 fi @@ -5697,7 +5724,7 @@ Pentest_simplehttpservert_Install(){ mkdir -p /tmp/simplehttpserver && cd /tmp/simplehttpserver && rm -f $simplehttpserver_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/projectdiscovery/simplehttpserver/releases/download/$simplehttpserver_Ver/$simplehttpserver_bin > /dev/null 2>&1 || Echo_ERROR2 unzip $simplehttpserver_bin > /dev/null 2>&1 mv --force simplehttpserver /usr/local/bin/simplehttpserver && chmod +x /usr/local/bin/simplehttpserver - rm -rf /tmp/simplehttpserver > /dev/null 2>&1 + rm -rf /tmp/simplehttpserver && cd /tmp which simplehttpserver > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $simplehttpserver_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -5736,9 +5763,9 @@ Pentest_RustScan_Install(){ $Proxy_OK dnf install -y 'dnf-command(copr)' > /dev/null 2>&1 && $Proxy_OK dnf copr enable atim/rustscan -y > /dev/null 2>&1 && $Proxy_OK dnf install -y rustscan > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name" || Echo_ERROR3 ;; *"Kali"*|*"Ubuntu"*|*"Debian"*) - cd /tmp && rm -f $RustScan_Install > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/RustScan/RustScan/releases/download/$RustScan_Version/$RustScan_Install > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/rustscan && cd /tmp/rustscan && rm -f $RustScan_Install && $Proxy_OK wget ${GitProxy}https://github.com/RustScan/RustScan/releases/download/$RustScan_Version/$RustScan_Install > /dev/null 2>&1 || Echo_ERROR2 dpkg -i $RustScan_Install > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name" || Echo_ERROR3 - rm -f $RustScan_Install > /dev/null 2>&1 + rm -rf /tmp/rustscan && cd /tmp ;; *) ;; esac @@ -5778,7 +5805,7 @@ Pentest_WebAliveScan_Install(){ Echo_ALERT "$name is already installed in $dir" else $Proxy_OK git clone --depth 1 ${GitProxy}https://github.com/broken5/WebAliveScan.git $dir > /dev/null 2>&1 && cd $dir || Echo_ERROR2 - pip3 install -r requirements.txt > /dev/null 2>&1 && Echo_INFOR "Installed dependency modules" && Install_Switch4 "gevent" || { Echo_ERROR "Failed to install dependency module"; rm -rf $dir; } + pip3 install -r requirements.txt > /dev/null 2>&1 && Echo_INFOR "Installed dependency modules" && Install_Switch4 "gevent" || { Echo_ERROR "Failed to install dependency module"; rm -rf $dir; cd /tmp; } python3 webscan.py --help > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || Echo_ERROR3 fi @@ -5957,9 +5984,10 @@ Secure_fapro_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $fapro_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/fofapro/fapro/releases/download/$fapro_Ver/$fapro_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/fapro && cd /tmp/fapro && rm -f $fapro_bin && $Proxy_OK wget ${GitProxy}https://github.com/fofapro/fapro/releases/download/$fapro_Ver/$fapro_bin > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $fapro_bin > /dev/null 2>&1 - mv --force fapro /usr/local/bin/ && chmod +x /usr/local/bin/fapro && rm -f /tmp/$fapro_bin > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $fapro_Ver in the /usr/local/bin/" || Echo_ERROR3 + mv --force fapro /usr/local/bin/ && chmod +x /usr/local/bin/fapro && Echo_INFOR "Successfully installed $name $fapro_Ver in the /usr/local/bin/" || Echo_ERROR3 + rm -rf /tmp/fapro && cd /tmp fi } @@ -6054,8 +6082,9 @@ fzf_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $fzf_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/junegunn/fzf/releases/download/$fzf_Ver/$fzf_bin > /dev/null 2>&1 || Echo_ERROR2 - tar -zxvf $fzf_bin > /dev/null 2>&1 && mv fzf /usr/local/bin/fzf && chmod +x /usr/local/bin/fzf && rm -f $fzf_bin > /dev/null 2>&1 + mkdir -p /tmp/fzf && cd /tmp/fzf && rm -f $fzf_bin && $Proxy_OK wget ${GitProxy}https://github.com/junegunn/fzf/releases/download/$fzf_Ver/$fzf_bin > /dev/null 2>&1 || Echo_ERROR2 + tar -zxvf $fzf_bin > /dev/null 2>&1 && mv fzf /usr/local/bin/fzf && chmod +x /usr/local/bin/fzf + rm -rf /tmp/fzf && cd /tmp fzf --version > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name" || Echo_ERROR3 fi @@ -6080,9 +6109,10 @@ lux_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f $lux_bin > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/iawia002/lux/releases/download/$lux_Ver/$lux_bin > /dev/null 2>&1 || Echo_ERROR2 + mkdir -p /tmp/lux && cd /tmp/lux && rm -f $lux_bin && $Proxy_OK wget ${GitProxy}https://github.com/iawia002/lux/releases/download/$lux_Ver/$lux_bin > /dev/null 2>&1 || Echo_ERROR2 tar -zxvf $lux_bin > /dev/null 2>&1 - mv --force lux /usr/local/bin/lux && chmod +x /usr/local/bin/lux && rm -f $lux_bin > /dev/null 2>&1 + mv --force lux /usr/local/bin/lux && chmod +x /usr/local/bin/lux + rm -rf /tmp/lux && cd /tmp lux -v > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $lux_Ver in the /usr/local/bin/" || Echo_ERROR3 fi @@ -6156,7 +6186,7 @@ filebrowser_Install(){ then Echo_ALERT "$name installed, Run the following command to turn on the service:" else - cd /tmp && $Proxy_OK curl -o install.sh https://raw.githubusercontent.com/filebrowser/get/master/get.sh > /dev/null 2>&1 && $Proxy_OK bash install.sh > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name, Run the following command to turn on the service:" || Echo_ERROR2 + mkdir -p /tmp/filebrowser && cd /tmp/filebrowser && $Proxy_OK curl -o install.sh https://raw.githubusercontent.com/filebrowser/get/master/get.sh > /dev/null 2>&1 && $Proxy_OK bash install.sh > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name, Run the following command to turn on the service:" || Echo_ERROR2 fi Echo_INFOR "filebrowser -a [Listening IP] -r [Folder path]" && Echo_INFOR "Default account password admin" @@ -6173,8 +6203,8 @@ starship_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f install.sh > /dev/null 2>&1 && $Proxy_OK curl -o install.sh https://starship.rs/install.sh > /dev/null 2>&1 && $Proxy_OK bash install.sh && Echo_INFOR "Successfully installed $name" || Echo_ERROR2 - rm -f /tmp/install.sh > /dev/null 2>&1 + mkdir -p /tmp/starship && cd /tmp/starship && rm -f install.sh && $Proxy_OK curl -o install.sh https://starship.rs/install.sh > /dev/null 2>&1 && $Proxy_OK bash install.sh && Echo_INFOR "Successfully installed $name" || Echo_ERROR2 + rm -rf /tmp/starship && cd /tmp fi Echo_INFOR "Bash : echo \"eval \\\"\\\$(starship init bash)\\\"\" >> ~/.bashrc" @@ -6233,7 +6263,7 @@ duf_Install(){ mkdir -p /tmp/dufinstall && cd $_ && $Proxy_OK wget ${GitProxy}https://github.com/muesli/duf/releases/download/$duf_Ver/$duf_bin1 > /dev/null 2>&1 || Echo_ERROR2 rpm -i $duf_bin1 > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $duf_Ver" || Echo_ERROR3 - rm -rf /tmp/dufinstall + rm -rf /tmp/dufinstall && cd /tmp ;; *"Kali"*|*"Ubuntu"*|*"Debian"*) @@ -6248,7 +6278,7 @@ duf_Install(){ mkdir -p /tmp/dufinstall && cd $_ && $Proxy_OK wget ${GitProxy}https://github.com/muesli/duf/releases/download/$duf_Ver/$duf_bin2 > /dev/null 2>&1 || Echo_ERROR2 dpkg -i $duf_bin2 > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $duf_Ver" || Echo_ERROR3 - rm -rf /tmp/dufinstall + rm -rf /tmp/dufinstall && cd /tmp ;; *) ;; esac @@ -6282,7 +6312,7 @@ yq_Install(){ tar -zxvf $yq_File > /dev/null 2>&1 mv --force $yq_bin /usr/local/bin/yq && chmod +x /usr/local/bin/yq which yq > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $yq_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/yqinstall + rm -rf /tmp/yqinstall && cd /tmp fi } @@ -6302,7 +6332,7 @@ procs_Install(){ unzip $procs_bin > /dev/null 2>&1 mv --force procs /usr/local/bin/procs && chmod +x /usr/local/bin/procs which procs > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $procs_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/procsinstall + rm -rf /tmp/procsinstall && cd /tmp fi } @@ -6375,7 +6405,7 @@ bat_Install(){ $Proxy_OK wget ${GitProxy}https://github.com/sharkdp/bat/releases/download/$bat_Ver/$bat_bin > /dev/null 2>&1 || Echo_ERROR2 dpkg -i $bat_bin > /dev/null 2>&1 which bat > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $bat_Ver" || Echo_ERROR3 - rm -rf /tmp/batinstall + rm -rf /tmp/batinstall && cd /tmp fi } @@ -6402,7 +6432,7 @@ fd_Install(){ mkdir -p /tmp/fdinstall && cd $_ $Proxy_OK wget ${GitProxy}https://github.com/sharkdp/fd/releases/download/$fd_Ver/$fd_bin > /dev/null 2>&1 || Echo_ERROR2 dpkg -i $fd_bin > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $fd_Ver" || Echo_ERROR3 - rm -rf /tmp/fdinstall + rm -rf /tmp/fdinstall && cd /tmp fi } @@ -6430,7 +6460,7 @@ ctop_Install(){ $Proxy_OK wget ${GitProxy}https://github.com/bcicen/ctop/releases/download/$ctop_Ver/$ctop_bin > /dev/null 2>&1 || Echo_ERROR2 mv /tmp/ctop/$ctop_bin /usr/local/bin/ctop && chmod +x /usr/local/bin/ctop && rm -rf /tmp/ctop which ctop > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $ctop_Ver" || Echo_ERROR3 - rm -rf /tmp/ctop + rm -rf /tmp/ctop && cd /tmp fi } @@ -6459,7 +6489,7 @@ code-server_Install(){ mkdir -p /tmp/code-serverinstall && cd $_ && $Proxy_OK wget ${GitProxy}https://github.com/cdr/code-server/releases/download/$code_server_Ver/$code_server_bin1 ${wget_option} || Echo_ERROR2 rpm -i $code_server_bin1 > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $code_server_Ver" || Echo_ERROR3 - rm -rf /tmp/code-serverinstall + rm -rf /tmp/code-serverinstall && cd /tmp # sudo systemctl enable --now code-server@$USER # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml ;; @@ -6475,7 +6505,7 @@ code-server_Install(){ mkdir -p /tmp/code-serverinstall && cd $_ && $Proxy_OK wget ${GitProxy}https://github.com/cdr/code-server/releases/download/$code_server_Ver/$code_server_bin2 ${wget_option} || Echo_ERROR2 dpkg -i $code_server_bin2 > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $code_server_Ver" || Echo_ERROR3 - rm -rf /tmp/code-serverinstall + rm -rf /tmp/code-serverinstall && cd /tmp # sudo systemctl enable --now code-server@$USER # Now visit http://127.0.0.1:8080. Your password is in ~/.config/code-server/config.yaml ;; @@ -6589,15 +6619,6 @@ volatility3_Install(){ Echo_INFOR "mv --force /tmp/windows.zip $P_Dir/volatility3/symbols" Echo_INFOR "mv --force /tmp/mac.zip $P_Dir/volatility3/symbols" Echo_INFOR "mv --force /tmp/linux.zip $P_Dir/volatility3/symbols" - - # echo -e "\033[1;33m\n>> Downloading Symbol Tables \n\033[0m" - # cd /tmp && $Proxy_OK wget https://downloads.volatilityfoundation.org/volatility3/symbols/windows.zip > /dev/null 2>&1 - # $Proxy_OK wget https://downloads.volatilityfoundation.org/volatility3/symbols/mac.zip > /dev/null 2>&1 - # $Proxy_OK wget https://downloads.volatilityfoundation.org/volatility3/symbols/linux.zip > /dev/null 2>&1 - # mkdir -p $P_Dir/volatility3/symbols - # mv --force /tmp/windows.zip $P_Dir/volatility3/symbols && Echo_INFOR "Downloaded windows Symbol Tables in the $P_Dir/volatility3/symbols " || Echo_ERROR "windows Symbol Tables download failed" - # mv --force /tmp/mac.zip $P_Dir/volatility3/symbols && Echo_INFOR "Downloaded mac Symbol Tables in the $P_Dir/volatility3/symbols " || Echo_ERROR "windows Symbol Tables download failed" - # mv --force /tmp/linux.zip $P_Dir/volatility3/symbols && Echo_INFOR "Downloaded linux Symbol Tables in the $P_Dir/volatility3/symbols " || Echo_ERROR "windows Symbol Tables download failed" fi } @@ -6814,8 +6835,8 @@ Python2_Install(){ Install_Switch3 "setuptools" case $Linux_Version_Num in "16.04") - cd /tmp && rm -rf get-pip.py && $Proxy_OK wget https://bootstrap.pypa.io/pip/2.7/get-pip.py > /dev/null 2>&1 - $Proxy_OK python2 get-pip.py > /dev/null 2>&1 && rm -rf get-pip.py + mkdir -p /tmp/get-pip && cd /tmp/get-pip && rm -rf get-pip.py && $Proxy_OK wget https://bootstrap.pypa.io/pip/2.7/get-pip.py > /dev/null 2>&1 + $Proxy_OK python2 get-pip.py > /dev/null 2>&1 && rm -rf /tmp/get-pip && cd /tmp ;; esac ;; @@ -6998,7 +7019,8 @@ phantomjs_Install(){ echo -e "\033[1;33m\n>> Installing $name\n\033[0m" mkdir -p /tmp/phantomjs && cd $_ && rm -rf $phantomjs_bin > /dev/null 2>&1 && $Proxy_OK wget https://bitbucket.org/ariya/phantomjs/downloads/$phantomjs_bin ${wget_option} || Echo_ERROR "download failed, please check if the network is reachable, proxychains4 configuration is correct" tar -xvf $phantomjs_bin > /dev/null 2>&1 - mv $phantomjs_dir/bin/phantomjs /usr/local/bin/phantomjs && chmod +x /usr/local/bin/phantomjs && rm -rf /tmp/phantomjs + mv $phantomjs_dir/bin/phantomjs /usr/local/bin/phantomjs && chmod +x /usr/local/bin/phantomjs + rm -rf /tmp/phantomjs && cd /tmp which phantomjs > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name" || Echo_ERROR3 fi } @@ -7025,13 +7047,15 @@ kubectl_Install(){ *"linux-x86_64"*) kubectl_version=$($Proxy_OK curl -L -s https://dl.k8s.io/release/stable.txt) mkdir -p /tmp/kubectl && cd $_ && rm -rf kubectl > /dev/null 2>&1 && $Proxy_OK wget https://dl.k8s.io/release/$kubectl_version/bin/linux/amd64/kubectl ${wget_option} || Echo_ERROR "download failed, please check if the network is reachable, proxychains4 configuration is correct" - mv /tmp/kubectl/kubectl /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl && rm -rf /tmp/kubectl + mv /tmp/kubectl/kubectl /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl + rm -rf /tmp/kubectl && cd /tmp which kubectl > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $kubectl_version in the /usr/local/bin/" || Echo_ERROR3 ;; *"linux-arm64"*) kubectl_version=$($Proxy_OK curl -L -s https://dl.k8s.io/release/stable.txt) mkdir -p /tmp/kubectl && cd $_ && rm -rf kubectl > /dev/null 2>&1 && $Proxy_OK wget https://dl.k8s.io/release/$kubectl_version/bin/linux/arm64/kubectl ${wget_option} || Echo_ERROR "download failed, please check if the network is reachable, proxychains4 configuration is correct" - mv /tmp/kubectl/kubectl /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl && rm -rf /tmp/kubectl + mv /tmp/kubectl/kubectl /usr/local/bin/kubectl && chmod +x /usr/local/bin/kubectl + rm -rf /tmp/kubectl && cd /tmp which kubectl > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $kubectl_version in the /usr/local/bin/" || Echo_ERROR3 ;; esac @@ -7334,7 +7358,7 @@ lua_Install(){ mkdir -p /tmp/lua && cd /tmp/lua && rm -rf ${lua_bin} && $Proxy_OK curl -R -O http://www.lua.org/ftp/$lua_bin > /dev/null 2>&1 && Echo_INFOR "Downloaded $lua_bin" || Echo_ERROR "$lua_bin download failed" tar -zxvf ${lua_bin} > /dev/null 2>&1 && cd ${lua_dir} make linux test && make install && Echo_INFOR "Successfully installed $name" || Echo_ERROR3 - rm -rf /tmp/lua + rm -rf /tmp/lua && cd /tmp fi name="luajit" @@ -7348,7 +7372,7 @@ lua_Install(){ mkdir -p /tmp/luajit && cd /tmp/luajit && rm -rf luajit && $Proxy_OK git clone --depth 1 ${GitProxy}https://luajit.org/git/luajit.git cd luajit && make && make install Echo_INFOR "Please link by output information" - rm -rf /tmp/luajit + rm -rf /tmp/luajit && cd /tmp fi echo -e "\033[1;33m\n>> Installing common libraries\n\033[0m" @@ -7389,8 +7413,9 @@ nn_Install(){ then Echo_ALERT "nodejs && npm installed" else - cd /tmp && $Proxy_OK wget https://nodejs.org/dist/$node_Ver/$node_bin ${wget_option} && Echo_INFOR "Downloaded $node_bin " || Echo_ERROR "$node_bin download failed, please check if the network is reachable, proxychains4 configuration is correct" - mkdir /usr/local/nodejs/ && tar -C /usr/local/nodejs -xvJf $node_bin > /dev/null 2>&1 && rm $node_bin + mkdir -p /tmp/nodejs && cd /tmp/nodejs && $Proxy_OK wget https://nodejs.org/dist/$node_Ver/$node_bin ${wget_option} && Echo_INFOR "Downloaded $node_bin " || Echo_ERROR "$node_bin download failed, please check if the network is reachable, proxychains4 configuration is correct" + mkdir /usr/local/nodejs/ && tar -C /usr/local/nodejs -xvJf $node_bin > /dev/null 2>&1 + rm -rf /tmp/nodejs && cd /tmp ln -s /usr/local/nodejs/$node_Dir/bin/node /usr/local/bin/node && Echo_INFOR "Successfully installed nodejs" || Echo_ERROR "nodejs installation failed" ln -s /usr/local/nodejs/$node_Dir/bin/npm /usr/local/bin/npm && Echo_INFOR "Successfully installed npm" || Echo_ERROR "npm installation failed" @@ -7810,9 +7835,10 @@ nginx_Install(){ *) ;; esac - cd /tmp && rm -f $nginx_bin > /dev/null 2>&1 && $Proxy_OK wget -O $nginx_bin https://nginx.org/download/$nginx_bin > /dev/null 2>&1 || Echo_ERROR "$nginx_bin download failed" - tar -zxvf $nginx_bin > /dev/null 2>&1 && rm -f $nginx_bin > /dev/null 2>&1 && cd nginx-* + mkdir -p /tmp/nginx && cd /tmp/nginx && rm -f $nginx_bin > /dev/null 2>&1 && $Proxy_OK wget -O $nginx_bin https://nginx.org/download/$nginx_bin > /dev/null 2>&1 || Echo_ERROR "$nginx_bin download failed" + tar -zxvf $nginx_bin > /dev/null 2>&1 && cd nginx-* ./configure && make && make install && Echo_INFOR "Compile successfully" || Echo_ERROR "Compile failure" + rm -rf /tmp/nginx && cd /tmp mv --force /usr/local/nginx/sbin/nginx /usr/local/bin/nginx && chmod +x /usr/local/bin/nginx && nginx -h > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name, the configuration file is located in /usr/local/nginx/conf/" || Echo_ERROR3 fi @@ -8023,7 +8049,7 @@ interactsh_Install(){ unzip ${interactsh_server_bin} > /dev/null 2>&1 mv /tmp/interactsh/interactsh-server /usr/local/bin/interactsh-server && chmod +x /usr/local/bin/interactsh-server which interactsh-server > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name ${interactsh_Ver} in the /usr/local/bin/interactsh-server" || Echo_ERROR3 - rm -rf /tmp/interactsh + rm -rf /tmp/interactsh && cd /tmp fi interactsh_client_Install @@ -8054,7 +8080,7 @@ interactsh_client_Install(){ unzip ${interactsh_client_bin} > /dev/null 2>&1 mv /tmp/interactsh/interactsh-client /usr/local/bin/interactsh-client && chmod +x /usr/local/bin/interactsh-client which interactsh-client > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name ${interactsh_Ver} in the /usr/local/bin/interactsh-client" || Echo_ERROR3 - rm -rf /tmp/interactsh + rm -rf /tmp/interactsh && cd /tmp fi } @@ -8073,7 +8099,8 @@ merlin_Install(){ else mkdir -p /tmp/merlin && cd /tmp/merlin && rm -f ${merlin_Install_amd64} > /dev/null 2>&1 && $Proxy_OK wget ${GitProxy}https://github.com/Ne0nd0g/merlin/releases/download/$merlin_Ver/$merlin_Install_amd64 > /dev/null 2>&1 || Echo_ERROR2 7za x -pmerlin ${merlin_Install_amd64} > /dev/null 2>&1 - mv --force merlinServer-Linux-x64 /usr/local/bin/merlinServer && chmod +x /usr/local/bin/merlinServer && rm -rf /tmp/merlin > /dev/null 2>&1 + mv --force merlinServer-Linux-x64 /usr/local/bin/merlinServer && chmod +x /usr/local/bin/merlinServer + rm -rf /tmp/merlin && cd /tmp which merlinServer > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $merlin_Ver in the /usr/local/bin/" && Echo_INFOR "Merlin Server Command : merlinServer" || Echo_ERROR3 fi @@ -8096,7 +8123,7 @@ merlin_Install(){ mv --force merlinAgent-Linux-x64 $dir/merlinAgent-Linux-x64 mv --force merlinAgent-Darwin-x64 $dir/merlinAgent-Darwin-x64 && Echo_INFOR "Merlin Agent Folder : $dir" || Echo_ERROR3 - rm -rf /tmp/merlin > /dev/null 2>&1 + rm -rf /tmp/merlin && cd /tmp fi } @@ -8285,8 +8312,9 @@ yakit_Install(){ then Echo_ALERT "$name installed" else - cd /tmp && rm -f yak_linux_amd64 && $Proxy_OK wget ${GitProxy2}https://yaklang.oss-cn-beijing.aliyuncs.com/yak/latest/yak_linux_amd64 ${wget_option} || Echo_ERROR2 + mkdir -p /tmp/yakit && cd /tmp/yakit && rm -f yak_linux_amd64 && $Proxy_OK wget ${GitProxy2}https://yaklang.oss-cn-beijing.aliyuncs.com/yak/latest/yak_linux_amd64 ${wget_option} || Echo_ERROR2 mv --force yak_linux_amd64 /usr/local/bin/yak && chmod +x /usr/local/bin/yak + rm -rf /tmp/yakit && cd /tmp which yak > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3 fi @@ -8324,7 +8352,7 @@ wx_Install(){ mkdir -p /tmp/wxappUnpacker && cd $dir && $Proxy_OK wget ${GitProxy}https://github.com/No-Github/Archive/releases/download/wx/wxappUnpacker.zip ${wget_option} || Echo_ERROR2 unzip wxappUnpacker.zip > /dev/null 2>&1 mv wxappUnpacker/* $dir && Echo_INFOR "Successfully installed $name in the $dir" || Echo_ERROR3 - rm -rf /tmp/wxappUnpacker > /dev/null 2>&1 + rm -rf /tmp/wxappUnpacker && cd /tmp fi echo -e "\033[1;33m\n>> Installing npm package\n\033[0m" @@ -8869,10 +8897,10 @@ bt_Install(){ case $Linux_Version in *"CentOS"*|*"RedHat"*|*"Fedora"*|*"AlmaLinux"*|*"VzLinux"*|*"Rocky"*) - cd /tmp && curl -o install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh + mkdir -p /tmp/bt && cd /tmp/bt && curl -o install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh ;; *"Kali"*|*"Ubuntu"*|*"Debian"*) - cd /tmp && curl -o install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh + mkdir -p /tmp/bt && cd /tmp/bt && curl -o install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ;; *) ;; esac @@ -8886,10 +8914,10 @@ aaPanel_Install(){ case $Linux_Version in *"CentOS"*|*"RedHat"*|*"Fedora"*|*"AlmaLinux"*|*"VzLinux"*|*"Rocky"*) - cd /tmp && curl -o install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh aapanel + mkdir -p /tmp/aaPanel && cd /tmp/aaPanel && curl -o install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh aapanel ;; *"Kali"*|*"Ubuntu"*|*"Debian"*) - cd /tmp && curl -o install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh aapanel + mkdir -p /tmp/aaPanel && cd /tmp/aaPanel && curl -o install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh aapanel ;; *) ;; esac @@ -8901,7 +8929,7 @@ aaPanel_Install(){ echo -e "\033[1;33m\n>> Installing 1Panel\n\033[0m" - cd /tmp && curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh + mkdir -p /tmp/1panel && cd /tmp/1panel && curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh } @@ -8933,7 +8961,7 @@ clash_Install(){ gunzip $clash_bin > /dev/null 2>&1 mv --force $clash_File /usr/local/bin/clash && chmod +x /usr/local/bin/clash clash -v > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $clash_Ver in the /usr/local/bin/" || Echo_ERROR3 - rm -rf /tmp/installclash + rm -rf /tmp/installclash && cd /tmp fi } @@ -8972,11 +9000,11 @@ jq_Install(){ then Echo_ALERT "$name installed" else - mkdir -p /tmp/jq && cd /tmp/jq && rm -rf ${jq_bin} && rm -rf ${jq_dir} && $Proxy_OK wget -O ${jq_bin} ${GitProxy}https://github.com/stedolan/jq/releases/download/${jq_ver}/${jq_bin} > /dev/null 2>&1 || Echo_ERROR "${jq_bin} download failed" + mkdir -p /tmp/jq && cd /tmp/jq && rm -rf ${jq_bin} && $Proxy_OK wget -O ${jq_bin} ${GitProxy}https://github.com/stedolan/jq/releases/download/${jq_ver}/${jq_bin} > /dev/null 2>&1 || Echo_ERROR "${jq_bin} download failed" unzip ${jq_bin} > /dev/null 2>&1 cd ${jq_dir} && ./configure --prefix=/usr/local && make && make install ls -s /opt/jq/${jq_dir}/jq /usr/local/bin/jq - rm -rf /tmp/jq + rm -rf /tmp/jq && cd /tmp jq -h > /dev/null 2>&1 && Echo_INFOR "${name} installed" || Echo_ERROR3 fi diff --git a/f8x_version.sh b/f8x_version.sh index 678ae911..5e3b28c3 100644 --- a/f8x_version.sh +++ b/f8x_version.sh @@ -150,9 +150,9 @@ httpx_Ver="v1.3.6" httpx_bin_amd64="httpx_1.3.6_linux_amd64.zip" httpx_bin_arm64="httpx_1.3.6_linux_arm64.zip" # https://github.com/projectdiscovery/mapcidr/releases -mapcidr_Ver="v1.1.14" -mapcidr_bin_amd64="mapcidr_1.1.14_linux_amd64.zip" -mapcidr_bin_arm64="mapcidr_1.1.14_linux_arm64.zip" +mapcidr_Ver="v1.1.15" +mapcidr_bin_amd64="mapcidr_1.1.15_linux_amd64.zip" +mapcidr_bin_arm64="mapcidr_1.1.15_linux_arm64.zip" # https://github.com/ffffffff0x/iprange/releases iprange_Ver="v1.0.1" iprange_bin_amd64="iprange_1.0.1_linux_amd64.tar.gz" @@ -256,9 +256,9 @@ sliver_Ver="v1.5.41" sliver_bin_Server="sliver-server_linux" sliver_bin_Client="sliver-client_linux" # https://github.com/mstxq17/MoreFind/releases -MoreFind_Ver="v1.3.2" -MoreFind_bin_amd64="MoreFind_Linux_x86_64.tar.gz" -MoreFind_bin_arm64="MoreFind_Linux_arm64.tar.gz" +MoreFind_Ver="v1.5.3" +MoreFind_bin_amd64="MoreFind_v1.5.3_linux_x86_64.tar.gz" +MoreFind_bin_arm64="MoreFind_v1.5.3_Linux_arm64.tar.gz" # https://github.com/praetorian-inc/fingerprintx fingerprintx_Ver="v1.1.11" fingerprintx_Install_amd64="fingerprintx_1.1.11_linux_amd64.tar.gz"