> For the complete documentation index, see [llms.txt](https://pencer.gitbook.io/pencer-ctf-all-the-things/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pencer.gitbook.io/pencer-ctf-all-the-things/discovery-and-scanning/gobuster.md).

# Gobuster

Install:

```bash
apt-get install gobuster
```

Mode:

```bash
gobuster dns -d <target domain> -w <wordlist>
gobuster dir -u <target url> -w <wordlist>
gobuster vhost -u <target url> -w <wordlist>
```

Examples:

```
gobuster -t 100 dir -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -u http://10.10.10.20
```

File type:

```bash
gobuster dir -u <target url> -w <wordlist> -x .php
```

Ignore certificate errors:

```bash
gobuster dir -u <target url> -w <wordlist> -k
```

Specify cookie:

```bash
gobuster dir -u <target url> -w <wordlist> -c 'session=123456'
```

Specify agent:

```bash
gobuster dir -u <target url> -w <wordlist> -a Linux
```
