Skip to content

Commit

Permalink
Merge pull request #26 from BC-SECURITY/sponsors-dev
Browse files Browse the repository at this point in the history
v3.7.0 Release
  • Loading branch information
vinnybod authored Jan 18, 2021
2 parents c53bbc0 + 224d2df commit 8a45100
Show file tree
Hide file tree
Showing 68 changed files with 3,849 additions and 3,726 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/dockerimage.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[submodule "data/profiles"]
path = data/profiles
url = https://github.com/BC-SECURITY/Malleable-C2-Profiles

[submodule "cli"]
path = cli
url = https://github.com/BC-SECURITY/Empire-Cli
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ RUN wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod

WORKDIR /empire

COPY setup/requirements.txt /empire

RUN pip install -r requirements.txt
COPY pyproject.toml /empire

COPY . /empire

RUN sudo pip install poetry && sudo poetry config virtualenvs.create false && sudo poetry install

RUN rm -rf /empire/data/empire*

RUN cd setup && ./reset.sh

RUN cd setup && ./cert.sh

CMD ["python", "empire", "--rest", "--notifications"]
CMD ["sudo", "poetry", "run", "python", "empire", "--rest", "--notifications"]
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Copyright (c) 2017, Will Schroeder, Justin Warner, Matt Nelson, Steve Borosh, Alex Rymdeko-harvey, Chris Ross
Copyright (c) 2021, BC Security
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
43 changes: 21 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@

Keep up-to-date on our blog at [https://www.bc-security.org/blog][1]

Check out the Empire GUI: [Starkiller](https://github.com/BC-SECURITY/Starkiller)
[Starkiller](https://github.com/BC-SECURITY/Starkiller) | [Empire CLI](https://github.com/BC-SECURITY/Empire-Cli)

# Empire
Empire 3 is a post-exploitation framework that includes a pure-PowerShell Windows agent, and compatibility with Python 3.x Linux/OS X agents. It is the merger of the previous PowerShell Empire and Python EmPyre projects. The framework offers cryptologically-secure communications and flexible architecture.

On the PowerShell side, Empire implements the ability to run PowerShell agents without needing powershell.exe, rapidly deployable post-exploitation modules ranging from key loggers to Mimikatz, and adaptable communications to evade network detection, all wrapped up in a usability-focused framework. PowerShell Empire premiered at [BSidesLV in 2015](https://www.youtube.com/watch?v=Pq9t59w0mUI) and Python EmPyre premiered at HackMiami 2016. BC-Security presented updates to further evade Microsoft Antimalware Scan Interface (AMSI) and JA3/S signatures at [DEF CON 27](https://github.com/BC-SECURITY/DEFCON27).
On the PowerShell side, Empire implements the ability to run PowerShell agents without needing powershell.exe, rapidly deployable post-exploitation modules ranging from key loggers to Mimikatz, and adaptable communications to evade network detection, all wrapped up in a usability-focused framework. PowerShell Empire premiered at [BSidesLV in 2015](https://www.youtube.com/watch?v=Pq9t59w0mUI) and Python EmPyre premiered at HackMiami 2016. BC Security presented updates to further evade Microsoft Antimalware Scan Interface (AMSI) and JA3/S signatures at [DEF CON 27](https://github.com/BC-SECURITY/DEFCON27).

Empire relies heavily on the work from several other projects for its underlying functionality. We have tried to call out a few of those people we've interacted with [heavily here](http://www.powershellempire.com/?page_id=2) and have included author/reference link information in the source of each Empire module as appropriate. If we have failed to properly cite existing or prior work, please let us know at [email protected].

Expand All @@ -25,61 +26,60 @@ Please reach out to us on our [Discord](https://discord.gg/P8PZPyf) if you have

Thank you to the original team of developers: [@harmj0y](https://twitter.com/harmj0y), [@sixdub](https://twitter.com/sixdub), [@enigma0x3](https://twitter.com/enigma0x3), [@rvrsh3ll](https://twitter.com/424f424f), [@killswitch_gui](https://twitter.com/killswitch_gui), & [@xorrior](https://twitter.com/xorrior)

## Sponsors
[<img src="https://user-images.githubusercontent.com/20302208/104083160-41552780-51f1-11eb-8428-3b8cfaf76861.png" width="300"/>](https://www.kali.org/)

## Release Notes
As of Empire 3.1, we will no longer be actively supporting the Python 2.7 base code. If you wish to continue to leverage Python 2.7 then please use the [3.0.x Releases](https://github.com/BC-SECURITY/Empire/releases), since they were built to ensure backward compatibility.

Please see our [Releases](https://github.com/BC-SECURITY/Empire/releases) or [Changelog](/changelog) page for detailed release notes.

## Install
We recommend the use of [Kali](https://www.kali.org/downloads/), [Poetry](https://python-poetry.org/docs/), or our [Docker images](https://hub.docker.com/r/bcsecurity/empire) to run Empire.
Kali Linux users and [Direct Sponsors](https://github.com/sponsors/BC-SECURITY) will receive 30-day early access to new Empire and Starkiller features.

The following operating systems have been tested for Empire compatibility. We will be unable to provide support for other OSs at this time. Consider using our [Prebuilt Docker containers](#Docker) which can run on any system.
- Kali Linux
- Ubuntu
- Debian

__Note:__ Newer versions of Kali require you to run ```sudo``` before starting Empire.

Beginning with Empire 3.5.0, we recommend the use of [Poetry](https://python-poetry.org/docs/) or the Docker images to run Empire. Poetry is a dependency and virtual environment management tool.
This is highly recommended if using the SocketIO notification feature introduced in 3.5.0. To install Poetry, please follow the installation guide in the documentation or run `sudo pip3 install poetry`.

```sh
git clone https://github.com/BC-SECURITY/Empire.git
cd Empire
sudo ./setup/install.sh
sudo poetry install
sudo poetry run python empire --rest -n
```

### Kali

You can install the latest version of Empire by running the following:

```sh
sudo apt install powershell-empire
sudo powershell-empire
```

__Note:__ Newer versions of Kali require you to run ```sudo``` before starting Empire.


### Github
To install and run:
Poetry is a dependency and virtual environment management tool. This is highly recommended if using the SocketIO notification feature introduced in 3.5.0. To install Poetry, please follow the installation guide in the documentation or run `sudo pip3 install poetry`.

To install and run:
```sh
git clone https://github.com/BC-SECURITY/Empire.git
git clone --recursive https://github.com/BC-SECURITY/Empire.git
cd Empire
sudo ./setup/install.sh
sudo poetry install
sudo poetry run python empire
```


### Docker
If you want to run Empire using a pre-built docker container:
```bash
docker pull bcsecurity/empire:{version}
docker run -it bcsecurity/empire:{version}
docker run -it -p 1337:1337 -p 5000:5000 bcsecurity/empire:{version}

# with persistent storage
docker pull bcsecurity/empire:{version}
docker create -v /empire --name data bcsecurity/empire:{version}
docker run -it --volumes-from data bcsecurity/empire:{version}
docker run -it -p 1337:1337 -p 5000:5000 --volumes-from data bcsecurity/empire:{version}

# if you prefer to be dropped into bash instead of directly into empire
docker run -it --volumes-from data bcsecurity/empire:{version} /bin/bash
docker run -it -p 1337:1337 -p 5000:5000 --volumes-from data bcsecurity/empire:{version} /bin/bash
```

All image versions can be found at: https://hub.docker.com/r/bcsecurity/empire/
Expand All @@ -88,7 +88,6 @@ All image versions can be found at: https://hub.docker.com/r/bcsecurity/empire/
* All github tagged releases will be deployed using their version numbers (v3.0.0, v3.1.0, etc)

## Quickstart

Check out the [Empire wiki](https://github.com/BC-SECURITY/Empire/wiki/Quickstart) for instructions on getting started with Empire.

## Plugins
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.3
3.7.0
15 changes: 15 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
1/18/2021
------------
- Version 3.7.0 Master Release
- Revamped backend database from direct sqlite3 to SQLAlchemy (@Cx01N, @Vinnybod)
- Added new Empire CLI to packaging (@Vinnybod)
- Added malleable C2 profiles to empire directory: /data/profiles (@Cx01N)
- Added --teamserver option to launcher (@Cx01N)
- Added support for logging into Empire from multiple locations (@Vinnybod)
- Added Invoke-WireTap (@Cx01N)
- Added Invoke-SauronEye (@Cx01N)
- Added Invoke-SharpLoginPrompt (@Cx01N)
- Fixed OneDrive Listener with new database (@Cx01N)
- Removed need to run setup database script (@Vinnybod)
- Updated docker image to use the locked dependencies in pyproject.toml (@Vinnybod)

12/18/2020
------------
- Version 3.6.3 Master Release
Expand Down
1 change: 1 addition & 0 deletions cli
Submodule cli added at eaf73c
18 changes: 18 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
database:
type: sqlite
location: data/empire.db
defaults:
# staging key will first look at OS environment variables, then here.
# If empty, will be prompted (like Empire <3.7).
staging-key: RANDOM
username: empireadmin
password: password123
obfuscate: false
# Note the escaped backslashes
obfuscate-command: "Token\\All\\1"
# an IP white list to ONLY accept clients from
# format is "192.168.1.1,192.168.1.10-192.168.1.100,10.0.0.0/8"
ip-whitelist: ""
# an IP black list to reject accept clients from
# format is "192.168.1.1,192.168.1.10-192.168.1.100,10.0.0.0/8"
ip-blacklist: ""
26 changes: 26 additions & 0 deletions data/module_source/collection/Invoke-SauronEye.ps1

Large diffs are not rendered by default.

Loading

0 comments on commit 8a45100

Please sign in to comment.