Skip to content

Commit

Permalink
Merge pull request #277 from BC-SECURITY/sponsors-dev
Browse files Browse the repository at this point in the history
4.3.2
  • Loading branch information
vinnybod authored Jan 25, 2022
2 parents 8582a90 + 2432626 commit d60f36d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.3.2
4.3.3
5 changes: 5 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1/24/2022
------------
- Version 4.3.3 Master Release
- Added a hook for when an agent is fully checked in (stage2) (@Vinnybod)

1/14/2022
------------
- Version 4.3.2 Master Release
Expand Down
2 changes: 2 additions & 0 deletions empire/server/common/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,8 @@ def handle_agent_staging(self, sessionID, language, meta, additional, encData, s
if self.mainMenu.socketio:
self.mainMenu.socketio.emit('agents/stage2', agent, broadcast=True)

hooks.run_hooks(hooks.AFTER_AGENT_STAGE2_HOOK, self.get_agent_from_name_or_session_id(sessionID))

# save the initial sysinfo information in the agent log
output = messages.display_agent(agent, returnAsString=True)
output += "[+] Agent %s now active:\n" % (sessionID)
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 @@ -44,7 +44,7 @@
from empire.server.database import models
from sqlalchemy import or_, func, and_

VERSION = "4.3.2 BC Security Fork"
VERSION = "4.3.3 BC Security Fork"


class MainMenu(cmd.Cmd):
Expand Down
5 changes: 5 additions & 0 deletions empire/server/common/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ class Hooks(object):
# It has one argument (agent: models.Agent)
AFTER_AGENT_CHECKIN_HOOK = 'after_agent_checkin_hook'

# This event is triggered after the agent has completed the stage2 of the checkin process,
# and the sysinfo has been written to the database.
# It has one argument (agent: models.Agent)
AFTER_AGENT_STAGE2_HOOK = 'after_agent_stage2_hook'

def __init__(self):
self.hooks: Dict[str, Dict[str, Callable]] = {}
self.filters: Dict[str, Dict[str, Callable]] = {}
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 = "4.3.2"
version = "4.3.3"
description = ""
authors = ["BC Security <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit d60f36d

Please sign in to comment.