> For the complete documentation index, see [llms.txt](https://captmouse.gitbook.io/defense/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://captmouse.gitbook.io/defense/threat-and-vulnerability-management/zero-logon/impacket-installation.md).

# Impacket Installation

**Impacket Installation**<br>

**Git Clone Impacket -**

As a prior warning, Impacket can be quite fussy when it comes to some modules within nrpc.py, because of this, we recommend using the TryHackMe [**Attack Box**](https://tryhackme.com/my-machine). This will make the exploit run faster, additionally, we can attempt to provide better support via the [**Attack Box**](https://tryhackme.com/my-machine). Additionally, we are going to be using a Virtual Environment to Install Impacket. The instructions to install Impacket are as follows:

| <p>python3 -m pip install virtualenv</p><p>python3 -m virtualenv impacketEnv<br></p><p>source impacketEnv/bin/activate</p><p>pip install git+<https://github.com/SecureAuthCorp/impacket></p> |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

\
After executing these commands, you should be placed within a Python3 Virtual Environment that will be compatible to modify the PoC to exploit Zero Logon.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://captmouse.gitbook.io/defense/threat-and-vulnerability-management/zero-logon/impacket-installation.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.
