> For the complete documentation index, see [llms.txt](https://csbygb.gitbook.io/pentips/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://csbygb.gitbook.io/pentips/tools/crackmapexec.md).

# CrackMapExec

> Apparently the tool is no longer maintened.\
> It seems like NetExec [here](https://www.netexec.wiki/) and [here](https://github.com/Pennyw0rth/NetExec) is replacing it.\
> You can learn more about the change [here](https://github.com/byt3bl33d3r/CrackMapExec/discussions/801)

## Install

```bash
apt-get install -y libssl-dev libffi-dev python-dev-is-python3 build-essential
git clone https://github.com/Porchetta-Industries/CrackMapExec
cd CrackMapExec
poetry install
```

OR

```bash
sudo apt-get -y install crackmapexec
```

## Launch

* `poetry run crackmapexec -h` for help
* [Enumeration with Crackmapexec](https://wiki.porchetta.industries/smb-protocol/enumeration)

## Useful commands

* `crackmapexec <protocol> <target-IP> -u <user or userlist> -p <password or passwordlist>` general usage format
* `crackmapexec smb -h` help for specific protocol (here smb)
* `crackmapexec smb 10.129.42.197 -u "user" -p "password" --shares` view the available shares and what privileges we have for them.

## Resources

* [NetExec wiki](https://www.netexec.wiki/)


---

# 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://csbygb.gitbook.io/pentips/tools/crackmapexec.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.
