Skip to content

Commit 2d03c92

Browse files
committed
修复路径问题
1 parent 45e5a05 commit 2d03c92

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

f8x

+19-18
Original file line numberDiff line numberDiff line change
@@ -3009,8 +3009,8 @@ Pentest_ksubdomain_Install(){
30093009
ksubdomain > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $ksubdomain_Ver in the /usr/local/bin/" || Echo_ERROR3
30103010
;;
30113011
*"linux-arm64"*)
3012-
go install github.com/boy-hack/ksubdomain/cmd/ksubdomain@latest
3013-
mv $GOPATH/bin/ksubdomain /usr/local/bin/ksubdomain && chmod +x /usr/local/bin/ksubdomain
3012+
cd /tmp && go install github.com/boy-hack/ksubdomain/cmd/ksubdomain@latest
3013+
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; }
30143014
which ksubdomain > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
30153015
;;
30163016
esac
@@ -3188,7 +3188,7 @@ Pentest_csprecon_Install(){
31883188
Echo_ALERT "$name installed"
31893189
else
31903190
cd /tmp && go install github.com/edoardottt/csprecon/cmd/csprecon@latest
3191-
mv $GOPATH/bin/csprecon /usr/local/bin/csprecon && chmod +x /usr/local/bin/csprecon
3191+
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; }
31923192
which csprecon > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
31933193
fi
31943194

@@ -3357,7 +3357,7 @@ Pentest_naabu_Install(){
33573357
;;
33583358
*) ;;
33593359
esac
3360-
go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
3360+
cd /tmp && go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest
33613361
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; }
33623362
which naabu > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
33633363
;;
@@ -3440,7 +3440,7 @@ Pentest_gau_Install(){
34403440
which gau > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $gau_Ver in the /usr/local/bin/" || Echo_ERROR3
34413441
;;
34423442
*"linux-arm64"*)
3443-
go install github.com/lc/gau/v2/cmd/gau@latest
3443+
cd /tmp && go install github.com/lc/gau/v2/cmd/gau@latest
34443444
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; }
34453445
which gau > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
34463446
;;
@@ -3496,7 +3496,7 @@ Pentest_ApkAnalyser_Install(){
34963496
then
34973497
Echo_ALERT "$name is already installed in $dir"
34983498
else
3499-
Install_Switch4 "apkutils"
3499+
Install_Switch4 "apkutils" > /dev/null 2>&1
35003500
$Proxy_OK curl -o $P_Dir/apkAnalyser.py https://cdn.jsdelivr.net/gh/TheKingOfDuck/ApkAnalyser/apkAnalyser.py > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the $dir" || Echo_ERROR3
35013501
fi
35023502

@@ -3707,8 +3707,8 @@ Pentest_zscan_Install(){
37073707
then
37083708
Echo_ALERT "$name installed"
37093709
else
3710-
go install github.com/zyylhn/zscan@latest
3711-
mv $GOPATH/bin/zscan /usr/local/bin/zscan && chmod +x /usr/local/bin/zscan
3710+
cd /tmp && go install github.com/zyylhn/zscan@latest
3711+
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; }
37123712
which zscan > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
37133713
fi
37143714

@@ -4994,7 +4994,7 @@ Pentest_unfurl_Install(){
49944994
rm -rf /tmp/unfurl
49954995
;;
49964996
*"linux-arm64"*)
4997-
go install github.com/tomnomnom/unfurl@latest
4997+
cd /tmp && go install github.com/tomnomnom/unfurl@latest
49984998
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; }
49994999
which unfurl > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
50005000
;;
@@ -5022,7 +5022,7 @@ Pentest_qsreplace_Install(){
50225022
rm -rf /tmp/qsreplace
50235023
;;
50245024
*"linux-arm64"*)
5025-
go install github.com/tomnomnom/qsreplace@latest
5025+
cd /tmp && go install github.com/tomnomnom/qsreplace@latest
50265026
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; }
50275027
which qsreplace > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
50285028
;;
@@ -5113,7 +5113,7 @@ Pentest_gojwtcrack_Install(){
51135113
rm -rf /tmp/gojwtcrack
51145114
;;
51155115
*"linux-arm64"*)
5116-
go install github.com/x1sec/gojwtcrack@latest
5116+
cd /tmp && go install github.com/x1sec/gojwtcrack@latest
51175117
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; }
51185118
which gojwtcrack > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
51195119
;;
@@ -5207,8 +5207,8 @@ Pentest_jaeles_Install(){
52075207
which jaeles > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $jaeles_Ver in the /usr/local/bin/" || Echo_ERROR3
52085208
;;
52095209
*"linux-arm64"*)
5210-
go install github.com/jaeles-project/jaeles@latest
5211-
mv $GOPATH/bin/jaeles /usr/local/bin/jaeles && chmod +x /usr/local/bin/jaeles
5210+
cd /tmp && go install github.com/jaeles-project/jaeles@latest
5211+
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; }
52125212
which jaeles > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
52135213
;;
52145214
esac
@@ -5278,8 +5278,8 @@ Pentest_subjs_Install(){
52785278
which subjs > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $subjs_Ver in the /usr/local/bin/" || Echo_ERROR3
52795279
;;
52805280
*"linux-arm64"*)
5281-
go install github.com/lc/subjs@latest
5282-
mv $GOPATH/bin/subjs /usr/local/bin/subjs && chmod +x /usr/local/bin/subjs
5281+
cd /tmp && go install github.com/lc/subjs@latest
5282+
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; }
52835283
which subjs > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
52845284
;;
52855285
esac
@@ -5307,8 +5307,8 @@ Pentest_assetfinder_Install(){
53075307
which assetfinder > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $assetfinder_Ver in the /usr/local/bin/" || Echo_ERROR3
53085308
;;
53095309
*"linux-arm64"*)
5310-
go install github.com/tomnomnom/assetfinder@latest
5311-
mv $GOPATH/bin/assetfinder /usr/local/bin/assetfinder && chmod +x /usr/local/bin/assetfinder
5310+
cd /tmp && go install github.com/tomnomnom/assetfinder@latest
5311+
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; }
53125312
which assetfinder > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name in the /usr/local/bin/" || Echo_ERROR3
53135313
;;
53145314
esac
@@ -6060,7 +6060,8 @@ bat_Install(){
60606060
else
60616061
mkdir -p /tmp/batinstall && cd $_
60626062
$Proxy_OK wget ${GitProxy}https://github.com/sharkdp/bat/releases/download/$bat_Ver/$bat_bin > /dev/null 2>&1 || Echo_ERROR2
6063-
dpkg -i $bat_bin > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $bat_Ver" || Echo_ERROR3
6063+
dpkg -i $bat_bin > /dev/null 2>&1
6064+
which bat > /dev/null 2>&1 && Echo_INFOR "Successfully installed $name $bat_Ver" || Echo_ERROR3
60646065
rm -rf /tmp/batinstall
60656066
fi
60666067

0 commit comments

Comments
 (0)