masscan command not found

In this troubleshooting guide we learn how to fix masscan command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

masscan: command not found

or when using sudo you get the following error message

sudo: masscan: command not found

Solutions to masscan: command not found

How To Fix masscan: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu masscan is provided by masscan package.

masscan is:

MASSCAN is TCP port scanner which transmits SYN packets asynchronously and produces results similar to nmap, the most famous port scanner. Internally, it operates more like scanrand, unicornscan, and ZMap, using asynchronous transmission. It’s a flexible utility that allows arbitrary address and port ranges.

To fix this problem, we can install more using the command below.

sudo apt-get -y install masscan

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install masscan.

sudo apt -y install masscan

Or if you have aptitude installed you can use the following command.

sudo aptitude install masscan

Summary

In this tutorial we learn how to fix masscan command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.