forked from p15670423/monkey
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
e7d9bb59db
|
@ -23,6 +23,7 @@ class BackdoorUser(object):
|
||||||
|
|
||||||
def act(self):
|
def act(self):
|
||||||
LOG.info("Adding a user")
|
LOG.info("Adding a user")
|
||||||
|
try:
|
||||||
if sys.platform.startswith("win"):
|
if sys.platform.startswith("win"):
|
||||||
retval = self.add_user_windows()
|
retval = self.add_user_windows()
|
||||||
else:
|
else:
|
||||||
|
@ -31,6 +32,8 @@ class BackdoorUser(object):
|
||||||
LOG.warn("Failed to add a user")
|
LOG.warn("Failed to add a user")
|
||||||
else:
|
else:
|
||||||
LOG.info("Done adding user")
|
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