Skip to content

Commit edab367

Browse files
authored
Merge pull request #739 from BC-SECURITY/release/5.11.2
v5.11.2 into main
2 parents 1abe3ed + c039c59 commit edab367

File tree

238 files changed

+7292
-6286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+7292
-6286
lines changed

.github/install_tests/cst-config-install-base.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ commandTests:
88
- name: "pyenv version"
99
command: "pyenv"
1010
args: ["--version"]
11-
expectedOutput: ["pyenv 2.3.*"]
11+
expectedOutput: ["pyenv 2.*"]
1212
# poetry
1313
- name: "poetry python"
1414
command: "poetry"

.github/workflows/dockerimage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
echo "Using latest tag"
3939
fi
4040
- name: Build and push
41-
uses: docker/build-push-action@v5
41+
uses: docker/build-push-action@v6
4242
with:
4343
context: .
4444
platforms: linux/amd64,linux/arm64

.github/workflows/lint-and-test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: psf/black@24.2.0
15+
- uses: psf/black@24.4.2
1616
- name: Run ruff
1717
run: |
18-
pip install ruff==0.2.1
19-
ruff .
18+
pip install ruff==0.5.3
19+
ruff check .
2020
matrix-prep-config:
2121
runs-on: ubuntu-latest
2222
steps:
@@ -85,7 +85,7 @@ jobs:
8585
DATABASE_USE=sqlite poetry run pytest . -v --runslow
8686
- name: Pytest coverage comment
8787
if: ${{ matrix.python-version == '3.12' }}
88-
uses: MishaKav/[email protected].51
88+
uses: MishaKav/[email protected].52
8989
with:
9090
pytest-coverage-path: ./pytest-coverage.txt
9191
junitxml-path: ./pytest.xml
@@ -139,7 +139,7 @@ jobs:
139139
# To save CI time, only run these tests when the install script or deps changed
140140
- name: Get changed files using defaults
141141
id: changed-files
142-
uses: tj-actions/changed-files@v44.4.0
142+
uses: tj-actions/changed-files@v44.5.5
143143
- name: Build images
144144
if: contains(steps.changed-files.outputs.modified_files, 'setup/install.sh') || contains(steps.changed-files.outputs.modified_files, 'poetry.lock')
145145
run: docker compose -f .github/install_tests/docker-compose-install-tests.yml build --parallel ${{ join(matrix.images, ' ') }}

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@
5555
[submodule "empire/server/csharp/Covenant/Data/ReferenceSourceLibraries/Moriarty"]
5656
path = empire/server/csharp/Covenant/Data/ReferenceSourceLibraries/Moriarty
5757
url = https://github.com/BC-SECURITY/Moriarty.git
58+
[submodule "empire/server/csharp/Covenant/Data/ReferenceSourceLibraries/ThreadlessInject"]
59+
path = empire/server/csharp/Covenant/Data/ReferenceSourceLibraries/ThreadlessInject
60+
url = https://github.com/CCob/ThreadlessInject.git

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: end-of-file-fixer
1010

1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.2.1
12+
rev: v0.5.3
1313
hooks:
1414
- id: ruff
1515
args: [--fix, --exit-non-zero-on-fix]

CHANGELOG.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,47 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
## [Unreleased]
1616

17+
## [5.11.2] - 2024-08-08
18+
19+
- Added Route4Me to sponsor page on Empire (@Cx01N)
20+
- Fixed global obfuscation bug in listener staging (@Cx01N)
21+
22+
## [5.11.1] - 2024-07-23
23+
24+
### Changed
25+
26+
- Updated Ruff to 0.5.3 and added additional Ruff rules (@Vinnybod)
27+
28+
### Fixed
29+
30+
- Removed duplicate code for ironpython agent for loading path resetting (@Cx01N)
31+
- Fixed issue of Sharpire taskings not getting assigned correct id (@Cx01N)
32+
33+
## [5.11.0] - 2024-07-14
34+
35+
### Added
36+
37+
- Added threaded jobs for powershell tasks using Appdomains (@Cx01N)
38+
- Added job tracking for all tasks in Sharpire (@Cx01N)
39+
- Updated agents to track all tasks and removed only tracking jobs (@Cx01N)
40+
- Added Invoke-BSOD modules (@Cx01N)
41+
- Added ticketdumper ironpython module (@Hubbl3)
42+
- Added ThreadlessInject module (@Cx01N)
43+
44+
### Fixed
45+
46+
- Fixed issue in python agents where background jobs were failed due to a missing character (@Cx01N)
47+
- Fixed task bundling for the c# server plugin (@Cx01N)
48+
- Fixed missing New-GPOImmediateTask in powerview (@Cx01N)
49+
- Fixed NET45 missing folder causing a compilation error (@Cx01N)
50+
- Fixed NET45 files not being removed on server reset (@Cx01N)
51+
52+
### Changed
53+
54+
- Converted C# server plugin to use plugin taskings (@Cx01N)
55+
- Upgraded Ruff to 0.5.0 and Black to 24.4.2 (@Vinnybod)
56+
- Added pylint-convention (PLC), pylint-error (PLE), pylint-warning (PLW), and pylint-refactor (PLR) to ruff config (@Vinnybod)
57+
1758
## [5.10.3] - 2024-05-23
1859

1960
### Changed
@@ -863,7 +904,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
863904
- Updated shellcoderdi to newest version (@Cx01N)
864905
- Added a Nim launcher (@Hubbl3)
865906

866-
[Unreleased]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v5.10.3...HEAD
907+
[Unreleased]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v5.11.2...HEAD
908+
909+
[5.11.2]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v5.11.1...v5.11.2
910+
911+
[5.11.1]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v5.11.0...v5.11.1
912+
913+
[5.11.0]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v5.10.3...v5.11.0
867914

868915
[5.10.3]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v5.10.2...v5.10.3
869916

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
[![Twitter URL](https://img.shields.io/twitter/follow/BCSecurity?style=plastic&logo=twitter)](https://twitter.com/BCSecurity)
99
[![Twitter URL](https://img.shields.io/twitter/follow/EmpireC2Project?style=plastic&logo=twitter)](https://twitter.com/EmpireC2Project)
1010
[![YouTube URL](https://img.shields.io/youtube/channel/views/UCIV4xSntF1h1bvFt8SUfzZg?style=plastic&logo=youtube)](https://www.youtube.com/channel/UCIV4xSntF1h1bvFt8SUfzZg)
11-
![Mastodon Follow](https://img.shields.io/mastodon/follow/109299433521243792?domain=https%3A%2F%2Finfosec.exchange%2F&style=plastic&logo=mastodon)
12-
![Mastodon Follow](https://img.shields.io/mastodon/follow/109384907460361134?domain=https%3A%2F%2Finfosec.exchange%2F&style=plastic&logo=mastodon)
13-
[![Threads](https://img.shields.io/badge/follow%20@BCSecurity0-grey?style=plastic&logo=threads&logoColor=#000000)](https://www.threads.net/@bcsecurity0)
14-
[![Threads](https://img.shields.io/badge/follow%20@EmpireC2Project-grey?style=plastic&logo=threads&logoColor=#000000)](https://www.threads.net/@empirec2project)
1511
[![LinkedIn](https://img.shields.io/badge/Linkedin-blue?style=plastic&logo=linkedin&logoColor=#0A66C2)](https://www.linkedin.com/company/bc-security/)
1612

1713
</div>
@@ -53,13 +49,12 @@ Empire is a post-exploitation and adversary emulation framework that is used to
5349
- [ProcessInjection](https://github.com/3xpl01tc0d3r/ProcessInjection)
5450
- And Many More
5551

56-
<!---
5752
## Sponsors
5853
<div align="center">
5954

60-
[<img src="https://github.com/BC-SECURITY/Empire/assets/9831420/f273f4b0-400c-49ce-b62f-521239a86754" width="100"/>](https://www.cybrary.it/)
61-
62-
[<img src="https://github.com/BC-SECURITY/Empire/assets/9831420/d14af000-80d2-4f67-b70c-b62ac42b6a52" width="100"/>](https://twitter.com/joehelle)
55+
[<img src="https://github.com/user-attachments/assets/604fbb97-4641-4a15-a6ba-039f67694f15" width="200"/>](https://www.route4me.com//)
56+
</div>
57+
<!---https://github-production-user-asset-6210df.s3.amazonaws.com/20302208/354655875-3497ee72-324a-4b8a-a14b-37748115997d.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240802%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240802T160658Z&X-Amz-Expires=300&X-Amz-Signature=68f78dde4457cc5bc6642dce601e1fd439252e2796b3ebe8d8d47e17625acd9a&X-Amz-SignedHeaders=host&actor_id=20302208&key_id=0&repo_id=276544505" width="100"/>](https://twitter.com/joehelle)
6358
</div>
6459
--->
6560

empire.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
import sys
44

5-
import empire.arguments as arguments
5+
from empire import arguments
66

77
if __name__ == "__main__":
88
args = arguments.args
99

1010
if args.subparser_name == "server":
11-
import empire.server.server as server
11+
from empire.server import server
1212

1313
server.run(args)
1414
elif args.subparser_name == "sync-starkiller":
@@ -21,7 +21,7 @@
2121

2222
sync_starkiller(config)
2323
elif args.subparser_name == "client":
24-
import empire.client.client as client
24+
from empire.client import client
2525

2626
client.start(args)
2727

empire/client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def run_resource_file(self, session, resource):
194194
except CliExitException:
195195
return
196196
except Exception:
197-
log.error("Error parsing resource command: ", text)
197+
log.error(f"Error parsing resource command: {text}")
198198

199199
log.info(f"Finished executing resource file: {resource}")
200200

empire/client/src/bindings.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313

1414
@Condition
1515
def ctrl_c_filter():
16-
if (
17-
menu_state.current_menu_name == "ChatMenu"
18-
or menu_state.current_menu_name == "ShellMenu"
19-
):
20-
return True
21-
return False
16+
return bool(menu_state.current_menu_name in ("ChatMenu", "ShellMenu"))
2217

2318

2419
@bindings.add("c-c", filter=ctrl_c_filter)

0 commit comments

Comments
 (0)