From f890da0a608e04d5f4bee304498d715e01bbbe69 Mon Sep 17 00:00:00 2001 From: byt3bl33d3r Date: Tue, 12 Apr 2016 10:52:57 -0600 Subject: [PATCH] Fixed wrong variable in get_computers module --- modules/situational_awareness/get_computers.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/situational_awareness/get_computers.py b/modules/situational_awareness/get_computers.py index 0b917053..3bcb12a8 100644 --- a/modules/situational_awareness/get_computers.py +++ b/modules/situational_awareness/get_computers.py @@ -17,11 +17,11 @@ class CMEModule: DOMAIN The domain to query for computers (default: current domain) ''' - self.group = None + self.computername = None self.domain = None self.spn = None - if 'GROUP' in module_options: - self.group = module_options['GROUP'] + if 'COMPUTERNAME' in module_options: + self.computername = module_options['COMPUTERNAME'] if 'DOMAIN' in module_options: self.domain = module_options['DOMAIN'] @@ -34,8 +34,8 @@ class CMEModule: powah_command = 'Get-NetComputer' - if self.group: - powah_command += ' -ComputerName "{}"'.format(self.group) + if self.computername: + powah_command += ' -ComputerName "{}"'.format(self.computername) if self.domain: powah_command += ' -Domain {}'.format(self.domain)