> For the complete documentation index, see [llms.txt](https://notes.m4lwhere.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.m4lwhere.org/offensive/ps-empire.md).

# PS Empire

## Install

Install for kali via apt using:

```bash
sudo apt install powershell-empire
```

<https://bc-security.gitbook.io/empire-wiki/quickstart/installation>&#x20;

## Starting the Server

Once installed, you must run the server before we can connect clients. The clients are used to connect to the server to interact and generate payloads. Must be run with sudo!

```bash
sudo powershell-empire server
```

## Connect to the server

Connect to the server using a client with the command below. This allows us to generate payloads. By default, this will try to connect to localhost.

```bash
powershell-empire client
```

## Creating a Listener

We must have a listener active before we can generate a stager.&#x20;

<https://bc-security.gitbook.io/empire-wiki/quickstart#listeners-101>&#x20;
