six2dez / reconftw

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities
MIT License
5.54k stars 902 forks source link

install.sh Installation of Golang tools fails on Kali_2022.1_arm64 #505

Closed wetterSpitze closed 2 years ago

wetterSpitze commented 2 years ago

Describe the bug i just tried to install reconftw on a fresh Kali Linux 2022.1 arm64 VM on my Macbook M1 (via VMWare Fusion Player 12). Before installing reconftw i installed go via apt install golang-go. During the setup via install.sh i get the error below, that all 30 Golang tools cannot be installed.

To Reproduce Steps to reproduce the behavior:

  1. Create Kali 2022.1 arm64 VM Link to ISO
  2. Install go inside vm (apt install golang-go)
  3. Clone reconftw (git clone https://github.com/six2dez/reconftw
  4. try to install reconftw (cd reconftw/ && ./install.sh)
  5. See error:
Running: Installing/Updating Golang                                                                                                                                                                                 

go: cannot find GOROOT directory: /usr/local/go                                                                                                                                                                      
./install.sh: Zeile 190: [: go1.17.6: Einstelliger (unärer) Operator erwartet.                                                                                                                                       
 Running: Installing requirements                                                                                                                                                                                    

 Running: Installing Golang tools (30)                                                                                                                                                                               

./install.sh: Zeile 248: /usr/local/go/bin/go: Kann die Binärdatei nicht ausführen: Fehler im Format der Programmdatei                                                                                               
 Unable to install puredns, try manually (1/30)                                                                                                                                                                      
 Unable to install waybackurls, try manually (2/30)                                                                                                                                                                  
 Unable to install interactsh-client, try manually (3/30)                                                                                                                                                            
 Unable to install nuclei, try manually (4/30)                                                                                                                                                                       
 Unable to install analyticsrelationships, try manually (5/30)                                                                                                                                                       
 Unable to install ipcdn, try manually (6/30)                                                                                                                                                                        
 Unable to install dnsx, try manually (7/30)                                                                                                                                                                         
 Unable to install dalfox, try manually (8/30)                                                                                                                                                                       
 Unable to install gitdorks_go, try manually (9/30)                                                                                                                                                                  
 Unable to install roboxtractor, try manually (10/30)                                                                                                                                                                
 Unable to install gau, try manually (11/30)                                                                                                                                                                         
 Unable to install Gxss, try manually (12/30)                                                                                                                                                                        
 Unable to install mapcidr, try manually (13/30)                                                                                                                                                                     
 Unable to install qsreplace, try manually (14/30)                                                                                                                                                                   
 Unable to install notify, try manually (15/30)                                                                                                                                                                      
 Unable to install gotator, try manually (16/30)                                                                                                                                                                     
 Unable to install cero, try manually (17/30)                                                                                                                                                                        
 Unable to install gospider, try manually (18/30)                                                                                                                                                                    
 Unable to install crlfuzz, try manually (19/30)                                                                                                                                                                     
 Unable to install httpx, try manually (20/30)                                                            
 Unable to install gowitness, try manually (21/30)                                                        
 Unable to install ffuf, try manually (22/30)                                                             
 Unable to install subjs, try manually (23/30)                                                            
 Unable to install github-endpoints, try manually (24/30)                                                 
 Unable to install unfurl, try manually (25/30)                                                           
 Unable to install anew, try manually (26/30)                                                             
 Unable to install gf, try manually (27/30)                                                               
 Unable to install Amass, try manually (28/30)                                                            
 Unable to install github-subdomains, try manually (29/30)                                                
 Unable to install dnstake, try manually (30/30)     

Expected behavior Installation of reconftw

Desktop (please complete the following information):

Additional context

kali@kali$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2022.1
Codename:       kali-rolling

kali@kali$ uname -a

Linux lotr 5.15.0-kali3-arm64 #1 SMP Debian 5.15.15-2kali1 (2022-01-31) aarch64 GNU/Linux

kali@kali$ go version
go version go1.18 linux/arm64

kali@kali$ tail .zshrc 

# enable command-not-found if installed
if [ -f /etc/zsh_command_not_found ]; then
    . /etc/zsh_command_not_found
fi

# Golang vars
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH

Thx in advance for your help and efforts 😊!

wetterSpitze commented 2 years ago

if i manually change the lines 217 and 223 in install.sh and at the buttom of my .zshrc as follows the installation succeeds:

export GOROOT="/usr/lib/go-1.18"

am i using the wrong installation method for go via apt install golang-go?

six2dez commented 2 years ago

Yes, installing Golang from apt and also manually will cause some problems with env vars and paths, I strongly suggest uninstalling it from apt and installing it manually (or let the installer do it for you)