forked from p15670423/monkey
Hotfix re add user post breach
This commit is contained in:
parent
99043fb8cf
commit
8fed52a5d9
|
@ -23,14 +23,17 @@ class BackdoorUser(object):
|
||||||
|
|
||||||
def act(self):
|
def act(self):
|
||||||
LOG.info("Adding a user")
|
LOG.info("Adding a user")
|
||||||
if sys.platform.startswith("win"):
|
try:
|
||||||
retval = self.add_user_windows()
|
if sys.platform.startswith("win"):
|
||||||
else:
|
retval = self.add_user_windows()
|
||||||
retval = self.add_user_linux()
|
else:
|
||||||
if retval != 0:
|
retval = self.add_user_linux()
|
||||||
LOG.warn("Failed to add a user")
|
if retval != 0:
|
||||||
else:
|
LOG.warn("Failed to add a user")
|
||||||
LOG.info("Done adding user")
|
else:
|
||||||
|
LOG.info("Done adding user")
|
||||||
|
except OSError:
|
||||||
|
LOG.exception("Exception while adding a user")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def add_user_linux():
|
def add_user_linux():
|
||||||
|
|
Loading…
Reference in New Issue