Install Naabu on Ubuntu 24.04

Install Naabu on Ubuntu 24.04

Naabu is a port scanning tool to identify open ports on a target host or IP address. Naabu is built in Go programming language, making it lightweight and efficient, and it focuses on performance by using asynchronous techniques, allowing for rapid port discovery. This tutorial explains how to install Naabu on Ubuntu 24.04.

Prepare environment

Before installing Naabu, ensure that the libpcap library is installed for packet capturing:

sudo apt install -y libpcap-dev

Install Naabu

Check the latest version of Naabu from its GitHub repository and assign it to a variable:

NAABU_VERSION=$(curl -s "https://api.github.com/repos/projectdiscovery/naabu/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')

Download archive to /usr/local/bin directory:

sudo wget -qO /usr/local/bin/naabu.gz https://github.com/projectdiscovery/naabu/releases/latest/download/naabu_${NAABU_VERSION}_linux_amd64.zip

Unpack the executable from the archive:

sudo gunzip /usr/local/bin/naabu.gz

Set execute permission for file:

sudo chmod a+x /usr/local/bin/naabu

The Naabu version can be verified with the following command:

naabu --version

Testing Naabu

Use the naabu command with the -host option to specify the IP address of a network device. The -p option can be used to define which ports to scan.

naabu -host 192.168.0.227 -p 1-10000

The command scans the device to identify open ports. Output example:

  ___  ___  ___ _/ /  __ __
 / _ \/ _ \/ _ \/ _ \/ // /
/_//_/\_,_/\_,_/_.__/\_,_/

                projectdiscovery.io

[INF] Current naabu version 2.3.1 (latest)
[INF] Running CONNECT scan with non root privileges
192.168.0.227:22
[INF] Found 1 ports on host 192.168.0.227 (192.168.0.227)

Uninstall Naabu

To remove Naabu, delete the associated file:

sudo rm -rf /usr/local/bin/naabu

The Naabu configuration directory can also be removed:

rm -rf ~/.config/naabu

Leave a Comment

Cancel reply

Your email address will not be published.