Skip to content

Commit

Permalink
Fixed BC-SECURITY#764 delay jitter python agent but
Browse files Browse the repository at this point in the history
  • Loading branch information
janit0rjoe committed Dec 17, 2024
1 parent 5aeb633 commit 6db5293
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion empire/server/core/agent_task_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def create_task_update_sleep(
db,
agent,
"TASK_CMD_WAIT",
f"global delay; global jitter; delay={delay}; jitter={jitter}; print('delay/jitter set to {delay}/{jitter}')",
f"global agent; agent.delay={delay}; agent.jitter={jitter}; print('delay/jitter set to {delay}/{jitter}')",
user_id=user_id,
)
if agent.language == "csharp":
Expand Down
1 change: 1 addition & 0 deletions empire/server/data/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ def dynamic_code_execute_wait_nosave(self, data, result_id):
Task 100
"""
try:
globals().update({'agent':self})
buffer = StringIO()
sys.stdout = buffer
code_obj = compile(data, "<string>", "exec")
Expand Down

0 comments on commit 6db5293

Please sign in to comment.