Gobuster Section 8 of 13

Installation

Gobuster runs on all major operating systems. This guide covers installation on Linux, macOS, Windows, Docker, and building from source.

Linux (Debian/Ubuntu/Kali)

Using apt (Recommended)

The standard package manager on Debian-based systems. Kali Linux includes Gobuster by default.

bash
1sudo apt update && sudo apt install gobuster

Verify Installation

Check that Gobuster is installed correctly and view its version.

bash
1gobuster --version

macOS

Using Homebrew (Recommended)

Homebrew is the most popular package manager for macOS.

bash
1brew install gobuster

Verify Installation

Confirm the installation works.

bash
1gobuster --version

Windows

Download Prebuilt Binary

Download the latest Windows binary from GitHub Releases. Extract and add to your PATH.

bash
1# Download from: https://github.com/OJ/gobuster/releases

Using Chocolatey

If you have Chocolatey installed, Gobuster can be installed via command line.

bash
1choco install gobuster

Docker

Official Docker Image

Run Gobuster in a container without installing it on your host.

bash
1docker run --rm ghcr.io/oj/gobuster dir -u http://10.0.0.1/ -w /wordlists/common.txt

Build from Source

Using Go Install

If you have Go installed, you can install Gobuster directly from the source repository.

bash
1go install github.com/OJ/gobuster/v3@latest

Clone and Build

Clone the repository and build manually for the latest development version.

bash
1git clone https://github.com/OJ/gobuster.git && cd gobuster && go build -o gobuster

First Run

After installation, verify Gobuster works with a simple help command, then try your first scan.

bash
1gobuster --help
bash
1gobuster dir -u http://scanme.nmap.org/ -w /usr/share/wordlists/dirb/common.txt

Info

gobuster --help shows all available modes and flags. It is the fastest way to check what features your installed version supports.