Skip to content

Commit

Permalink
Merge pull request #185 from Pennyw0rth/neff-fix-rrp
Browse files Browse the repository at this point in the history
Remove unnecessary remote ops check
  • Loading branch information
Marshall-Hallenbeck authored Feb 21, 2024
2 parents 5b32cd8 + b19b888 commit a69f3e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nxc/protocols/smb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1264,12 +1264,11 @@ def get_file(self):
os.remove(download_path)

def enable_remoteops(self):
if self.remote_ops is not None and self.bootkey is not None:
return
try:
self.remote_ops = RemoteOperations(self.conn, self.kerberos, self.kdcHost)
self.remote_ops.enableRegistry()
self.bootkey = self.remote_ops.getBootKey()
if self.bootkey is None:
self.bootkey = self.remote_ops.getBootKey()
except Exception as e:
self.logger.fail(f"RemoteOperations failed: {e}")

Expand Down

0 comments on commit a69f3e7

Please sign in to comment.