Skip to content

Commit

Permalink
Merge pull request #628 from BC-SECURITY/release/v4.8.3
Browse files Browse the repository at this point in the history
v4.8.3 into master
  • Loading branch information
Cx01N authored Nov 11, 2022
2 parents 6bdece1 + df31012 commit 03bfbab
Show file tree
Hide file tree
Showing 11 changed files with 898 additions and 430 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.8.3] - 2022-11-11

## [4.8.2] - 2022-11-11

- Updated crontab method to work with python3 (@Cx01N)
- Updated linux_privesc_check to work with python3 (@Cx01N)
- Fixed mistakes in README.md (@Cx01N)
- Removed unused class in python agents (@Cx01N)

## [4.8.1] - 2022-10-30

- Added container structure test to CI (@Vinnybod)
Expand Down Expand Up @@ -306,7 +315,11 @@ 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/v4.8.1...HEAD
[Unreleased]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v4.8.3...HEAD

[4.8.3]: https://github.com/BC-SECURITY/Empire-Sponsors/compare/v4.8.2...v4.8.3

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

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

Expand Down
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![Empire](https://user-images.githubusercontent.com/20302208/70022749-1ad2b080-154a-11ea-9d8c-1b42632fd9f9.jpg)

[![Docs](https://img.shields.io/badge/Wiki-Docs-green?style=plastic&logo=wikipedia)](https://bc-security.gitbook.io/empire-wiki/)
![Twitter URL](https://img.shields.io/twitter/follow/BCSecurity1?style=plastic&logo=twitter)
![YouTube URL](https://img.shields.io/youtube/channel/views/UCIV4xSntF1h1bvFt8SUfzZg?style=plastic&logo=youtube)
[![Twitter URL](https://img.shields.io/twitter/follow/BCSecurity1?style=plastic&logo=twitter)](https://twitter.com/BCSecurity1)
[![YouTube URL](https://img.shields.io/youtube/channel/views/UCIV4xSntF1h1bvFt8SUfzZg?style=plastic&logo=youtube)](https://www.youtube.com/channel/UCIV4xSntF1h1bvFt8SUfzZg)
[![Discord](https://img.shields.io/discord/716165691383873536?style=plastic&logo=discord)](https://discord.gg/P8PZPyf)
[![Donate](https://img.shields.io/badge/Donate-Sponsor-blue?style=plastic&logo=github)](https://github.com/sponsors/BC-SECURITY)
[![Blog](https://img.shields.io/badge/Blog-Read%20me-orange?style=plastic&logo=wordpress)](https://www.bc-security.org/blog)
Expand All @@ -13,7 +13,7 @@ Empire is a post-exploitation and adversary emulation framework that is used to
### Features
- Server/Client Architecture for Multiplayer Support
- Supports GUI & CLI Clients
- Fully encrpyted communications
- Fully encrypted communications
- HTTP/S, Malleable HTTP, OneDrive, Dropbox, and PHP Listeners
- Massive library (400+) of supported tools in PowerShell, C#, & Python
- Donut Integration for shellcode generation
Expand All @@ -23,8 +23,8 @@ Empire is a post-exploitation and adversary emulation framework that is used to
- In-memory .NET assembly execution
- Customizable Bypasses
- JA3/S and JARM Evasion
- MITRE ATT&CK Integation
- Integrated Roslyn compiler (Thanks to Covenant)
- MITRE ATT&CK Integration
- Integrated Roslyn compiler (Thanks to [Covenant](https://github.com/cobbr/Covenant))
- Docker, Kali, Ubuntu, and Debian Install Support

### Agents
Expand Down Expand Up @@ -80,8 +80,6 @@ Check out the [Installation Page](https://bc-security.gitbook.io/empire-wiki/qui
Check out the [Empire Docs](https://bc-security.gitbook.io/empire-wiki/) for more instructions on installing and using with Empire.
For a complete list of the 4.0 changes, see the [changelog](./changelog).

Join us in [our Discord](https://discord.gg/P8PZPyf) to with any comments, questions, concerns, or problems!

## Starkiller
<div align="center"><img width="125" src="https://github.com/BC-SECURITY/Starkiller/blob/master/src/assets/icon.png"></div>

Expand All @@ -91,17 +89,21 @@ Join us in [our Discord](https://discord.gg/P8PZPyf) to with any comments, quest
See [Contributing](./.github/CONTRIBUTING.md)

## Contributors
[@Cx01N](https://twitter.com/Cx01N_)
[@Hubbl3](https://twitter.com/_Hubbl3)
[@Vinnybod](https://twitter.com/_vinnybod)
A special thanks to the following contributors for their help with Empire:

[@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)
[@Cx01N](https://twitter.com/Cx01N_)
[@Hubbl3](https://twitter.com/_Hubbl3)
[@Vinnybod](https://twitter.com/_vinnybod)

## Official Discord Channel
Join us in [our Discord](https://discord.gg/P8PZPyf) to with any comments, questions, concerns, or problems!

<p align="center">
<a href="https://discord.gg/P8PZPyf">
<img src="https://discordapp.com/api/guilds/716165691383873536/widget.png?style=banner3"/>
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 @@ -46,7 +46,7 @@
)
from .events import log_event

VERSION = "4.8.1 BC Security Fork"
VERSION = "4.8.3 BC Security Fork"


class MainMenu(cmd.Cmd):
Expand Down
8 changes: 7 additions & 1 deletion empire/server/common/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,16 @@ def strip_python_comments(data):
"""
*** DECEMBER 2017 - DEPRECATED, PLEASE DO NOT USE ***
Strip block comments, line comments, empty lines, verbose statements,
Strip block comments, line comments, empty lines, verbose statements, docstring,
and debug statements from a Python source file.
"""
print(color("[!] strip_python_comments is deprecated and should not be used"))

# remove docstrings
data = re.sub(r'""".*?"""', "", data, flags=re.DOTALL)
data = re.sub(r"'''.*?'''", "", data, flags=re.DOTALL)

# remove comments
lines = data.split("\n")
strippedLines = [
line
Expand Down
3 changes: 3 additions & 0 deletions empire/server/common/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def execute_module(
if module.language == LanguageEnum.powershell:
module_data = helpers.strip_powershell_comments(module_data)

if module.language == LanguageEnum.python:
module_data = helpers.strip_python_comments(module_data)

# check if module is external
if "Agent" not in params.keys():
msg = f"tasked external module: {module.name}"
Expand Down
7 changes: 0 additions & 7 deletions empire/server/data/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,13 +554,6 @@ def old_div(a, b):
_search_order = [('.py', False), ('/__init__.py', True)]


class ZipImportError(ImportError):
"""Exception raised by zipimporter objects."""


# _get_info() = takes the fullname, then subpackage name (if applicable),
# and searches for the respective module or package

class CFinder(object):
"""Import Hook for Empire"""

Expand Down
7 changes: 0 additions & 7 deletions empire/server/data/agent/ironpython_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,13 +667,6 @@ def old_div(a, b):
_search_order = [('.py', False), ('/__init__.py', True)]


class ZipImportError(ImportError):
"""Exception raised by zipimporter objects."""


# _get_info() = takes the fullname, then subpackage name (if applicable),
# and searches for the respective module or package

class CFinder(object):
"""Import Hook for Empire"""

Expand Down
Loading

0 comments on commit 03bfbab

Please sign in to comment.