Skip to content

Commit ef7e974

Browse files
committed
Add missing output variable
1 parent 779f955 commit ef7e974

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nxc/modules/aws-credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def on_login(self, context, connection):
4040
# we have to exclude "Application Data" as this creates an infinite recursion, see: https://www.reddit.com/r/PowerShell/comments/17pctnv/symbolic_link_application_data_in_appdatalocal/
4141
search_aws_creds_files_payload_win = f"Get-ChildItem -Path {self.search_path_win} -Recurse -Include ('credentials','credentials.bk','config','config.bk') -Force -ErrorAction SilentlyContinue | ? {{ $_.FullName -inotmatch 'Application Data' }} | Select FullName -ExpandProperty FullName"
4242
search_aws_creds_files_cmd_win = f'powershell.exe "{search_aws_creds_files_payload_win}"'
43-
connection.execute(search_aws_creds_files_cmd_win, True)
43+
output = connection.execute(search_aws_creds_files_cmd_win, True)
4444

4545
if output:
4646
context.log.success("The following files were found:")

0 commit comments

Comments
 (0)