Skip to content

Commit

Permalink
stringifying more user output
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpc500 committed May 8, 2023
1 parent a880293 commit c448193
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Payload_Type/medusa/medusa/agent_code/list_tcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ def list_tcc(self,task_id,tcc=True, db="/Library/Application Support/com.apple.T

tcc_results = {}
tcc_results["entries"] = results
return { "tcc": results }
return json.dumps({ "tcc": results })
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def vscode_list_recent(self, task_id, db=""):
recent_file["path"] = entry["fileUri"].replace("file://", "")
recent_file["type"] = "file"
recent_files.append(recent_file)
return { "recents": recent_files }
return json.dumps({ "recents": recent_files })
2 changes: 1 addition & 1 deletion Payload_Type/medusa/medusa/agent_code/vscode_open_edits.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ def vscode_open_edits(self, task_id, backups_path=""):
open_edit["ctime"] = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(json_data["ctime"]/1000))
open_edit["type"] = "Edit"
open_edits.append(open_edit)
return { "edits" : open_edits }
return json.dumps({ "edits" : open_edits })
5 changes: 0 additions & 5 deletions Payload_Type/medusa/medusa/mythic/agent_functions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
# import glob
# from os.path import basename
# # Get file paths of all modules.
# modules = glob.glob('agent_functions/*.py')
# __all__ = [basename(x)[:-3] for x in modules if x != "__init__.py"]

0 comments on commit c448193

Please sign in to comment.