sudo apt update
sudo apt install -y git golang
Solution: Go modules are disabled or misconfigured. Inside the source directory, run:
go mod init phoneinfoga
go mod tidy
go build -o phoneinfoga
Kali’s default repositories may have an older version. Install the latest Go:
sudo apt install golang -y
go version
Note: If the version is below 1.19, consider installing manually from golang.org.
To use PhoneInfoga, navigate to the directory where you want to run the tool and create a new file with the following command: install phoneinfoga in kali linux
phoneinfoga --batch
This will start the batch mode, and you will be prompted to enter a phone number.
Change the web UI port:
phoneinfoga serve -p 9090
Configure your Go environment. Add these lines to your ~/.bashrc file: sudo apt update
sudo apt install -y git golang
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc
source ~/.bashrc
Create the workspace directory:
mkdir -p $GOPATH/bin,src,pkg
To run PhoneInfoga from any terminal location, move it to a directory included in your PATH:
sudo mv phoneinfoga /usr/local/bin/
Verify the installation:
phoneinfoga version
Expected output: PhoneInfoga version v2.10.x (build from source)
Once installed, using PhoneInfoga is straightforward. Remember that unethical use against individuals without consent is illegal.