# gcore SUID

According to&#x20;

{% embed url="<https://gtfobins.github.io/gtfobins/gcore/>" %}

{% embed url="<https://wiki.sentnl.io/security/hacking-demos/getting-passwords-of-logged-in-users>" %}

Gcore allows you to dump information about running processes, since this is running as root we are most likely able <mark style="color:red;">to dump information of processes that are runing as root.</mark> Maybe out of this we can use it get some sort of information. Linpeas will automatically tell you of the processes running as root.&#x20;

![](/files/A83SfU1jQ7s4amZU0jIV)

So we will dump the information of root processes using <mark style="color:green;">`sudo`</mark>` `<mark style="color:purple;">`gcore <`</mark>`pid`<mark style="color:purple;">`>`</mark>![](/files/FkFSDMaNhHa1qdCpYSPT)![](/files/F7utPwf9HR2sFc1GYV79)


---

# 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://lyethar.gitbook.io/methodology/readme/privilege-escalation/linux/enumerating-suid-binaries/gcore-suid.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.
