fix username to send to bh

main
mpgn 2022-10-20 17:18:22 -04:00
parent 53f5791e7c
commit 7e0613c883
1 changed files with 1 additions and 1 deletions

View File

@ -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: