Skip to content

Commit

Permalink
docs: add add_loot_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Marshall-Hallenbeck committed Jan 17, 2025
1 parent c641137 commit 28d8274
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nxc/modules/example_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ def on_login(self, context, connection):
raise Exception("Exception that might have occurred")
except Exception as e:
context.log.exception(f"Exception occurred: {e}") # This will display an exception traceback screen after an exception was raised and should only be used for critical errors

# Use this function to add loot data you want to save to $NXC_PATH/loot/$MODULE_NAME/$FILENAME
add_loot_data(self.name, "custom_loot_file.txt", "Data can be anything you want, passwords, hashes, or anything")

def on_admin_login(self, context, connection):
"""Concurrent.
Expand Down

0 comments on commit 28d8274

Please sign in to comment.