# Sudo Exploits

## Tools

{% tabs %}
{% tab title="Sudo\_Killer" %}
An automated tools to detect sudo vulnerabilities and misconfigurations is [SUDO\_KILLER](https://github.com/TH3xACE/SUDO_KILLER)

We can directly run `sudo_killer` on the target.

```bash
./sudo_killer.sh -c -e -r report.txt -p /tmp
```

Alternatively, run it in **offline mode**. send `extract.sh` on victim machine. Copy the output from /tmp/sk\_offline.txt to your host and run `sudo_killer` in offline mode

```bash
./sudo_killer.sh -c -i /path/sk_offline.txt
```

{% endtab %}

{% tab title="FallOfSudo" %}
[FallOfSudo](https://github.com/CyberOne-TeamARES/FallOfSudo) is a tool that aid in the exploitation of Linux sudo rules. We can run it directly on the target machine

```bash
#On the target - Informational mode
$ python fallofsudo.py -i

#On the target - AutoPwn mode
$ python fallofsudo.py -a
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://red.infiltr8.io/redteam/privilege-escalation/linux/sudo-exploits.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
