From 7e0613c883ba44dd2eef1b7e824d4947fe247882 Mon Sep 17 00:00:00 2001 From: mpgn Date: Thu, 20 Oct 2022 17:18:22 -0400 Subject: [PATCH] fix username to send to bh --- cme/protocols/smb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cme/protocols/smb.py b/cme/protocols/smb.py index 564d15bd..58ba88da 100755 --- a/cme/protocols/smb.py +++ b/cme/protocols/smb.py @@ -371,7 +371,7 @@ class smb(connection): highlight('({})'.format(self.config.get('CME', 'pwn3d_label')) if self.admin_privs else '')) self.logger.success(out) if not self.args.local_auth: - add_user_bh(username, domain, self.logger, self.config) + add_user_bh(self.conn.getCredentials()[0], domain, self.logger, self.config) if not self.args.continue_on_success: return True else: