Skip to content

Commit

Permalink
Merge pull request #711 from BC-SECURITY/release/5.8.2
Browse files Browse the repository at this point in the history
v5.8.2 into main
  • Loading branch information
vinnybod authored Dec 9, 2023
2 parents f766c95 + 20f56d8 commit dd7a460
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: bcsecurity/empire-test:${{ steps.tag-step.outputs.RELEASE_TAG }}
tags: bcsecurity/empire:${{ steps.tag-step.outputs.RELEASE_TAG }}
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [5.8.2] - 2023-12-09

### Fixed

- Fixed error in generating stager for HTTP Hop listener (@Cx01N)
- Fixed the publishing of docker images to go to the correct DockerHub coordinate (@Vinnybod)

## [5.8.1] - 2023-11-30
- Updated Starkiller to v2.7.1

Expand Down Expand Up @@ -691,7 +698,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated shellcoderdi to newest version (@Cx01N)
- Added a Nim launcher (@Hubbl3)

[Unreleased]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v5.8.1...HEAD
[Unreleased]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v5.8.2...HEAD

[5.8.2]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v5.8.1...v5.8.2

[5.8.1]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v5.8.0...v5.8.1

Expand Down
2 changes: 1 addition & 1 deletion empire/server/common/empire.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

from . import agents, credentials, listeners, stagers

VERSION = "5.8.1 BC Security Fork"
VERSION = "5.8.2 BC Security Fork"

log = logging.getLogger(__name__)

Expand Down
16 changes: 7 additions & 9 deletions empire/server/listeners/http_hop.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,28 +411,26 @@ def generate_stager(
)

staging_key = staging_key.encode("UTF-8")
unobfuscated_stager = listener_util.remove_lines_comments(stager)
stager = listener_util.remove_lines_comments(stager)

if obfuscate:
obfuscated_stager = self.mainMenu.obfuscationv2.obfuscate(
unobfuscated_stager, obfuscation_command=obfuscation_command
)
obfuscated_stager = self.mainMenu.obfuscationv2.obfuscate_keywords(
obfuscated_stager
stager = self.mainMenu.obfuscationv2.obfuscate(
stager, obfuscation_command=obfuscation_command
)
stager = self.mainMenu.obfuscationv2.obfuscate_keywords(stager)

# base64 encode the stager and return it
# There doesn't seem to be any conditions in which the encrypt flag isn't set so the other
# if/else statements are irrelevant
if encode:
return helpers.enc_powershell(obfuscated_stager)
return helpers.enc_powershell(stager)
elif encrypt:
RC4IV = os.urandom(4)
return RC4IV + encryption.rc4(
RC4IV + staging_key, obfuscated_stager.encode("UTF-8")
RC4IV + staging_key, stager.encode("UTF-8")
)
else:
return obfuscated_stager
return stager

if language in ["python", "ironpython"]:
template_path = [
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "empire-bc-security-fork"
version = "5.8.1"
version = "5.8.2"
description = ""
authors = ["BC Security <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit dd7a460

Please sign in to comment.