> 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/privesc/permissions/smart-enumeration-linux-privilege-escalation.md).

# Enumeração inteligente - Escalada de privilégios no Linux

## O que é

A escalada de privilégios baseada em permissões explora arquivos graváveis, propriedade fraca, segredos expostos ou caminhos sensíveis que deveriam ser controlados apenas pelo root. Pequenos erros de permissão podem se tornar acesso root direto quando afetam arquivos de autenticação ou caminhos de execução privilegiados. Esta página específica foca em **Ferramenta de Enumeração Inteligente** e mantém o fluxo de exploração prático: identifique a condição, valide-a com segurança e então execute o payload menor necessário para comprovar o impacto.

## Enumeração

Comece confirmando o contexto local e a configuração incorreta exata antes de executar o caminho de exploração.

```bash
find / -writable 2>/dev/null
ls -la /etc/passwd /etc/shadow 2>/dev/null
```

## Exemplos

{% embed url="<https://github.com/diego-treitos/linux-smart-enumeration>" %}

> O LSE foi projetado para ser fácil de usar e fornece uma saída clara e legível para facilitar a identificação de problemas de segurança. A ferramenta usa comandos padrão do Linux e é executada na linha de comando, o que significa que nenhum software adicional é necessário. Além disso, ela lista uma ampla variedade de informações do sistema, incluindo usuários, grupos, serviços, portas abertas, tarefas agendadas, permissões de arquivos, variáveis de ambiente e configurações de firewall, entre outras.

<figure><img src="/files/02afe9866e305f488b84705c737fc09e53b95f53" alt=""><figcaption></figcaption></figure>

Ele detecta que há uma possível vulnerabilidade via /etc/passwd:

<figure><img src="/files/5992592fe67f0c46fc4cbc63558ca72e3f9f4b95" alt=""><figcaption></figcaption></figure>


---

# 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/privesc/permissions/smart-enumeration-linux-privilege-escalation.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.
