Fix F401 warnings

This commit is contained in:
Shreya 2021-04-05 18:35:07 +05:30
parent d0168dfb9e
commit d8e1be7d6f
8 changed files with 5 additions and 10 deletions

View File

@ -1,5 +1,3 @@
import json
import pytest import pytest
import requests import requests
import requests_mock import requests_mock

View File

@ -7,7 +7,8 @@ from common.utils.exploit_enum import ExploitType
from infection_monkey.exploit.HostExploiter import HostExploiter from infection_monkey.exploit.HostExploiter import HostExploiter
from infection_monkey.exploit.tools.helpers import build_monkey_commandline, get_monkey_depth, get_target_monkey from infection_monkey.exploit.tools.helpers import build_monkey_commandline, get_monkey_depth, get_target_monkey
from infection_monkey.exploit.tools.smb_tools import SmbTools from infection_monkey.exploit.tools.smb_tools import SmbTools
from infection_monkey.model import DROPPER_CMDLINE_DETACHED_WINDOWS, MONKEY_CMDLINE_DETACHED_WINDOWS, VictimHost from infection_monkey.model import (DROPPER_CMDLINE_DETACHED_WINDOWS,
MONKEY_CMDLINE_DETACHED_WINDOWS)
from infection_monkey.network.smbfinger import SMBFinger from infection_monkey.network.smbfinger import SMBFinger
from infection_monkey.network.tools import check_tcp_port from infection_monkey.network.tools import check_tcp_port
from infection_monkey.telemetry.attack.t1035_telem import T1035Telem from infection_monkey.telemetry.attack.t1035_telem import T1035Telem

View File

@ -1,4 +1,3 @@
import ipaddress
import itertools import itertools
import socket import socket
import struct import struct

View File

@ -1,6 +1,5 @@
import pytest import pytest
import infection_monkey.network.postgresql_finger
from infection_monkey.network.postgresql_finger import PostgreSQLFinger from infection_monkey.network.postgresql_finger import PostgreSQLFinger
IRRELEVANT_EXCEPTION_STRING = "This is an irrelevant exception string." IRRELEVANT_EXCEPTION_STRING = "This is an irrelevant exception string."

View File

@ -1,7 +1,6 @@
import pytest import pytest
from infection_monkey.post_breach.actions.users_custom_pba import ( from infection_monkey.post_breach.actions.users_custom_pba import UsersPBA
DIR_CHANGE_LINUX, DIR_CHANGE_WINDOWS, UsersPBA)
MONKEY_DIR_PATH = "/dir/to/monkey/" MONKEY_DIR_PATH = "/dir/to/monkey/"
CUSTOM_LINUX_CMD = "command-for-linux" CUSTOM_LINUX_CMD = "command-for-linux"

View File

@ -2,7 +2,7 @@ import json
import pytest import pytest
from common.utils.attack_utils import ScanStatus, UsageEnum from common.utils.attack_utils import ScanStatus
from infection_monkey.model import VictimHost from infection_monkey.model import VictimHost
from infection_monkey.telemetry.attack.victim_host_telem import VictimHostTelem from infection_monkey.telemetry.attack.victim_host_telem import VictimHostTelem

View File

@ -2,7 +2,7 @@ import logging
import monkey_island.cc.resources.auth.user_store as user_store import monkey_island.cc.resources.auth.user_store as user_store
from monkey_island.cc.environment import (EnvironmentConfig, aws, password, from monkey_island.cc.environment import (EnvironmentConfig, aws, password,
standard, testing) standard)
from monkey_island.cc.server_utils.consts import DEFAULT_SERVER_CONFIG_PATH from monkey_island.cc.server_utils.consts import DEFAULT_SERVER_CONFIG_PATH
__author__ = 'itay.mizeretz' __author__ = 'itay.mizeretz'

View File

@ -1,6 +1,5 @@
import pytest import pytest
import monkey_island.cc.services.config
from monkey_island.cc.environment import Environment from monkey_island.cc.environment import Environment
from monkey_island.cc.services.config import ConfigService from monkey_island.cc.services.config import ConfigService