dirb command not found

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

Introduction

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

dirb: command not found

or when using sudo you get the following error message

sudo: dirb: command not found

Solutions to dirb: command not found

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

In Ubuntu dirb is provided by dirb package.

dirb is:

DIRB is a Web Content Scanner. It looks for existing (and/or hidden) Web Objects. It basically works by launching a dictionary based attack against a web server and analyzing the responses.

DIRB comes with a set of preconfigured attack wordlists for easy usage but you can use your custom wordlists. Also DIRB sometimes can be used as a classic CGI scanner, but remember that it is a content scanner not a vulnerability scanner.

DIRB’s main purpose is to help in professional web application auditing. Specially in security related testing. It covers some holes not covered by classic web vulnerability scanners. DIRB looks for specific web objects that other generic CGI scanners can’t look for. It doesn’t search vulnerabilities nor does it look for web contents that can be vulnerable.

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

sudo apt-get -y install dirb

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

You can also use apt command to install dirb.

sudo apt -y install dirb

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

sudo aptitude install dirb

Summary

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