Merge pull request #732 from shreyamalviya/pba-modif
Make setuid/setgid and trap PBAs not crash on windows
This commit is contained in:
commit
e9b19e940a
|
@ -7,7 +7,6 @@ from infection_monkey.utils.environment import is_windows_os
|
|||
|
||||
class ChangeSetuidSetgid(PBA):
|
||||
def __init__(self):
|
||||
if not is_windows_os():
|
||||
linux_cmds = get_commands_to_change_setuid_setgid()
|
||||
super(ChangeSetuidSetgid, self).__init__(POST_BREACH_SETUID_SETGID,
|
||||
linux_cmd=' '.join(linux_cmds))
|
||||
linux_cmds = get_commands_to_change_setuid_setgid()
|
||||
super(ChangeSetuidSetgid, self).__init__(POST_BREACH_SETUID_SETGID,
|
||||
linux_cmd=' '.join(linux_cmds))
|
||||
|
|
|
@ -7,7 +7,6 @@ from infection_monkey.utils.environment import is_windows_os
|
|||
|
||||
class TrapCommand(PBA):
|
||||
def __init__(self):
|
||||
if not is_windows_os():
|
||||
linux_cmds = get_trap_commands()
|
||||
super(TrapCommand, self).__init__(POST_BREACH_TRAP_COMMAND,
|
||||
linux_cmd=linux_cmds)
|
||||
linux_cmds = get_trap_commands()
|
||||
super(TrapCommand, self).__init__(POST_BREACH_TRAP_COMMAND,
|
||||
linux_cmd=linux_cmds)
|
||||
|
|
Loading…
Reference in New Issue