From 3dbf31ef93cbf0b9109003b6e8769624ffc01717 Mon Sep 17 00:00:00 2001 From: thetowsif Date: Fri, 19 Aug 2022 11:18:37 -0400 Subject: [PATCH] recon_profile, golang installation, golang update --- fix-note.md | 12 ++++++++++++ install.sh | 12 ++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 fix-note.md mode change 100644 => 100755 install.sh diff --git a/fix-note.md b/fix-note.md new file mode 100644 index 0000000..e888e99 --- /dev/null +++ b/fix-note.md @@ -0,0 +1,12 @@ +While i was installing bbht it was not creating ".bash_profile" aliases, i had to fix the code everytime is create a vps or vm. +And now im facing problem while installing bbht GOLANG tools as GOLANG version 1.17.5 does'nt suppport 'go get', instead it used 'go install github.com/user/toolName@latest' + +So i made some small changes to use it in easy was! + +# Fix 1 : Bash profile +# Fix 2 : Golang tools installation +# Fix 3 : Golang version updated + + + + diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index e203de7..8d65c88 --- a/install.sh +++ b/install.sh @@ -21,7 +21,7 @@ sudo apt-get install -y xargs echo "installing bash_profile aliases from recon_profile" git clone https://github.com/nahamsec/recon_profile.git cd recon_profile -cat bash_profile >> ~/.bash_profile +cat .bash_profile >> ~/.bash_profile source ~/.bash_profile cd ~/tools/ echo "done" @@ -38,7 +38,7 @@ select choice in "${choices[@]}"; do yes) echo "Installing Golang" - wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz + wget https://go.dev/dl/go1.19.linux-amd64.tar.gz sudo tar -xvf go1.13.4.linux-amd64.tar.gz sudo mv go /usr/local export GOROOT=/usr/local/go @@ -74,7 +74,7 @@ cd ~/tools/ #install aquatone echo "Installing Aquatone" -go get github.com/michenriksen/aquatone +go install github.com/michenriksen/aquatone@latest echo "done" #install chromium @@ -161,15 +161,15 @@ cd ~/tools/ echo "done" echo "installing httprobe" -go get -u github.com/tomnomnom/httprobe +go install github.com/tomnomnom/httprobe@latest echo "done" echo "installing unfurl" -go get -u github.com/tomnomnom/unfurl +go install github.com/tomnomnom/unfurl@latest echo "done" echo "installing waybackurls" -go get github.com/tomnomnom/waybackurls +go install github.com/tomnomnom/waybackurls@latest echo "done" echo "installing crtndstry"