Skip to content

Commit

Permalink
Cleanup: Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
srenfo authored and glaslos committed Dec 6, 2020
1 parent f7ac7da commit 90db964
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 24 deletions.
1 change: 0 additions & 1 deletion conpot/core/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from os import F_OK, R_OK, W_OK
from typing import Optional, Union, Text, Any, List
from fs import open_fs, mirror, errors, subfs, base
from fs.time import datetime_to_epoch
from fs.mode import Mode
from fs.wrapfs import WrapFS
from fs.permissions import Permissions
Expand Down
1 change: 0 additions & 1 deletion conpot/core/fs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"""
import fs
from typing import Optional, Union
from fs import errors
from fs.permissions import Permissions
import typing
from fs.subfs import SubFS
Expand Down
6 changes: 1 addition & 5 deletions conpot/core/loggers/stix_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
from stix.incident.time import Time as StixTime
from stix.indicator import Indicator
from stix.ttp import TTP, VictimTargeting
from stix.extensions.identity.ciq_identity_3_0 import (
CIQIdentity3_0Instance,
STIXCIQIdentity3_0,
OrganisationInfo,
)
from stix.extensions.identity.ciq_identity_3_0 import CIQIdentity3_0Instance

from cybox.core import Observable
from cybox.objects.socket_address_object import SocketAddress
Expand Down
2 changes: 1 addition & 1 deletion conpot/core/virtual_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import sys
import fs
import conpot
from fs import open_fs, errors, subfs
from fs import open_fs, subfs
from conpot.core.filesystem import AbstractFS, SubAbstractFS

logger = logging.getLogger(__name__)
Expand Down
1 change: 0 additions & 1 deletion conpot/protocols/bacnet/bacnet_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import sys
from bacpypes.pdu import GlobalBroadcast
import bacpypes.object
from bacpypes import errors
from bacpypes.app import BIPSimpleApplication
from bacpypes.constructeddata import Any
from bacpypes.constructeddata import InvalidParameterDatatype
Expand Down
5 changes: 0 additions & 5 deletions conpot/protocols/ftp/ftp_base_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

import socketserver
import gevent
from gevent import queue
from gevent import select
import conpot.core as conpot_core
from conpot.core.filesystem import FilesystemError
import logging
Expand All @@ -27,10 +25,7 @@
import fs
from datetime import datetime
import os
from fs import errors
from fs.path import frombase
from conpot.helpers import sanitize_file_name
from gevent import event
from conpot.protocols.ftp.ftp_utils import FTPPrivilegeException
from gevent import socket

Expand Down
1 change: 0 additions & 1 deletion conpot/protocols/ftp/ftp_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from datetime import datetime
import gevent
from gevent import socket
from fs import errors
from conpot.core.filesystem import FilesystemError, FSOperationNotPermitted
from conpot.protocols.ftp.ftp_utils import FTPPrivilegeException, get_data_from_iter

Expand Down
1 change: 0 additions & 1 deletion conpot/protocols/kamstrup/usage_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import logging

import gevent
from gevent import event
import conpot.core as conpot_core


Expand Down
1 change: 0 additions & 1 deletion conpot/protocols/snmp/conpot_cmdrsp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import sys
import logging
import random
from datetime import datetime

from pysnmp.entity.rfc3413 import cmdrsp
from pysnmp.proto import error
Expand Down
1 change: 0 additions & 1 deletion conpot/protocols/tftp/tftp_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import tftpy
import time
from gevent import socket
from fs import errors
from tftpy import TftpException, TftpErrors
from tftpy.TftpStates import TftpStateExpectACK, TftpStateExpectDAT
from tftpy.TftpPacketTypes import TftpPacketRRQ, TftpPacketWRQ
Expand Down
1 change: 0 additions & 1 deletion conpot/protocols/tftp/tftp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from gevent.server import DatagramServer
import conpot.core as conpot_core
from conpot.core.protocol_wrapper import conpot_protocol
from gevent import event
from tftpy import TftpException, TftpTimeout
import logging
from conpot.utils.ext_ip import get_interface_ip
Expand Down
2 changes: 1 addition & 1 deletion conpot/tests/helpers/s7comm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from struct import pack, unpack
from optparse import OptionGroup
from conpot.helpers import chr_py3, str_to_bytes
from conpot.helpers import str_to_bytes
import struct
import socket
import string
Expand Down
1 change: 0 additions & 1 deletion conpot/tests/helpers/snmp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from pysnmp.entity import engine, config
from pysnmp.carrier.asynsock.dgram import udp
from pysnmp.entity.rfc3413 import cmdgen
from pysnmp.proto import rfc1902


class SNMPClient(object):
Expand Down
2 changes: 0 additions & 2 deletions conpot/tests/test_bacnet_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
WhoHasRequest,
ReadPropertyRequest,
ReadPropertyACK,
AtomicReadFileRequest,
AuthenticateRequest,
)
from bacpypes.constructeddata import Any
from bacpypes.primitivedata import Real
Expand Down
1 change: 0 additions & 1 deletion conpot/tests/test_vfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from freezegun import freeze_time
import fs
from datetime import datetime
from fs import permissions
from fs.time import epoch_to_datetime


Expand Down

0 comments on commit 90db964

Please sign in to comment.