> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/pt-br/reconnaissance/web-fuzzing.md).

# Fuzzing web

O fuzzing web ajuda a descobrir diretórios, arquivos, extensões, parâmetros, hosts virtuais e recursos expostos durante o reconhecimento de aplicações web.

{% hint style="info" %}
Há muitas ferramentas e métodos para descobrir diretórios e arquivos em sites, seja pela linha de comando ou por meio de recursos online. Aqui estão as principais abordagens e as ferramentas mais úteis:
{% endhint %}

## Gobuster:

> O Gobuster é uma ferramenta rápida e eficaz para realizar ataques de força bruta em diretórios e arquivos de sites.

### **Apenas diretórios:**

```bash
gobuster dir -u http://website.com/ -w /usr/share/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt -t 100
```

* **-u**: URL do site-alvo.
* **-w**: Caminho do arquivo que contém a lista de palavras-chave (wordlist).
* **-t**: Número de threads usados na busca.

### **Arquivos com extensões específicas:**

```bash
gobuster dir -u http://website.com/ -w /usr/share/SecLists/Discovery/Web-Content/quickhits.txt -t 100 -x html,php,txt
```

* **-x**: Especifica as extensões a serem pesquisadas.

### **Adicionar filtros específicos às respostas:**

* **-hh**: Filtra pelo tamanho do corpo em bytes.
* **-hc**: Exclui respostas com códigos de status específicos (por exemplo, 404).

<figure><img src="/files/9841b4b54ceeceb53b2a2bd4d499b10e911b6169" alt=""><figcaption></figcaption></figure>

## Wfuzz:

> O Wfuzz permite buscas avançadas e configuráveis por meio de ataques de força bruta, seja para diretórios ou parâmetros em URLs.

### **Apenas diretórios:**

```bash
wfuzz -c -t 100 -w /usr/share/SecLists/Discovery/Web-Content/directory-list-2.3-medium.txt http://website.com/FUZZ
```

* **-c**: Exibe a saída em cores.
* **FUZZ**: Indica onde as palavras-chave serão injetadas.

### **Arquivos com extensões específicas:**

```bash
wfuzz -c -t 100 -w /usr/share/SecLists/Discovery/Web-Content/quickhits.tx -z list,html-txt-php http://website.com/
```

* **-z**: Define extensões adicionais a serem usadas na busca (list permite definir várias extensões).

### **Valores dinâmicos de parâmetros (`?product_id=`) :**

```bash
wfuzz -c -t 100 -z range,1-200000 'http://website.com/shop/buy/detail?product_id=FUZZ'
```

* **-z range,1-200000**: Realiza um ataque de força bruta com um intervalo numérico de 1 a 200.000.

<figure><img src="/files/7204907931cf386c660f3376c97c77df433ff167" alt=""><figcaption></figcaption></figure>

## **Métodos adicionais:**

### Descoberta em fontes públicas:

Se você preferir métodos visuais de fontes públicas, use o catálogo mantido em [Ferramentas de OSINT e pesquisa](/pt-br/hacking-tools/osint.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/pt-br/reconnaissance/web-fuzzing.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
