diff --git a/monkey/infection_monkey/network/info.py b/monkey/infection_monkey/network/info.py index 162fb423b..e26df1989 100644 --- a/monkey/infection_monkey/network/info.py +++ b/monkey/infection_monkey/network/info.py @@ -66,7 +66,6 @@ if is_windows_os(): def get_routes(): raise NotImplementedError() - else: from fcntl import ioctl diff --git a/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py b/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py index ed17146f0..01843b242 100644 --- a/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py +++ b/monkey/infection_monkey/post_breach/actions/communicate_as_backdoor_user.py @@ -105,4 +105,4 @@ class CommunicateAsBackdoorUser(PBA): def twos_complement(exit_status): - return hex(exit_status & (2 ** 32 - 1)) + return hex(exit_status & (2**32 - 1))