# winrm

## CME

```bash
cme winrm manager.htb -u raven -p 'R4v3nBe5tD3veloP3r!123'    
```

#### evil-winrm

* simple connection

```bash
evil-winrm -u 'raven' -p 'R4v3nBe5tD3veloP3r!123' -i manager.htb
```

* connection using kerberos

```bash
export KRB5CCNAME=user.ccache
# modify /etc/krb5.conf
┌──(kali㉿kali)-[~/hack-the-box/machines]
└─$ cat /etc/krb5.conf                                                                   
[libdefaults]
    default_realm = DOMAIN.LOCAL
    dns_lookup_realm = false
    dns_lookup_kdc = false
    forwardable = true
[realms]
    DOMAIN.LOCAL = {
        kdc = dc01.domain.local
        admin_server = dc01.domain.local
    }
[domain_realm]
    .domain.local = DOMAIN.LOCAL
    domain.local = DOMAIN.LOCAL

```

```bash
# Get ticket
impacket-getTGT domain/username:'Password' -dc-ip dc01.infiltrator.htb

evil-winrm -u 'user.ccache' -p  -i domain.local -r domain.local
```


---

# 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://notes.dado1513.dev/network-services-pentest/winrm.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.
