Hotfix re add user post breach

This commit is contained in:
Itay Mizeretz 2019-02-11 14:33:03 +02:00
parent 99043fb8cf
commit 8fed52a5d9
1 changed files with 11 additions and 8 deletions

View File

@ -23,6 +23,7 @@ class BackdoorUser(object):
def act(self):
LOG.info("Adding a user")
try:
if sys.platform.startswith("win"):
retval = self.add_user_windows()
else:
@ -31,6 +32,8 @@ class BackdoorUser(object):
LOG.warn("Failed to add a user")
else:
LOG.info("Done adding user")
except OSError:
LOG.exception("Exception while adding a user")
@staticmethod
def add_user_linux():