# 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: 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://ppn.snovvcra.sh/pentest/c2/poshc2.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.
