-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
security/caldera: Fix permission issues with some payload directories
- Fix a problem in ragdoll payload - Add GOCACHE and GOMODCACHE to caldera_env into caldera rc script. It is useful for avoid issues when some payloads are compiled - Some other modifications - Bump PORTREVISION
- Loading branch information
Showing
5 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
security/caldera/files/patch-plugins_stockpile_payloads_ragdoll.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- plugins/stockpile/payloads/ragdoll.py.orig 2023-05-16 23:53:18 UTC | ||
+++ plugins/stockpile/payloads/ragdoll.py | ||
@@ -63,7 +63,7 @@ class OperationLoop: | ||
def _execute_instruction(self, i): | ||
print('[+] Running instruction: %s' % i['id']) | ||
cmd = self._decode_bytes(i['command']) | ||
- execution_timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') | ||
+ execution_timestamp = datetime.datetime.now().strftime('%Y-%m-%dT%H:%M:%SZ') | ||
try: | ||
output = subprocess.check_output(cmd, shell=True, timeout=i['timeout']) | ||
except subprocess.CalledProcessError as e: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters