Conpot Readthedocs Io en Latest
Conpot Readthedocs Io en Latest
Release 0.6.0
MushMush Foundation
1 Installation 3
1.1 Quick Installation using Docker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Installation on host using Virtualenv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Conpot concepts 7
2.1 Databus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 ConpotFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.3 Internal Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.4 Protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.5 Proxy Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.6 Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Developmental guidelines 9
3.1 Development Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
5 API reference 15
5.1 API Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Index 77
i
ii
Conpot Documentation, Release 0.6.0
Conpot is an ICS honeypot with the goal to collect intelligence about the motives and methods of adversaries targeting
industrial control systems.
Contents 1
Conpot Documentation, Release 0.6.0
2 Contents
CHAPTER 1
Installation
1. Install Docker
2. Run docker pull honeynet/conpot
3. Run docker run -it -p 80:80 -p 102:102 -p 502:502 -p 161:161/udp
--network=bridge honeynet/conpot:latest /bin/sh
4. Finally run conpot -f --template default
Navigate to http://MY_IP_ADDRESS to confirm the setup.
1. Install Docker
2. Clone this repo with git clone https://github.com/mushorg/conpot.git
3. Run sudo make run-docker
Navigate to http://MY_IP_ADDRESS to confirm the setup.
3
Conpot Documentation, Release 0.6.0
1. Install docker-compose
2. Clone this repo with git clone https://github.com/mushorg/conpot.git and cd conpot/
docker
3. Build the image with docker-compose build
4. Test if everything is running correctly with docker-compose up
5. Permanently run as a daemon with docker-compose up -d
Sample output
Version 0.6.0
MushMush Foundation
2018-08-09 19:13:15,100 Please wait while the system copies all specified files
2018-08-09 19:13:15,172 Fetched x.x.x.x as external ip.
201
A generic way to keep Python installations separate is using virtualenv. This way you can run conpot on your machine
without littering your machine. This guides assumes you have Python 3.6 installed and running on your computer.
Note that this is also the recommended way of installing conpot on a machine. Installation can be done as follows:-
Install dependencies:
$ source conpot/bin/activate
4 Chapter 1. Installation
Conpot Documentation, Release 0.6.0
6 Chapter 1. Installation
CHAPTER 2
Conpot concepts
2.1 Databus
2.2 ConpotFS
ConpotFS designed to have “safe to use” os.* wrappers that could be used by protocols. We cannot allow chmod() like
commands that may allow attackers to make arbitrary system calls.
At the same time - protocols such as FTP need chmod() like methods. Same goes for stat() etc. For this reason, we
needed a file system that can operate on a layer above the actual file system and still provide the flexibility/robustness.
The Conpot’s file system solves this problem by proxying the actual files kept at a controlled location.
+---------------+ +----------------------+
| | | |
| | <----------------+ | Actual FileSystem |
| Conpot VFS | Proxy | at |
| | +----------------> | '/tmp/__conpot__*/' |
| | | |
+---------------+ +----------------------+
Consequently, we would keep a cache (a dictionary where we would store all file related data - (information regarding
access, permissions, owners, stat etc.). Note that no matter what, we won’t change the actual permissions of the file
system.
For the sake of demo, consider the following:
This is what a typical ls -la for a user 1337honey looks like:
total 8
drwxrwxr-x 2 1337honey 1337honey 4096 Jul 9 01:20 .
(continues on next page)
7
Conpot Documentation, Release 0.6.0
As you can see, the permissions have changed and so have the user/groups(By default the uid:gid is 0:0 and permis-
sions is 777 - this is configurable). This is not all. Check this out!
There is no change with the uid:gid:perms of the actual ‘hacked.png’ file though.
Another big advantage of this approach is : VFS is independent of the physical storage media it is located in. We
are currently keeping the contents in ‘/tmp’. But in future if we want to replace this with somewhat better storage
media(or location), we can simply detach the VFS - replace it with new storage media URL and it’ll fit right in.
Internal interface was a feature developed for advanced users. Basically every attribute of a class that is decorated by
@conpot_protocol decorator can be accessed. This can be very powerful in case we want to emulate a system-wide
phenomenon. Like for example we want to emulate a system restart (kamstrup management protocol ;-) we can set a
counter and freeze access to all protocols.
Some other uses include timing the last attack. This can be done by tracking the handle method for every protocol.
Again can be easily done, without even touching the protocol implementation :-)
For more details refer to PR related to this issue: https://github.com/mushorg/conpot/pull/375
2.4 Protocols
2.6 Templates
Developmental guidelines
Indentation
Style
Copyright
• If you are adding a file/code which is produced only by you, feel free to add the license information and a notice
who holds the copyrights.
For contributors
0, You can do this step when you are on master, or feature_branch, anytime there are new commits in original project.
Just one-time add of remote:
9
Conpot Documentation, Release 0.6.0
And rebase:
git fetch mushorg
git rebase mushorg/master feature_branch
and save.
(make some changes in files)
git add file1 file2
git rebase --continue
Warning: Do not use ‘git commit’ in rebase if you don’t know what you are doing.
4, Look at your changes, and git force push to your branch:
git push -f feature_branch
For maintainers
Comment on pull request that you added it to master, and close pull request.
This approach is usefull for majority of pull requests (1-3 commits).
If you expect conflicts (a lot of commits in feature branch with a lot of changes) you can use GitHub Merge button.
Revert will be easier too.
Conflicts should not happen, if feature branch is rebased on current master.
13
Conpot Documentation, Release 0.6.0
As soon as you have Conpot set-up it should be easy to create some traffic for testing.
API reference
Subpackages
conpot.core package
Subpackages
conpot.core.loggers package
Submodules
conpot.core.loggers.helpers module
conpot.core.loggers.helpers.json_default(obj)
conpot.core.loggers.hpfriends module
15
Conpot Documentation, Release 0.6.0
conpot.core.loggers.json_log module
conpot.core.loggers.log_worker module
conpot.core.loggers.mysql_log module
conpot.core.loggers.sqlite_log module
class conpot.core.loggers.sqlite_log.SQLiteLogger(db_path=’logs/conpot.db’)
Bases: object
log(event)
log_session(session)
select_data()
conpot.core.loggers.stix_transform module
conpot.core.loggers.syslog module
conpot.core.loggers.taxii_log module
Module contents
Submodules
conpot.core.attack_session module
conpot.core.databus module
class conpot.core.databus.Databus
Bases: object
get_shapshot()
get_value(key)
initialize(config_file)
notify_observers(key)
observe_value(key, callback)
reset()
set_value(key, value)
conpot.core.filesystem module
Implementation Note: First we would check whether the current user has the required permissions. If not,
then we check the group to which this user belongs to. Finally if the user’s group also does not meet the
perms we check for other permissions.
add_users_to_group(gid: int, uids: List[T]) → None
Add list of users to an existing group :param gid: Group id of the group. :param uids: List of registers
users that belong to this group
check_access(path=None, user=None, perms=None)
Checks whether the current user has permissions to do a specific operation. Raises FSOperationNotPer-
mitted exception in case permissions are not satisfied. Handy utility to check whether the user with uid
provided has permissions specified. Examples:
create_jail(path)
Returns chroot jail sub system for a path
format_list(basedir, listing)
Return an iterator object that yields the entries of given directory emulating the “/bin/ls -lA” UNIX com-
mand output. This is how output should appear: -rw-rw-rw- 1 owner group 7045120 Sep 02 3:47 mu-
sic.mp3 drwxrwxrwx 1 owner group 0 Aug 31 18:50 e-books -rw-rw-rw- 1 owner group 380 Sep 02 3:40
module.py
Parameters
• basedir – (str) must be protocol relative path
• listing – (list) list of files to needed for output.
get_permissions(path)
Get permissions for a particular user on a particular file/directory in ‘rwxrx—’ format
getcwd()
getfile(path, file, chunk_size=None, **options)
Copies a file from the filesystem to a file-like object.
This may be more efficient that opening and copying files manually if the filesystem supplies an optimized
method.
Arguments: path (str): Path to a resource. file (file-like): A file-like object open for writing in
binary mode.
chunk_size (int, optional): Number of bytes to read at a time, if a simple copy is used, or None to
use sensible default.
**options: Implementation specific options required to open the source file.
Note that the file object file will not be closed by this method. Take care to close it after this method
completes (ideally with a context manager).
Example:
Meta information is associated with a namespace which may be specified with the namespace parameter.
The default namespace, "standard", contains common information regarding the filesystem’s capabil-
ities. Some filesystems may provide other namespaces which expose less common or implementation
specific information. If a requested namespace is not supported by a filesystem, then an empty dictionary
will be returned.
The "standard" namespace supports the following keys:
key Description
case_insensitive True if this filesystem is case insensitive.
invalid_path_chars A string containing the characters that may not be used on this filesystem.
max_path_length Maximum number of characters permitted in a path, or None for no limit.
max_sys_path_length Maximum number of characters permitted in a sys path, or None for no limit.
network True if this filesystem requires a network.
read_only True if this filesystem is read only.
supports_rename True if this filesystem supports an os.rename operation.
Most builtin filesystems will provide all these keys, and third- party filesystems should do so whenever
possible, but a key may not be present if there is no way to know the value.
Note: Meta information is constant for the lifetime of the filesystem, and may be cached.
getmtime(path)
Return the last modified time as a number of seconds since the epoch.
groups
listdir(path)
Get a list of the resource names in a directory.
This method will return a list of the resources in a directory. A resource is a file, directory, or one of the
other types defined in ~fs.ResourceType.
Arguments: path (str): A path to a directory on the filesystem
Returns: list: list of names, relative to path.
Raises: fs.errors.DirectoryExpected: If path is not a directory. fs.errors.ResourceNotFound: If path
does not exist.
makedir(path, permissions=None, recreate=True)
Make a directory.
Arguments: path (str): Path to directory from root. permissions (~fs.permissions.Permissions, optional):
a
Permissions instance, or None to use default.
recreate (bool): Set to True to avoid raising an error if the directory already exists (defaults to
False).
be relative to FS root. :param owner_uid: The owner user UID of the directory and the sub directory.
Default is root/ :param group_gid: The group ‘group‘ to which the directory beings. Defaults to root.
:param perms: Permission UMASK
move(src_path, dst_path, overwrite=False)
Move a file from src_path to dst_path.
Arguments: src_path (str): A path on the filesystem to move. dst_path (str): A path on the filesystem
where the source
file will be written to.
Raises:
fs.errors.FileExpected: If src_path maps to a directory instead of a file.
fs.errors.DestinationExists: If dst_path exists, and overwrite is False.
fs.errors.ResourceNotFound: If a parent directory of dst_path does not exist.
norm_path(path)
open(path, mode=’r’, buffering=-1, encoding=None, newline=”, line_buffering=False, **options)
Open a file.
Arguments: path (str): A path to a file on the filesystem. mode (str): Mode to open the file object with
(defaults to r).
buffering (int): Buffering policy (-1 to use default buffering, 0 to disable buffering, 1 to select line
buffering, of any positive integer to indicate a buffer size).
encoding (str): Encoding for text files (defaults to utf-8)
errors (str, optional): What to do with unicode decode errors (see codecs module for more infor-
mation).
newline (str): Newline parameter. **options: keyword arguments for any additional information
required by the filesystem (if any).
Returns: io.IOBase: a file-like object.
Raises: fs.errors.FileExpected: If the path is not a file. fs.errors.FileExists: If the file exists, and exclusive
mode
is specified (x in the mode).
fs.errors.ResourceNotFound: If the path does not exist.
openbin(path, mode=’r’, buffering=-1, **options)
Open a file in the ConpotFS in binary mode.
opendir(path, factory=<class ’conpot.core.fs_utils.SubAbstractFS’>)
Get a filesystem object for a sub-directory.
Arguments: path (str): Path to a directory on the filesystem. factory (callable, optional): A callable that
when invoked
with an FS instance and path will return a new FS object representing the sub-directory
contents. If no factory is supplied then ~fs.subfs.SubFS will be used.
Returns: ~fs.subfs.SubFS: A filesystem representing a sub-directory.
Raises:
fs.errors.DirectoryExpected: If dst_path does not exist or is not a directory.
readlink(path)
Perform a readlink() system call. Return a string representing the path to which a symbolic link points.
:param path: (str) must be protocol relative path
register_user(name: str, uid: int) → None
Store all user related data for the file system.
remove(path)
Remove a file from the file system.
removedir(path, rf=True)
Remove a directory from the file system. :param path: directory path :param rf: remove directory recur-
sively and forcefully. This removes directory even if there is any data in it. If set to False, an exception
would be raised
root
The root directory - where the filesystem is stored
setbinfile(path, file)
Set a file to the contents of a binary file object.
This method copies bytes from an open binary file to a file on the filesystem. If the destination exists, it
will first be truncated.
Arguments: path (str): A path on the filesystem. file (io.IOBase): a file object open for reading in
binary mode.
chunk_size (int, optional): Number of bytes to read at a time, if a simple copy is used, or None to
use sensible default.
**options: Implementation specific options required to open the source file.
Note that the file object file will not be closed by this method. Take care to close it after this method
completes (ideally with a context manager).
Example:
modified (datetime, optional): The modified time, or None (the default) to use the same time as
the accessed parameter.
stat(path)
Perform a stat() system call on the given path. :param path: (str) must be protocol relative path
take_snapshot()
Take snapshot of entire filesystem. :rtype: dict
user_groups
gid: {set of uid of users.}
users
conpot.core.fs_utils module
getmtime(path)
move(src_path, dst_path, overwrite=True)
Move a file from src_path to dst_path.
Arguments: src_path (str): A path on the filesystem to move. dst_path (str): A path on the filesystem
where the source
file will be written to.
Raises:
fs.errors.FileExpected: If src_path maps to a directory instead of a file.
fs.errors.DestinationExists: If dst_path exists, and overwrite is False.
fs.errors.ResourceNotFound: If a parent directory of dst_path does not exist.
readlink(path)
remove(path)
Remove a file from the filesystem.
Arguments: path (str): Path of the file to remove.
Raises: fs.errors.FileExpected: If the path is a directory. fs.errors.ResourceNotFound: If the path does
not exist.
removedir(path, rf=False)
Remove a directory from the filesystem.
Arguments: path (str): Path of the directory to remove.
Raises:
fs.errors.DirectoryNotEmpty: If the directory is not empty ( see ~fs.base.FS.removetree for a
way to remove the directory contents.).
fs.errors.DirectoryExpected: If the path does not refer to a directory.
fs.errors.ResourceNotFound: If no resource exists at the given path.
fs.errors.RemoveRootError: If an attempt is made to remove the root directory (i.e. '/')
root
stat(path)
conpot.core.fs_utils.copy_files(source, dest, buffer_size=1048576)
Copy a file from source to dest. source and dest must be file-like objects.
conpot.core.internal_interface module
class conpot.core.internal_interface.DotDict
Bases: dict
class conpot.core.internal_interface.Interface
Bases: object
Conpot’s internal interface
enabled
class conpot.core.internal_interface.Network
Bases: object
conpot.core.protocol_wrapper module
conpot.core.protocol_wrapper.conpot_protocol(cls)
conpot.core.session_manager module
class conpot.core.session_manager.SessionManager
Bases: object
get_session(protocol, source_ip, source_port, destination_ip=None, destination_port=None)
get_session_count(protocol=None)
initialize_databus(config_file)
purge_sessions()
conpot.core.virtual_fs module
class conpot.core.virtual_fs.VirtualFS(data_fs_path=None)
Bases: object
Conpot’s virtual file system. Based on Pyfilesystem2, it would allow us to have arbitrary file uploads while sand
boxing them for later analysis. This is how it should look like:
[_conpot_vfs]
Parameters data_fs_path – Path for storing data_fs. A dictionary with attribute name _proto-
col_vfs stores all the
close(force=False)
Close the filesystem properly. Better and more graceful than __del__ :param force: Force close. This
would close the AbstractFS instance - without close closing data_fs File Systems
initialize_vfs(fs_path=None, data_fs_path=None, temp_dir=None)
Module contents
conpot.emulators package
Subpackages
conpot.emulators.misc package
Submodules
conpot.emulators.misc.random module
class conpot.emulators.misc.random.Random16bitRegister
Bases: object
get_value()
class conpot.emulators.misc.random.Random8BitRegisters
Bases: object
get_value()
conpot.emulators.misc.uptime module
class conpot.emulators.misc.uptime.Uptime(started=-1)
Bases: object
get_value()
Module contents
conpot.emulators.sensors package
Module contents
Submodules
conpot.emulators.proxy module
Module contents
conpot.protocols package
Subpackages
conpot.protocols.IEC104 package
Submodules
conpot.protocols.IEC104.DeviceDataController module
class conpot.protocols.IEC104.DeviceDataController.DeviceDataController(template)
Bases: object
check_registers()
get_object_from_reg(obj_addr)
get_registers()
set_object_val(obj_addr, val)
conpot.protocols.IEC104.DeviceDataController.addr_in_hex(address)
conpot.protocols.IEC104.DeviceDataController.hex_in_addr(hex_addr)
conpot.protocols.IEC104.DeviceDataController.inro_response(sorted_reg,
asdu_type)
conpot.protocols.IEC104.IEC104 module
conpot.protocols.IEC104.IEC104_server module
conpot.protocols.IEC104.errors module
exception conpot.protocols.IEC104.errors.FrameError(*args)
Bases: Exception
This error is raised if the IEC104 frame is wrong or ain’t a IEC104 packet at all
exception conpot.protocols.IEC104.errors.InvalidFieldValueException(*args)
Bases: ValueError
This error is raised if a field value is not allowed
exception conpot.protocols.IEC104.errors.Timeout_t1
Bases: BaseException
Base class for exceptions in this module.
exception conpot.protocols.IEC104.errors.Timeout_t1_2nd
Bases: BaseException
Base class for exceptions in this module.
exception conpot.protocols.IEC104.errors.Timeout_t3
Bases: BaseException
Base class for exceptions in this module.
conpot.protocols.IEC104.frames module
post_build(p, pay)
DEV: called right after the current layer is build.
Parameters
• pkt (str) – the current packet (build by self_buil function)
• pay (str) – the packet payload (build by do_build_payload function)
Returns a string of the packet with the payload
class conpot.protocols.IEC104.frames.s_frame(_pkt=b”, post_transform=None, _inter-
nal=0, _underlayer=None, **fields)
Bases: scapy.packet.Packet
aliastypes = [<class 'conpot.protocols.IEC104.frames.s_frame'>, <class 'scapy.packet.Pa
fields_desc = [<Field (s_frame).Start>, <Field (s_frame).LenAPDU>, <Field (s_frame).Typ
class conpot.protocols.IEC104.frames.u_frame(_pkt=b”, post_transform=None, _inter-
nal=0, _underlayer=None, **fields)
Bases: scapy.packet.Packet
aliastypes = [<class 'conpot.protocols.IEC104.frames.u_frame'>, <class 'scapy.packet.Pa
fields_desc = [<Field (u_frame).Start>, <Field (u_frame).LenAPDU>, <Field (u_frame).Typ
conpot.protocols.IEC104.i_frames_check module
conpot.protocols.IEC104.i_frames_check.check_asdu_1(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_100(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_11(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_12(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_13(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_14(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_2(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_3(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_30(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_31(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_35(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_36(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_4(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_45(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_46(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_47(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_48(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_49(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_50(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_asdu_51(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_command(frame, direction)
conpot.protocols.IEC104.i_frames_check.check_information_with_time(frame, di-
rection)
conpot.protocols.IEC104.i_frames_check.check_information_without_time(frame,
direc-
tion)
conpot.protocols.IEC104.register module
Module contents
conpot.protocols.bacnet package
Submodules
conpot.protocols.bacnet.bacnet_app module
conpot.protocols.bacnet.bacnet_server module
Module contents
conpot.protocols.enip package
Submodules
conpot.protocols.enip.enip_server module
class conpot.protocols.enip.enip_server.EnipConfig(template)
Bases: object
Configurations parsed from template
class Tag(name, type, size, value, addr=None)
Bases: object
Represents device tag setting parsed from template
parse_template()
Module contents
conpot.protocols.ftp package
Submodules
conpot.protocols.ftp.ftp_base_handler module
class conpot.protocols.ftp.ftp_base_handler.FTPHandlerBase(request,
client_address,
server)
Bases: socketserver.BaseRequestHandler
Base class for a full duplex connection
authentication_ok(user_pass)
Verifies authentication and sets the username of the currently connected client. Returns True or False
Checks user names and passwords pairs. Sets the current user and uid.
config = None
class false_request
Bases: object
finish()
End this client session
ftp_path(path)
Clean and sanitize ftp paths relative fs instance it is hosted in.
handle()
Actual FTP service to which the user has connected.
handle_cmd_channel()
Read data from the socket and add it to the _command_channel_input_q for processing
handle_data_channel()
host = None
port = None
process_ftp_command()
push_data(data)
Handy utility to push some data using the data channel
recv_file(_file, _file_pos=0, cmd=’STOR’)
Receive a file - to be used with STOR, REST and APPE. A copy would be made on the _data_fs. :param
_file: File Name to the file that would be written to fs. :param _file_pos: Seek file to position before
receiving. :param cmd: Command used for receiving file.
respond(response)
Send processed command/data as reply to the client
send_file(file_name)
Handy utility to send a file using the data channel
setup()
Connect incoming connection to a FTP session
start_data_channel(send_recv=’send’)
Starts the data channel. To be called from the command process greenlet. :param send_recv: Whether
the event is a send event or recv event. When set to ‘send’ data channel’s socket writes data in the output
queues else when set to ‘read’ data channel’s socket reads data into the input queue. :type send_recv: str
stop_data_channel(abort=False, purge=False, reason=None)
classmethod stream_server_handle(sock, address)
Translate this class for use in a StreamServer
class conpot.protocols.ftp.ftp_base_handler.FTPMetrics
Bases: object
Simple class to track total bytes transferred, login attempts etc.
get_elapsed_time()
get_metrics(user_name, uid, failed_login_attempts, max_login_attempts, client_address)
timeout
conpot.protocols.ftp.ftp_handler module
do_CDUP(arg)
Change into the parent directory. On success return the new directory, else None.
do_CWD(path)
Change the current working directory.
do_DELE(path)
Delete the specified file.
do_HELP(arg)
Return help text to the client.
do_LIST(path)
do_MDTM(path)
Return last modification time of file to the client as an ISO 3307 style timestamp (YYYYMMDDHH-
MMSS) as defined in RFC-3659. On success return the file path, else None.
do_MKD(path)
Create the specified directory. On success return the directory path, else None.
do_MODE(line)
Set data transfer mode (“S” is the only one supported (noop)).
do_NLST(path)
Return a list of files in the specified directory in a compact form to the client.
do_NOOP(arg)
Do nothing. No params required. No auth required and no permissions required.
do_PASS(arg)
do_PASV(arg)
Starts a Passive Data Channel using IPv4. We don’t actually need to start the full duplex connection here.
Just need to figure the host ip and the port. The DTP connection would start in each command.
do_PORT(arg)
Starts an active data channel by using IPv4. We don’t actually need to start the full duplex connection here.
Just need to figure the host ip and the port. The DTP connection would start in each command.
do_PWD(arg)
Return the name of the current working directory to the client.
do_QUIT(arg)
do_REIN(arg)
Reinitialize user’s current session.
do_REST(line)
Restart a file transfer from a previous mark.
do_RETR(arg)
Fetch and send a file. :param arg: Filename that is to be retrieved
do_RMD(path)
Remove the specified directory. On success return the directory path, else None.
do_RNFR(path)
Rename the specified (only the source name is specified here, see RNTO command)
do_RNTO(dst_path)
Rename file (destination name only, source is specified with RNFR).
do_SITE_CHMOD(path, mode)
Change file mode. On success return a (file_path, mode) tuple.
do_SITE_HELP(line)
Return help text to the client for a given SITE command.
do_SIZE(path)
Return size of file in a format suitable for using with RESTart as defined in RFC-3659.
do_STAT(path)
If invoked without parameters, returns general status information about the FTP server process. If a param-
eter is given, acts like the LIST command, except that data is sent over the command channel (no PORT
or PASV command is required).
do_STOR(file, mode=’w’)
Store a file (transfer from the client to the server).
do_STOU(line)
Store a file on the server with a unique name.
do_STRU(line)
Set file structure (“F” is the only one supported (noop)).
do_SYST(arg)
Return system type (always returns UNIX type: L8).
do_TYPE(line)
Set current type data type to binary/ascii
do_USER(arg)
USER FTP command. If the user is already logged in, return 530 else 331 for the PASS command :param
arg: username specified by the client/attacker
do_XCUP(arg)
Change into the parent directory. On success return the new directory, else None.
do_XCWD(path)
Change the current working directory.
do_XMKD(path)
Create the specified directory. On success return the directory path, else None.
do_XPWD(arg)
Return the name of the current working directory to the client.
do_XRMD(path)
Remove the specified directory. On success return the directory path, else None.
process_ftp_command()
Handle an incoming handle request - pick and item from the input_q, reads the contents of the message
and dispatch contents to the appropriate do_* method. :param: (bytes) line - incoming request :return:
(bytes) response - reply in respect to the request
conpot.protocols.ftp.ftp_server module
class conpot.protocols.ftp.ftp_server.FTPConfig(template)
Bases: object
get_gid(uid)
Get group id of a user from it’s uid
get_uid(user_name)
Get uid from a username
conpot.protocols.ftp.ftp_utils module
exception conpot.protocols.ftp.ftp_utils.FTPException
Bases: Exception
General FTP related exceptions.
exception conpot.protocols.ftp.ftp_utils.FTPMaxLoginAttemptsExceeded
Bases: conpot.protocols.ftp.ftp_utils.FTPException
exception conpot.protocols.ftp.ftp_utils.FTPPrivilegeException
Bases: conpot.protocols.ftp.ftp_utils.FTPException
conpot.protocols.ftp.ftp_utils.get_data_from_iter(iterator)
This utility function generates data from iterators and returns them as string
Module contents
conpot.protocols.guardian_ast package
Submodules
conpot.protocols.guardian_ast.guardian_ast_server module
Service support based on gaspot.py [https://github.com/sjhilt/GasPot] Original authors: Kyle Wilhoit and Stephen Hilt
Module contents
conpot.protocols.http package
Submodules
conpot.protocols.http.command_responder module
do_OPTIONS()
Handle OPTIONS requests.
do_POST()
Handle POST requests
do_TRACE()
Handle TRACE requests.
get_entity_headers(rqfilename, headers, configuration)
get_entity_trailers(rqfilename, configuration)
get_status_headers(status, headers, configuration)
get_status_trailers(status, configuration)
get_trigger_appendix(rqfilename, rqparams, configuration)
load_entity(requeststring, headers, configuration, docpath)
Retrieves status, headers and payload for a given entity, that can be stored either local or on a remote
system
load_status(status, requeststring, requestheaders, headers, configuration, docpath, method=’GET’,
body=None)
Retrieves headers and payload for a given status code. Certain status codes can be configured to forward
the request to a remote system. If not available, generate a minimal response
log(version, request_type, addr, request, response=None)
send_chunked(chunks, payload, trailers)
Send payload via chunked transfer encoding to the client, followed by eventual trailers.
send_error(code, message=None)
Send and log an error reply. This method is overloaded to make use of load_status() to allow handling of
“Unsupported Method” errors.
send_response(code, message=None)
Send the response header and log the response code. This function is overloaded to change the behaviour
when loggers and sending default headers.
substitute_template_fields(payload)
class conpot.protocols.http.command_responder.SubHTTPServer(server_address, Re-
questHandlerClass,
template, docpath)
Bases: conpot.protocols.http.command_responder.ThreadedHTTPServer
this class is necessary to allow passing custom request handler into the RequestHandlerClass
config_sanitize_tarpit(value)
daemon_threads = True
do_tarpit(delay)
class conpot.protocols.http.command_responder.TemplateParser(data)
Bases: html.parser.HTMLParser
handle_startendtag(tag, attrs)
handles template tags provided in XHTML notation.
Expected format: <condata source=”(engine)” key=”(descriptor)” /> Example: <condata
source=”databus” key=”SystemDescription” />
at the moment, the parser is space- and case-sensitive(!), this could be improved by using REGEX for
replacing the template tags with actual values.
class conpot.protocols.http.command_responder.ThreadedHTTPServer(server_address,
Re-
questHandler-
Class,
bind_and_activate=True)
Bases: socketserver.ThreadingMixIn, http.server.HTTPServer
Handle requests in a separate thread.
conpot.protocols.http.web_server module
Module contents
conpot.protocols.ipmi package
Submodules
conpot.protocols.ipmi.fakebmc module
conpot.protocols.ipmi.fakesession module
• needskeepalive – If the payload is expected not to count as ‘active’ by the BMC, set
this to True to avoid Session considering the job done because of this payload. Notably,
0-length SOL packets are prone to confusion.
• timeout – Specify a custom timeout for long-running request
conpot.protocols.ipmi.ipmi_server module
Module contents
conpot.protocols.kamstrup package
Subpackages
conpot.protocols.kamstrup.management_protocol package
Submodules
conpot.protocols.kamstrup.management_protocol.command_responder module
class conpot.protocols.kamstrup.management_protocol.command_responder.CommandResponder
Bases: object
COMMAND_NOT_FOUND = "\r\n? Command not found.\r\nSend 'H' for help.\r\n"
respond(request)
conpot.protocols.kamstrup.management_protocol.commands module
class conpot.protocols.kamstrup.management_protocol.commands.AccessControlCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = '\r\n{access_control_status} \r\n [1] {access_control_1}\r\n [2] {access_c
HELP_MESSAGE = "!AC: Access control.\r\n Used for simple IP address firewall filtering.
run(params=None)
set_access_ip(number, ip_string)
class conpot.protocols.kamstrup.management_protocol.commands.AlarmServerCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = '\r\nAlarm server: {alarm_server_output} '
HELP_MESSAGE = '!AS: Alarm Server.\r\n Used to set IP and port of server to handle alar
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
Bases: object
CMD_OUTPUT = ''
HELP_MESSAGE = ''
INVALID_PARAMETER = "\r\n? Invalid parameter.\r\nTry 'H cmd' for specific help.\r\n Ie:
help()
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.GetConfigCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = 'Device Name : {device_name}\r\nUse DHCP : {use_dhcp}\r\nIP addr. : {ip_
HELP_MESSAGE = '!GC: Get Config.\r\n Returns the module configuration.\r\n'
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.HelpCommand(commands)
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = '=========================================================================
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.RequestConnectCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
HELP_MESSAGE = '!RC: Request connect\r\n Makes the module crate a ChA or ChB socket to
run(params)
class conpot.protocols.kamstrup.management_protocol.commands.RequestRestartCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
HELP_MESSAGE = '!RR: Request restart (*1).\r\n'
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SetConfigCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = '\r\nService server hostname.: {}\r\n'
HELP_MESSAGE = '!SC: Set Config (*1).\r\n Configures the module.\r\n Format: !SC DHCP
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SetDeviceNameCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
HELP_MESSAGE = '!SD: Set device name (*1).\r\n Option for individual naming of the modu
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SetIPCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = '\r\nUse DHCP : {use_dhcp}\r\n\r\nIP addr. : {ip_addr}\r\n'
HELP_MESSAGE = "!SI: Set IP (enter either valid IP or 0 to force DHCP)(*1).\r\n Used fo
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SetKap1Command
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = '\r\nService server addr.: {kap_a_output}\r\n'
HELP_MESSAGE = '!SA: Set KAP Server IP and port (*1).\r\n Used for setting the IP of th
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SetKap2Command
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT_DOUBLE = '\r\n{}\r\nService server addr.: {}:{} (from DNS)\r\nand fallback
CMD_OUTPUT_SINGLE = '\r\n{}\r\nService server addr.: {}:{} (from DNS)\r\nNo redundancy
HELP_MESSAGE = '!SB: Set 2nd KAP Server IP and port.\r\n Used for redundancy with two K
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SetLookupCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
HELP_MESSAGE = '!SH: Set KAP Server lookup (DNS or DHCP)\r\n Used for setting the DNS n
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SetNameserverCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
HELP_MESSAGE = '!SN: Set IP for DNS Name servers to use.\r\n Format: !SN DNS1 DNS2 DNS
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SetPortsCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = '\r\n{}\r\nKAP on server: {}\r\nChA on module: {}\r\nChB on module: {}\
HELP_MESSAGE = '!SP: Set IP Ports\r\n Format: !SP [KAP CHA CHB CFG]\r\n Example: !SP
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SetSerialCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
HELP_MESSAGE = "!SS: Set Serial Settings.\r\n Used for setting the serial interface for
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SetWatchdogCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = 'Software watchdog: {0}\r\nKAP Missing warning: {1}\r\nKeep alive timer
HELP_MESSAGE = '!SK: Set KAP watchdog timeout(WDT).\r\n Used for setting KeepAlive watc
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.SoftwareVersionCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = '\r\nSoftware Version: {software_version}\r\n'
HELP_MESSAGE = '!GV: Software version.\r\n Returns the software revision of the module.
run(params=None)
class conpot.protocols.kamstrup.management_protocol.commands.WinkModuleCommand
Bases: conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
CMD_OUTPUT = '\r\n\r\nOK\r\n'
HELP_MESSAGE = '!WM: Wink module.\r\n Causes the WINK LED on the module to blink for ph
conpot.protocols.kamstrup.management_protocol.commands.parse_ip(ip_string)
conpot.protocols.kamstrup.management_protocol.commands.parse_port(port_string)
conpot.protocols.kamstrup.management_protocol.commands.try_parse_uint(uint_string,
min_value=0,
max_value=254)
conpot.protocols.kamstrup.management_protocol.kamstrup_management_server module
Module contents
conpot.protocols.kamstrup.meter_protocol package
Submodules
conpot.protocols.kamstrup.meter_protocol.command_responder module
class conpot.protocols.kamstrup.meter_protocol.command_responder.CommandResponder(template)
Bases: object
respond(request)
conpot.protocols.kamstrup.meter_protocol.decoder_382 module
class conpot.protocols.kamstrup.meter_protocol.decoder_382.Decoder382
Bases: object
REGISTERS = {1: 'Energy in', 2: 'Energy out', 13: 'Energy in hi-res', 14: 'Energy o
decode_in(data)
decode_out(data)
classmethod valid_crc(message)
conpot.protocols.kamstrup.meter_protocol.kamstrup_constants module
class conpot.protocols.kamstrup.meter_protocol.kamstrup_constants.MeterTypes
Bases: enum.Enum
An enumeration.
K162M = (2,)
K351C = (3,)
K382M = (1,)
OMNIA = (4,)
Unknown = (0,)
conpot.protocols.kamstrup.meter_protocol.kamstrup_server module
conpot.protocols.kamstrup.meter_protocol.messages module
class conpot.protocols.kamstrup.meter_protocol.messages.KamstrupProtocolBase(communication_add
Bases: object
class conpot.protocols.kamstrup.meter_protocol.messages.KamstrupRequestBase(communication_addre
com-
mand,
mes-
sage_bytes)
Bases: conpot.protocols.kamstrup.meter_protocol.messages.
KamstrupProtocolBase
class conpot.protocols.kamstrup.meter_protocol.messages.KamstrupRequestGetRegisters(communic
com-
mand_byt
mes-
sage_byte
Bases: conpot.protocols.kamstrup.meter_protocol.messages.KamstrupRequestBase
command_byte = 16
class conpot.protocols.kamstrup.meter_protocol.messages.KamstrupRequestUnknown(communication_a
com-
mand_byte,
mes-
sage_bytes)
Bases: conpot.protocols.kamstrup.meter_protocol.messages.KamstrupRequestBase
class conpot.protocols.kamstrup.meter_protocol.messages.KamstrupResponseBase(communication_add
Bases: conpot.protocols.kamstrup.meter_protocol.messages.
KamstrupProtocolBase
classmethod escape(message)
serialize(message)
class conpot.protocols.kamstrup.meter_protocol.messages.KamstrupResponseRegister(communicatio
Bases: conpot.protocols.kamstrup.meter_protocol.messages.
KamstrupResponseBase
add_register(register)
serialize(message=None)
conpot.protocols.kamstrup.meter_protocol.register module
class conpot.protocols.kamstrup.meter_protocol.register.KamstrupRegister(name,
units,
length,
un-
known,
databus_key)
Bases: object
conpot.protocols.kamstrup.meter_protocol.request_parser module
class conpot.protocols.kamstrup.meter_protocol.request_parser.KamstrupRequestParser
Bases: object
add_byte(byte)
get_request()
classmethod valid_crc(message)
Module contents
Submodules
conpot.protocols.kamstrup.usage_simulator module
class conpot.protocols.kamstrup.usage_simulator.UsageSimulator(*args)
Bases: object
initialize()
stop()
usage_counter()
Module contents
conpot.protocols.misc package
Submodules
conpot.protocols.misc.ascii_decoder module
class conpot.protocols.misc.ascii_decoder.AsciiDecoder
Bases: conpot.emulators.proxy.ProxyDecoder
decode_in(data)
Decode data that goes into the proxied device
decode_out(data)
Decode data that goes out from the proxied device to the connected client(attacker).
Module contents
conpot.protocols.modbus package
Submodules
conpot.protocols.modbus.modbus_block_databus_mediator module
class conpot.protocols.modbus.modbus_block_databus_mediator.ModbusBlockDatabusMediator(datab
start-
ing_a
Bases: object
This class represents the values for a range of addresses
is_in(starting_address, size)
Returns true if a block with the given address and size would overlap this block
conpot.protocols.modbus.modbus_server module
conpot.protocols.modbus.slave module
conpot.protocols.modbus.slave_db module
class conpot.protocols.modbus.slave_db.SlaveBase(template)
Bases: modbus_tk.modbus.Databank
Database keeping track of the slaves.
add_slave(slave_id, unsigned=True, memory=None)
Add a new slave with the given id
handle_request(query, request, mode)
Handles a request. Return value is a tuple where element 0 is the response object and element 1 is a
dictionary of items to log.
Module contents
conpot.protocols.s7comm package
Submodules
conpot.protocols.s7comm.cotp module
conpot.protocols.s7comm.exceptions module
conpot.protocols.s7comm.s7 module
request_not_implemented()
request_ssl_17(data_ssl_index)
request_ssl_28(data_ssl_index)
ssl_lists = {}
conpot.protocols.s7comm.s7_server module
conpot.protocols.s7comm.s7_server.cleanse_byte_string(packet)
conpot.protocols.s7comm.tpkt module
Module contents
conpot.protocols.snmp package
Submodules
conpot.protocols.snmp.build_pysnmp_mib_wrapper module
conpot.protocols.snmp.build_pysnmp_mib_wrapper.compile_mib(mib_name, out-
put_dir)
Compiles the given mib_name if it is found in the internal MIB file map. If the MIB depends on other MIBs,
these will get compiled automatically. :param mib_name: Name of mib to compile (string). :param output_dir:
Output directory (string).
conpot.protocols.snmp.build_pysnmp_mib_wrapper.find_mibs(raw_mibs_dirs, recur-
sive=True)
Scans for MIB files and populates an internal MIB->path mapping. :param raw_mibs_dirs: Directories to search
for MIB files (list of strings). :param recursive: If True raw_mibs_dirs will be scanned recursively. :return: A
list of found MIB names (list of strings).
conpot.protocols.snmp.build_pysnmp_mib_wrapper.generate_dependencies(data,
mib_name)
Parses a MIB for dependencies and populates an internal dependency map. :param data: A string representing
an entire MIB file (string). :param mib_name: Name of the MIB (string).
conpot.protocols.snmp.build_pysnmp_mib_wrapper.mib2pysnmp(mib_file, output_dir)
The ‘build-pysnmp-mib’ script we previously used is no longer available Latest pysmi has the ability to generate
a .py file from .mib automatically
Parameters
• mib_file – path to the .mib file we want to compile
• output_dir – path to the output directory
Returns True if we successfully compile the .mib to a .py
conpot.protocols.snmp.command_responder module
conpot.protocols.snmp.conpot_cmdrsp module
class conpot.protocols.snmp.conpot_cmdrsp.c_BulkCommandResponder(snmpEngine,
snmpContext,
databus_mediator,
host, port)
Bases: pysnmp.entity.rfc3413.cmdrsp.BulkCommandResponder, conpot.protocols.
snmp.conpot_cmdrsp.conpot_extension
handleMgmtOperation(snmpEngine, stateReference, contextName, PDU, acInfo)
class conpot.protocols.snmp.conpot_cmdrsp.c_GetCommandResponder(snmpEngine,
snmpContext,
databus_mediator,
host, port)
Bases: pysnmp.entity.rfc3413.cmdrsp.GetCommandResponder, conpot.protocols.
snmp.conpot_cmdrsp.conpot_extension
handleMgmtOperation(snmpEngine, stateReference, contextName, PDU, acInfo)
class conpot.protocols.snmp.conpot_cmdrsp.c_NextCommandResponder(snmpEngine,
snmpContext,
databus_mediator,
host, port)
Bases: pysnmp.entity.rfc3413.cmdrsp.NextCommandResponder, conpot.protocols.
snmp.conpot_cmdrsp.conpot_extension
handleMgmtOperation(snmpEngine, stateReference, contextName, PDU, acInfo)
class conpot.protocols.snmp.conpot_cmdrsp.c_SetCommandResponder(snmpEngine,
snmpContext,
databus_mediator,
host, port)
Bases: pysnmp.entity.rfc3413.cmdrsp.SetCommandResponder, conpot.protocols.
snmp.conpot_cmdrsp.conpot_extension
handleMgmtOperation(snmpEngine, stateReference, contextName, PDU, acInfo)
class conpot.protocols.snmp.conpot_cmdrsp.conpot_extension
Bases: object
check_evasive(state, threshold, addr, cmd)
do_tarpit(delay)
log(version, msg_type, addr, req_varBinds, res_varBinds=None, sock=None)
conpot.protocols.snmp.databus_mediator module
class conpot.protocols.snmp.databus_mediator.DatabusMediator(oid_mappings)
Bases: object
get_response(reference_class, OID)
set_value(OID, value)
update_evasion_table(client_ip)
updates dynamic evasion table
conpot.protocols.snmp.snmp_server module
Module contents
conpot.protocols.tftp package
Submodules
conpot.protocols.tftp.tftp_handler module
class conpot.protocols.tftp.tftp_handler.TFTPServerState(context)
Bases: conpot.protocols.tftp.tftp_handler.TFTPState
The base class for server states.
data_fs = None
full_path = None
handle(pkt, raddress, rport)
An abstract method for handling a packet. It is expected to return a TftpState object, either itself or a new
state.
serverInitial(pkt, raddress, rport)
vfs = None
class conpot.protocols.tftp.tftp_handler.TFTPState(context)
Bases: tftpy.TftpStates.TftpState
handle(pkt, raddress, rport)
An abstract method for handling a packet. It is expected to return a TftpState object, either itself or a new
state.
class conpot.protocols.tftp.tftp_handler.TFTPStateServerRecvRRQ(context)
Bases: conpot.protocols.tftp.tftp_handler.TFTPServerState
handle(pkt, raddress, rport)
Handle an initial RRQ packet as a server.
class conpot.protocols.tftp.tftp_handler.TFTPStateServerRecvWRQ(context)
Bases: conpot.protocols.tftp.tftp_handler.TFTPServerState
This class represents the state of the TFTP server when it has just received a WRQ packet.
handle(pkt, raddress, rport)
Handle an initial WRQ packet as a server.
make_subdirs()
The purpose of this method is to, if necessary, create all of the subdirectories leading up to the file to the
written.
class conpot.protocols.tftp.tftp_handler.TFTPStateServerStart(context)
Bases: conpot.protocols.tftp.tftp_handler.TFTPState
The start state for the server. This is a transitory state since at this point we don’t know if we’re handling an
upload or a download. We will commit to one of them once we interpret the initial packet.
handle(pkt, raddress, rport)
Handle a packet we just received.
conpot.protocols.tftp.tftp_server module
Module contents
Module contents
conpot.tests package
Subpackages
conpot.tests.helpers package
Submodules
conpot.tests.helpers.s7comm_client module
conpot.tests.helpers.s7comm_client.AddOptions(parser)
conpot.tests.helpers.s7comm_client.BruteTsap(ip, port, src_tsaps=(256, 512),
dst_tsaps=(258, 512, 513))
class conpot.tests.helpers.s7comm_client.COTPConnectionPacket(dst_ref=0,
src_ref=0,
dst_tsap=0,
src_tsap=0,
tpdu_size=0)
Bases: object
COTP Connection Request or Connection Confirm packet (ISO on TCP). RFC 1006
pack()
make Connection Request Packet
unpack(packet)
parse Connection Confirm Packet (header only)
class conpot.tests.helpers.s7comm_client.COTPDataPacket(data=”)
Bases: object
COTP Data packet (ISO on TCP). RFC 1006
pack()
unpack(packet)
conpot.tests.helpers.s7comm_client.GetIdentity(ip, port, src_tsap, dst_tsap)
exception conpot.tests.helpers.s7comm_client.S7Error(code)
Bases: Exception
class conpot.tests.helpers.s7comm_client.S7Packet(_type=1, req_id=0, parameters=”,
data=”)
Bases: object
S7 packet
pack()
unpack(packet)
exception conpot.tests.helpers.s7comm_client.S7ProtocolError(message,
packet=”)
Bases: Exception
conpot.tests.helpers.s7comm_client.Scan(ip, port)
conpot.tests.helpers.s7comm_client.Split(ar, size)
split sequence into blocks of given size
conpot.tests.helpers.s7comm_client.StripUnprintable(msg)
class conpot.tests.helpers.s7comm_client.TPKTPacket(data=”)
Bases: object
TPKT packet. RFC 1006
pack()
unpack(packet)
class conpot.tests.helpers.s7comm_client.s7(ip, port, src_tsap=512, dst_tsap=513, time-
out=8)
Bases: object
Connect()
Establish ISO on TCP connection and negotiate PDU
Function(_type, group, function, data=”)
NegotiatePDU(pdu=480)
Send negotiate pdu request and receive response. Reply no matter
ReadSZL(szl_id)
Request(_type, parameters=”, data=”)
Send s7 request and receive response
plc_stop_function()
conpot.tests.helpers.snmp_client module
Module contents
Submodules
conpot.tests.test_bacnet_server module
class conpot.tests.test_bacnet_server.TestBACnetServer(methodName=’runTest’)
Bases: unittest.case.TestCase
All tests are executed in a similar way. We initiate a service request to the BACnet server and wait for re-
sponse. Instead of decoding the response, we create an expected response. We encode the expected response
and compare the two encoded data.
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_no_response_requests()
When the request has apduType not 0x01, no reply should be returned from Conpot
test_readProperty()
test_whoHas()
test_whoIs()
conpot.tests.test_base module
class conpot.tests.test_base.TestBase(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_base()
conpot.tests.test_docs module
class conpot.tests.test_docs.TestMakeDocs(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_make_docs()
conpot.tests.test_enip_server module
class conpot.tests.test_enip_server.TestENIPServer(methodName=’runTest’)
Bases: unittest.case.TestCase
attribute_operations(paths, int_type=None, **kwds)
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_list_identity_tcp()
test_list_identity_udp()
test_list_interfaces_tcp()
test_list_interfaces_udp()
test_list_services_tcp()
test_list_services_udp()
test_malformend_request_tcp()
test_malformend_request_udp()
test_read_tags()
test_write_tags()
conpot.tests.test_ext_ip_util module
class conpot.tests.test_ext_ip_util.TestExtIPUtil(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_ext_util()
test_fetch_ext_ip()
test_ip_verify()
conpot.tests.test_ftp module
class conpot.tests.test_ftp.TestFTPServer(methodName=’runTest’)
Bases: unittest.case.TestCase
All tests are executed in a similar way. We run a valid/invalid FTP request/command and check for valid
response. Testing is done by sending/receiving files in data channel related commands. Implementation Note:
There are no explicit tests for active/passive mode. These are covered in list and nlst tests
refresh_client()
Disconnect and reconnect a client
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_abor()
test_allo()
test_appe()
test_auth()
Test for user, pass and quit commands.
test_cwd()
test_dele()
test_file_rename()
test_help()
test_list()
test_max_retries()
client should raise an error when max retries are reached.
test_mdtm()
test_mkd()
test_mode()
test_nlist()
test_noop()
test_pwd()
test_rein()
test_rest()
test_retr()
Test retr or downloading a file from the server.
test_rmd()
test_site()
test_site_chmod()
test_site_help()
test_size()
test_stat()
test_stor()
test_stou()
test_stru()
test_syst()
test_type()
conpot.tests.test_guardian_ast module
class conpot.tests.test_guardian_ast.TestGuardianAST(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_I20100()
test_I20200()
test_I20300()
test_I20400()
test_I20500()
test_S60200()
test_S60201()
test_S60202()
test_S60203()
test_S60204()
test_ast_error()
conpot.tests.test_hpfriends module
class conpot.tests.test_hpfriends.Test_HPFriends(methodName=’runTest’)
Bases: unittest.case.TestCase
test_hpfriends()
Objective: Test if data can be published to hpfriends without errors.
conpot.tests.test_http_server module
class conpot.tests.test_http_server.TestHTTPServer(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_do_HEAD()
Objective: Test the web server by sending a HTTP HEAD request. Should be responded back by the valid
HTTP headers
test_do_OPTIONS()
Objective: Test the web server by sending a valid OPTIONS HTTP request
test_do_POST()
Objective: send a POST request to a invalid URI. Should get a 404 response
test_do_TRACE()
Objective: Test the web server with a trace request
test_http_backend_databus()
Objective: Test if http backend is able to retrieve data from databus
test_http_backend_tarpit()
Objective: Test if http tarpit delays responses properly
test_http_request_base()
Objective: Test if http service delivers data on request
test_http_subselect_trigger()
Objective: Test if http subselect triggers work correctly
test_not_implemented_method()
Objective: PUT HTTP method is not implemented in Conpot, should raise 501
conpot.tests.test_iec104_server module
class conpot.tests.test_iec104_server.TestIEC104Server(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_startdt()
Objective: Test if answered correctly to STARTDT act
test_testfr()
Objective: Test if answered correctly to TESTFR act
test_write_for_non_existing()
Objective: Test answer for a command to a device that doesn’t exist (Correct behaviour of the IEC104
protocol is not known exactly. Other case is test for no answer)
test_write_no_relation_for_existing()
Objective: Test answer for a correct command to a device that does exist and has no related sensor (Actu-
ator 22_19 (Type 45: Single Command) will be tested, the corresponding(!) sensor is not existent)
test_write_relation_for_existing()
Objective: Test answer for a correct command to a device that does exist and has a related sensor (Actuator
22_20 (Type 45: Single Command) will be tested, the corresponding(!) sensor 13_20 (Type 1: Single Point
Information) changes the value and the termination confirmation is returned)
test_write_wrong_type_for_existing()
Objective: Test answer for a command of wrong type to a device that does exist (Actuator 22_20 (Type
45: Single Command) will be tested, but a wrong command type (Double Commands instead of Single
Command) is sent to device)
conpot.tests.test_ipmi_server module
class conpot.tests.test_ipmi_server.TestIPMI(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_boot_device()
Objective: test boot device get and set
test_channel_get_access()
test_chassis_status()
test_misc()
test_power_state()
Objective: test power on/off/reset/cycle/shutdown
test_user_list()
conpot.tests.test_ipmi_server.run_cmd(cmd, port)
conpot.tests.test_kamstrup_decoder module
class conpot.tests.test_kamstrup_decoder.TestKamstrupDecoder(methodName=’runTest’)
Bases: unittest.case.TestCase
test_invalid_crc()
test_request_one()
conpot.tests.test_kamstrup_management_protocol module
class conpot.tests.test_kamstrup_management_protocol.TestKamstrupManagementProtocol(methodNa
Bases: unittest.case.TestCase
All tests work in similar way. We send a get command check for a valid reply. We send in set command and
expect things to change in the databus.
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_access_control_command()
test_alarm_server_command()
test_get_config_command()
test_get_software_version_command()
test_help_command()
test_request_connect_command()
test_set_config_command()
test_set_device_name_command()
test_set_ip_command()
test_set_kap1_command()
test_set_kap2_command()
test_set_lookup_command()
test_set_name_server_command()
test_set_ports_command()
test_set_serial_command()
test_set_watchdog_command()
conpot.tests.test_kamstrup_management_protocol.check_command_resp_help_message(packet_type,
help_msg_comma
packet_msg_com
kam-
strup_manageme
conpot.tests.test_kamstrup_meter_protocol module
class conpot.tests.test_kamstrup_meter_protocol.TestKamstrup(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_request_get_register()
conpot.tests.test_logger_json module
class conpot.tests.test_logger_json.TestJsonLogger(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_log_event()
conpot.tests.test_logger_mysql module
class conpot.tests.test_logger_mysql.Test_MySQLlogger(methodName=’runTest’)
Bases: unittest.case.TestCase
test_mysqllogger()
conpot.tests.test_mac_addr module
class conpot.tests.test_mac_addr.TestMacAddrUtil(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_mac()
Objective: Test if the spoofer is able to change MAC address
conpot.tests.test_modbus_server module
class conpot.tests.test_modbus_server.TestModbusServer(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_modbus_logging()
Objective: Test if modbus generates log messages as expected. Expected output is a dictionary with the
following structure: {‘timestamp’: datetime.datetime(2013, 4, 23, 18, 47, 38, 532960),
‘remote’: (‘127.0.0.1’, 60991), ‘data_type’: ‘modbus’, ‘id’: ‘01bd90d6-76f4-43cb-874f-
5c8f254367f5’, ‘data’: {‘function_code’: 1,
‘slave_id’: 1, ‘request’: ‘0100010080’, ‘response’: ‘0110ffffffffffffffffffffffffffffffff’}}
test_read_coils()
Objective: Test if we can extract the expected bits from a slave using the modbus protocol.
test_read_nonexistent_slave()
Objective: Test if the correct exception is raised when trying to read from nonexistent slave.
test_report_slave_id()
Objective: Test conpot for function code 17.
test_response_function_43_device_info()
test_write_read_coils()
Objective: Test if we can change values using the modbus protocol.
conpot.tests.test_proxy module
class conpot.tests.test_proxy.TestProxy(methodName=’runTest’)
Bases: unittest.case.TestCase
echo_server(sock, address)
test_ascii_decoder()
test_proxy()
test_proxy_with_decoder()
test_ssl_proxy()
test_ssl_proxy_with_decoder()
conpot.tests.test_pysnmp_wrapper module
class conpot.tests.test_pysnmp_wrapper.TestPySNMPWrapper(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
test_compile()
Tests that the wrapper can output mib files.
test_find()
Tests that the wrapper can find mib files.
test_wrapper_output()
Tests that the wrapper generates output that can be consumed by the command responder.
test_wrapper_processing()
Tests that the wrapper can process a valid mib file without errors.
conpot.tests.test_pysnmp_wrapper.check_content(pyfile)
conpot.tests.test_s7_server module
class conpot.tests.test_s7_server.TestS7Server(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_s7()
Objective: Test if the S7 server returns the values expected.
conpot.tests.test_snmp_server module
class conpot.tests.test_snmp_server.TestSNMPServer(methodName=’runTest’)
Bases: unittest.case.TestCase
mock_callback(sendRequestHandle, errorIndication, errorStatus, errorIndex, varBindTable, cbCtx)
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_snmp_get()
Objective: Test if we can get data via snmp_get
test_snmp_set()
Objective: Test if we can set data via snmp_set
conpot.tests.test_taxii module
class conpot.tests.test_taxii.TestLoggers(methodName=’runTest’)
Bases: unittest.case.TestCase
test_stix_transform()
Objective: Test if our STIX xml can be validated.
test_taxii()
Objective: Test if we can transmit data to MITRE’s TAXII test server. Note: This actually also tests the
StixTransformer since the event is parsed by the transformer before transmission.
conpot.tests.test_tftp module
class conpot.tests.test_tftp.TestTFTPServer(methodName=’runTest’)
Bases: unittest.case.TestCase
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_mkdir_upload()
Testing TFTP upload files - while recursively making directories as per the TFTP path.
test_tftp_download()
test_tftp_upload()
Testing TFTP upload files.
conpot.tests.test_vfs module
test_readlink()
test_remove()
test_removedir()
test_snapshot()
test_stat()
test_utime()
class conpot.tests.test_vfs.TestSubFileSystem(methodName=’runTest’)
Bases: unittest.case.TestCase
Tests related to Conpot’s virtual sub file system. This would test fs generated folders for each and every protocol.
setUp()
Hook method for setting up the test fixture before exercising it.
tearDown()
Hook method for deconstructing the test fixture after testing it.
test_access()
test_chmod()
test_chown()
test_format_list()
test_get_cwd()
test_get_permissions()
test_listdir()
test_mkdir()
test_mkdirs()
test_open_file()
test_readlink()
test_remove()
test_removedir()
test_set_time()
Test for changing time in the file system.
test_stat()
test_utime()
Module contents
conpot.utils package
Submodules
conpot.utils.ext_ip module
conpot.utils.ext_ip.get_ext_ip(config=None, urls=None)
conpot.utils.ext_ip.get_interface_ip(destination_ip: str)
conpot.utils.mac_addr module
Module contents
Submodules
conpot.helpers module
Some python3 fixtures - helper methods for handy conversions + fix ssl
conpot.helpers.chr_py3(x)
conpot.helpers.fix_sslwrap()
conpot.helpers.number_to_bytes(x)
conpot.helpers.pack_short_int(x)
conpot.helpers.sanitize_file_name(name, host, port)
Ensure that file_name is legal. Slug the filename and store it onto the server. This would ensure that there are
no duplicates as far as writing a file is concerned. Also client addresses are noted so that one can verify which
client uploaded the file. :param name: Name of the file :param host: host/client address :param port port/client
port :type name: str
conpot.helpers.str_to_bytes(x)
conpot.helpers.unpack_short_int(x)
Module contents
c conpot.protocols.ftp.ftp_utils, 46
conpot, 74 conpot.protocols.guardian_ast, 46
conpot.core, 26 conpot.protocols.guardian_ast.guardian_ast_server,
conpot.core.attack_session, 17 46
conpot.core.databus, 17 conpot.protocols.http, 48
conpot.core.filesystem, 17 conpot.protocols.http.command_responder,
conpot.core.fs_utils, 23 46
conpot.core.internal_interface, 24 conpot.protocols.http.web_server, 48
conpot.core.loggers, 17 conpot.protocols.IEC104, 41
conpot.core.loggers.helpers, 15 conpot.protocols.IEC104.DeviceDataController,
conpot.core.loggers.hpfriends, 15 27
conpot.core.loggers.json_log, 16 conpot.protocols.IEC104.errors, 28
conpot.core.loggers.log_worker, 16 conpot.protocols.IEC104.frames, 29
conpot.core.loggers.sqlite_log, 16 conpot.protocols.IEC104.i_frames_check,
conpot.core.loggers.stix_transform, 16 40
conpot.core.loggers.syslog, 16 conpot.protocols.IEC104.IEC104, 28
conpot.core.loggers.taxii_log, 16 conpot.protocols.IEC104.IEC104_server,
conpot.core.protocol_wrapper, 25 28
conpot.core.session_manager, 25 conpot.protocols.IEC104.register, 41
conpot.core.virtual_fs, 25 conpot.protocols.ipmi, 49
conpot.emulators, 27 conpot.protocols.ipmi.fakebmc, 48
conpot.emulators.misc, 27 conpot.protocols.ipmi.fakesession, 48
conpot.emulators.misc.random, 26 conpot.protocols.ipmi.ipmi_server, 49
conpot.emulators.misc.uptime, 26 conpot.protocols.kamstrup, 54
conpot.emulators.proxy, 27 conpot.protocols.kamstrup.management_protocol,
conpot.emulators.sensors, 27 52
conpot.helpers, 74 conpot.protocols.kamstrup.management_protocol.comma
conpot.protocols, 60 49
conpot.protocols.bacnet, 42 conpot.protocols.kamstrup.management_protocol.comma
conpot.protocols.bacnet.bacnet_app, 41 49
conpot.protocols.bacnet.bacnet_server, conpot.protocols.kamstrup.management_protocol.kamst
42 52
conpot.protocols.enip, 42 conpot.protocols.kamstrup.meter_protocol,
conpot.protocols.enip.enip_server, 42 54
conpot.protocols.ftp, 46 conpot.protocols.kamstrup.meter_protocol.command_re
conpot.protocols.ftp.ftp_base_handler, 52
42 conpot.protocols.kamstrup.meter_protocol.decoder_38
conpot.protocols.ftp.ftp_handler, 43 52
conpot.protocols.ftp.ftp_server, 45 conpot.protocols.kamstrup.meter_protocol.kamstrup_c
52
75
Conpot Documentation, Release 0.6.0
conpot.protocols.kamstrup.meter_protocol.kamstrup_server,
conpot.tests.test_kamstrup_management_protocol,
53 68
conpot.protocols.kamstrup.meter_protocol.messages,
conpot.tests.test_kamstrup_meter_protocol,
53 69
conpot.tests.test_logger_json, 69
conpot.protocols.kamstrup.meter_protocol.register,
54 conpot.tests.test_logger_mysql, 69
conpot.tests.test_mac_addr, 69
conpot.protocols.kamstrup.meter_protocol.request_parser,
54 conpot.tests.test_modbus_server, 69
conpot.tests.test_proxy, 70
conpot.protocols.kamstrup.usage_simulator,
54 conpot.tests.test_pysnmp_wrapper, 70
conpot.protocols.misc, 55 conpot.tests.test_s7_server, 71
conpot.protocols.misc.ascii_decoder, 54 conpot.tests.test_snmp_server, 71
conpot.protocols.modbus, 55 conpot.tests.test_taxii, 71
conpot.tests.test_tftp, 71
conpot.protocols.modbus.modbus_block_databus_mediator,
55 conpot.tests.test_vfs, 72
conpot.protocols.modbus.modbus_server, conpot.utils, 74
55 conpot.utils.ext_ip, 74
conpot.protocols.modbus.slave, 55 conpot.utils.mac_addr, 74
conpot.protocols.modbus.slave_db, 55
conpot.protocols.s7comm, 57
conpot.protocols.s7comm.cotp, 56
conpot.protocols.s7comm.exceptions, 56
conpot.protocols.s7comm.s7, 56
conpot.protocols.s7comm.s7_server, 57
conpot.protocols.s7comm.tpkt, 57
conpot.protocols.snmp, 59
conpot.protocols.snmp.build_pysnmp_mib_wrapper,
57
conpot.protocols.snmp.command_responder,
58
conpot.protocols.snmp.conpot_cmdrsp, 58
conpot.protocols.snmp.databus_mediator,
59
conpot.protocols.snmp.snmp_server, 59
conpot.protocols.tftp, 60
conpot.protocols.tftp.tftp_handler, 59
conpot.protocols.tftp.tftp_server, 60
conpot.tests, 73
conpot.tests.helpers, 62
conpot.tests.helpers.s7comm_client, 61
conpot.tests.helpers.snmp_client, 62
conpot.tests.test_bacnet_server, 62
conpot.tests.test_base, 63
conpot.tests.test_docs, 63
conpot.tests.test_enip_server, 63
conpot.tests.test_ext_ip_util, 64
conpot.tests.test_ftp, 64
conpot.tests.test_guardian_ast, 65
conpot.tests.test_hpfriends, 66
conpot.tests.test_http_server, 66
conpot.tests.test_iec104_server, 67
conpot.tests.test_ipmi_server, 67
conpot.tests.test_kamstrup_decoder, 68
A method), 58
AbstractFS (class in conpot.core.filesystem), 17 AlarmServerCommand (class in con-
access() (conpot.core.filesystem.AbstractFS method), pot.protocols.kamstrup.management_protocol.commands),
17 50
access() (conpot.core.fs_utils.SubAbstractFS aliastypes (conpot.protocols.IEC104.frames.asdu_head
method), 23 attribute), 32
AccessControlCommand (class in con- aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_1
pot.protocols.kamstrup.management_protocol.commands), attribute), 32
49 aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_10
add_block() (conpot.protocols.modbus.slave.MBSlave attribute), 32
method), 55 aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_100
attribute), 33
add_byte() (conpot.protocols.kamstrup.meter_protocol.request_parser.KamstrupRequestParser
method), 54 aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_101
add_event() (conpot.core.attack_session.AttackSession attribute), 33
method), 17 aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_102
add_object() (con- attribute), 33
pot.protocols.bacnet.bacnet_app.BACnetApp aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_103
method), 41 attribute), 33
add_property() (con- aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_11
pot.protocols.bacnet.bacnet_app.BACnetApp attribute), 33
method), 41 aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_12
add_protocol() (conpot.core.virtual_fs.VirtualFS attribute), 33
method), 25 aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_13
add_protocol() (in module conpot.core), 26 attribute), 33
add_register() (con- aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_14
attribute), 34
pot.protocols.kamstrup.meter_protocol.messages.KamstrupResponseRegister
method), 53 aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_15
add_slave() (conpot.protocols.modbus.slave_db.SlaveBase attribute), 34
method), 55 aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_16
add_users_to_group() (con- attribute), 34
pot.core.filesystem.AbstractFS method), aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_17
18 attribute), 34
AddOptions() (in module con- aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_18
pot.tests.helpers.s7comm_client), 61 attribute), 34
addr_in_hex() (in module con- aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_19
pot.protocols.IEC104.DeviceDataController), attribute), 34
27 aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_2
addSocketTransport() (con- attribute), 34
aliastypes
pot.protocols.snmp.command_responder.CommandResponder (conpot.protocols.IEC104.frames.asdu_infobj_20
attribute), 35
77
Conpot Documentation, Release 0.6.0
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_21
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_62
attribute), 35 attribute), 39
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_3
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_63
attribute), 35 attribute), 39
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_30
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_64
attribute), 35 attribute), 39
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_31
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_7
attribute), 35 attribute), 39
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_32
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_8
attribute), 35 attribute), 39
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_33
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_9
attribute), 35 attribute), 39
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_34
aliastypes (conpot.protocols.IEC104.frames.BCR at-
attribute), 36 tribute), 29
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_35
aliastypes (conpot.protocols.IEC104.frames.BSI at-
attribute), 36 tribute), 29
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_36
aliastypes (conpot.protocols.IEC104.frames.CP16Time
attribute), 36 attribute), 29
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_37
aliastypes (conpot.protocols.IEC104.frames.CP24Time
attribute), 36 attribute), 29
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_38
aliastypes (conpot.protocols.IEC104.frames.CP56Time
attribute), 36 attribute), 30
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_39
aliastypes (conpot.protocols.IEC104.frames.DIQ at-
attribute), 36 tribute), 30
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_4
aliastypes (conpot.protocols.IEC104.frames.i_frame
attribute), 36 attribute), 39
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_40
aliastypes (conpot.protocols.IEC104.frames.IOA at-
attribute), 37 tribute), 30
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_45
aliastypes (conpot.protocols.IEC104.frames.NVA at-
attribute), 37 tribute), 30
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_46
aliastypes (conpot.protocols.IEC104.frames.OCI at-
attribute), 37 tribute), 30
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_47
aliastypes (conpot.protocols.IEC104.frames.QDP
attribute), 37 attribute), 30
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_48
aliastypes (conpot.protocols.IEC104.frames.QDS
attribute), 37 attribute), 31
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_49
aliastypes (conpot.protocols.IEC104.frames.QOS
attribute), 37 attribute), 31
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_5
aliastypes (conpot.protocols.IEC104.frames.s_frame
attribute), 37 attribute), 40
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_50
aliastypes (conpot.protocols.IEC104.frames.SCD at-
attribute), 38 tribute), 31
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_51
aliastypes (conpot.protocols.IEC104.frames.SEP at-
attribute), 38 tribute), 31
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_58
aliastypes (conpot.protocols.IEC104.frames.SIQ at-
attribute), 38 tribute), 31
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_59
aliastypes (conpot.protocols.IEC104.frames.SPE at-
attribute), 38 tribute), 32
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_6
aliastypes (conpot.protocols.IEC104.frames.SVA at-
attribute), 38 tribute), 32
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_60
aliastypes (conpot.protocols.IEC104.frames.u_frame
attribute), 38 attribute), 40
aliastypes (conpot.protocols.IEC104.frames.asdu_infobj_61
aliastypes (conpot.protocols.IEC104.frames.VTI at-
attribute), 38 tribute), 32
78 Index
Conpot Documentation, Release 0.6.0
Index 79
Conpot Documentation, Release 0.6.0
80 Index
Conpot Documentation, Release 0.6.0
18 46
chown() (conpot.core.fs_utils.SubAbstractFS method), CommandResponder (class in con-
23 pot.protocols.kamstrup.management_protocol.command_respond
chr_py3() (in module conpot.helpers), 74 49
clean() (conpot.core.filesystem.AbstractFS method), CommandResponder (class in con-
18 pot.protocols.kamstrup.meter_protocol.command_responder),
cleanse_byte_string() (in module con- 52
pot.protocols.s7comm.s7_server), 57 CommandResponder (class in con-
close() (conpot.core.virtual_fs.VirtualFS method), 25 pot.protocols.snmp.command_responder),
close_fs() (in module conpot.core), 26 58
close_server_session() (con- compile_mib() (in module con-
pot.protocols.ipmi.ipmi_server.IpmiServer pot.protocols.snmp.build_pysnmp_mib_wrapper),
method), 49 57
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.AccessControlCommand
config (conpot.protocols.ftp.ftp_base_handler.FTPHandlerBase
attribute), 49 attribute), 42
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.AlarmServerCommand
config_sanitize_tarpit() (con-
attribute), 50 pot.protocols.http.command_responder.SubHTTPServer
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.BaseCommand
method), 47
attribute), 50 Connect() (conpot.tests.helpers.s7comm_client.s7
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.GetConfigCommand
method), 62
attribute), 50 conpot (module), 74
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.HelpCommand
conpot.core (module), 26
attribute), 50 conpot.core.attack_session (module), 17
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.SetConfigCommand
conpot.core.databus (module), 17
attribute), 50 conpot.core.filesystem (module), 17
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.SetIPCommand
conpot.core.fs_utils (module), 23
attribute), 51 conpot.core.internal_interface (module),
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.SetKap1Command
24
attribute), 51 conpot.core.loggers (module), 17
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.SetPortsCommand
conpot.core.loggers.helpers (module), 15
attribute), 51 conpot.core.loggers.hpfriends (module), 15
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.SetWatchdogCommand
conpot.core.loggers.json_log (module), 16
attribute), 51 conpot.core.loggers.log_worker (module),
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.SoftwareVersionCommand
16
attribute), 52 conpot.core.loggers.sqlite_log (module),
CMD_OUTPUT (conpot.protocols.kamstrup.management_protocol.commands.WinkModuleCommand
16
attribute), 52 conpot.core.loggers.stix_transform (mod-
CMD_OUTPUT_DOUBLE (con- ule), 16
conpot.core.loggers.syslog (module), 16
pot.protocols.kamstrup.management_protocol.commands.SetKap2Command
attribute), 51 conpot.core.loggers.taxii_log (module), 16
CMD_OUTPUT_SINGLE (con- conpot.core.protocol_wrapper (module), 25
conpot.core.session_manager (module), 25
pot.protocols.kamstrup.management_protocol.commands.SetKap2Command
attribute), 51 conpot.core.virtual_fs (module), 25
cold_reset() (con- conpot.emulators (module), 27
pot.protocols.ipmi.fakebmc.FakeBmc method), conpot.emulators.misc (module), 27
48 conpot.emulators.misc.random (module), 26
command_byte (con- conpot.emulators.misc.uptime (module), 26
conpot.emulators.proxy (module), 27
pot.protocols.kamstrup.meter_protocol.messages.KamstrupRequestGetRegisters
attribute), 53 conpot.emulators.sensors (module), 27
COMMAND_NOT_FOUND (con- conpot.helpers (module), 74
conpot.protocols (module), 60
pot.protocols.kamstrup.management_protocol.command_responder.CommandResponder
attribute), 49 conpot.protocols.bacnet (module), 42
CommandResponder (class in con- conpot.protocols.bacnet.bacnet_app (mod-
pot.protocols.http.command_responder), ule), 41
Index 81
Conpot Documentation, Release 0.6.0
conpot.protocols.bacnet.bacnet_server conpot.protocols.kamstrup.meter_protocol.command_re
(module), 42 (module), 52
conpot.protocols.enip (module), 42 conpot.protocols.kamstrup.meter_protocol.decoder_38
conpot.protocols.enip.enip_server (mod- (module), 52
ule), 42 conpot.protocols.kamstrup.meter_protocol.kamstrup_c
conpot.protocols.ftp (module), 46 (module), 52
conpot.protocols.ftp.ftp_base_handler conpot.protocols.kamstrup.meter_protocol.kamstrup_s
(module), 42 (module), 53
conpot.protocols.ftp.ftp_handler (mod- conpot.protocols.kamstrup.meter_protocol.messages
ule), 43 (module), 53
conpot.protocols.ftp.ftp_server (module), conpot.protocols.kamstrup.meter_protocol.register
45 (module), 54
conpot.protocols.ftp.ftp_utils (module), conpot.protocols.kamstrup.meter_protocol.request_pa
46 (module), 54
conpot.protocols.guardian_ast (module), 46 conpot.protocols.kamstrup.usage_simulator
conpot.protocols.guardian_ast.guardian_ast_server (module), 54
(module), 46 conpot.protocols.misc (module), 55
conpot.protocols.http (module), 48 conpot.protocols.misc.ascii_decoder
conpot.protocols.http.command_responder (module), 54
(module), 46 conpot.protocols.modbus (module), 55
conpot.protocols.http.web_server (mod- conpot.protocols.modbus.modbus_block_databus_mediat
ule), 48 (module), 55
conpot.protocols.IEC104 (module), 41 conpot.protocols.modbus.modbus_server
conpot.protocols.IEC104.DeviceDataController (module), 55
(module), 27 conpot.protocols.modbus.slave (module), 55
conpot.protocols.IEC104.errors (module), conpot.protocols.modbus.slave_db (mod-
28 ule), 55
conpot.protocols.IEC104.frames (module), conpot.protocols.s7comm (module), 57
29 conpot.protocols.s7comm.cotp (module), 56
conpot.protocols.IEC104.i_frames_check conpot.protocols.s7comm.exceptions (mod-
(module), 40 ule), 56
conpot.protocols.IEC104.IEC104 (module), conpot.protocols.s7comm.s7 (module), 56
28 conpot.protocols.s7comm.s7_server (mod-
conpot.protocols.IEC104.IEC104_server ule), 57
(module), 28 conpot.protocols.s7comm.tpkt (module), 57
conpot.protocols.IEC104.register (mod- conpot.protocols.snmp (module), 59
ule), 41 conpot.protocols.snmp.build_pysnmp_mib_wrapper
conpot.protocols.ipmi (module), 49 (module), 57
conpot.protocols.ipmi.fakebmc (module), 48 conpot.protocols.snmp.command_responder
conpot.protocols.ipmi.fakesession (mod- (module), 58
ule), 48 conpot.protocols.snmp.conpot_cmdrsp
conpot.protocols.ipmi.ipmi_server (mod- (module), 58
ule), 49 conpot.protocols.snmp.databus_mediator
conpot.protocols.kamstrup (module), 54 (module), 59
conpot.protocols.snmp.snmp_server (mod-
conpot.protocols.kamstrup.management_protocol
(module), 52 ule), 59
conpot.protocols.tftp (module), 60
conpot.protocols.kamstrup.management_protocol.command_responder
(module), 49 conpot.protocols.tftp.tftp_handler (mod-
ule), 59
conpot.protocols.kamstrup.management_protocol.commands
(module), 49 conpot.protocols.tftp.tftp_server (mod-
ule), 60
conpot.protocols.kamstrup.management_protocol.kamstrup_management_server
(module), 52 conpot.tests (module), 73
conpot.protocols.kamstrup.meter_protocolconpot.tests.helpers (module), 62
(module), 54 conpot.tests.helpers.s7comm_client (mod-
82 Index
Conpot Documentation, Release 0.6.0
Index 83
Conpot Documentation, Release 0.6.0
27 do_REIN() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
DIQ (class in conpot.protocols.IEC104.frames), 30 method), 44
disconnect() (con- do_REST() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
pot.protocols.IEC104.IEC104.IEC104 method), 44
method), 28 do_RETR() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
dissect() (conpot.protocols.s7comm.cotp.COTPConnectionPacketmethod), 44
method), 56 do_RMD() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_ABOR() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 44
method), 43 do_RNFR() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_ALLO() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 44
method), 43 do_RNTO() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_APPE() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 44
method), 43 do_SITE_CHMOD() (con-
do_BYE() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel pot.protocols.ftp.ftp_handler.FTPCommandChannel
method), 43 method), 44
do_CDUP() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_SITE_HELP() (con-
method), 44 pot.protocols.ftp.ftp_handler.FTPCommandChannel
do_CWD() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel method), 45
method), 44 do_SIZE() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_DELE() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 45
method), 44 do_STAT() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_GET() (conpot.protocols.http.command_responder.HTTPServer method), 45
method), 46 do_STOR() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_HEAD() (conpot.protocols.http.command_responder.HTTPServermethod), 45
method), 46 do_STOU() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_HELP() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 45
method), 44 do_STRU() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_LIST() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 45
method), 44 do_SYST() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_MDTM() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 45
method), 44 do_tarpit() (conpot.protocols.http.command_responder.SubHTTPServe
do_MKD() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel method), 47
method), 44 do_tarpit() (conpot.protocols.snmp.conpot_cmdrsp.conpot_extension
do_MODE() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 59
method), 44 do_TRACE() (conpot.protocols.http.command_responder.HTTPServer
do_NLST() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 47
method), 44 do_TYPE() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_NOOP() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 45
method), 44 do_USER() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_OPTIONS() (con- method), 45
pot.protocols.http.command_responder.HTTPServerdo_XCUP() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
method), 46 method), 45
do_PASS() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_XCWD() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
method), 44 method), 45
do_PASV() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_XMKD() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
method), 44 method), 45
do_PORT() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
do_XPWD() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
method), 44 method), 45
do_POST() (conpot.protocols.http.command_responder.HTTPServer
do_XRMD() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
method), 47 method), 45
do_PWD() (conpot.protocols.ftp.ftp_handler.FTPCommandChannel
DotDict (class in conpot.core.internal_interface), 24
method), 44 dump() (conpot.core.attack_session.AttackSession
do_QUIT() (conpot.protocols.ftp.ftp_handler.FTPCommandChannelmethod), 17
method), 44
84 Index
Conpot Documentation, Release 0.6.0
E fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_13
echo_server() (conpot.tests.test_proxy.TestProxy attribute), 34
method), 70 fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_14
enabled (conpot.core.internal_interface.Interface at- attribute), 34
tribute), 24 fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_15
end() (conpot.protocols.tftp.tftp_handler.TFTPContextServer attribute), 34
method), 59 fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_16
EnipConfig (class in con- attribute), 34
pot.protocols.enip.enip_server), 42 fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_17
EnipConfig.Tag (class in con- attribute), 34
pot.protocols.enip.enip_server), 42 fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_18
attribute), 34
escape() (conpot.protocols.kamstrup.meter_protocol.messages.KamstrupResponseBase
class method), 53 fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_19
extract_padding() (con- attribute), 34
pot.protocols.IEC104.frames.CP16Time fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_2
method), 29 attribute), 34
extract_padding() (con- fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_20
pot.protocols.IEC104.frames.CP24Time attribute), 35
method), 29 fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_21
extract_padding() (con- attribute), 35
pot.protocols.IEC104.frames.QDP method), fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_3
30 attribute), 35
extract_padding() (con- fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_30
pot.protocols.IEC104.frames.QDS method), attribute), 35
31 fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_31
extract_padding() (con- attribute), 35
pot.protocols.IEC104.frames.SEP method), fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_32
31 attribute), 35
extract_padding() (con- fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_33
pot.protocols.IEC104.frames.SPE method), attribute), 35
32 fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_34
attribute), 36
F fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_35
FakeBmc (class in conpot.protocols.ipmi.fakebmc), 48 attribute), 36
FakeSession (class in con- fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_36
pot.protocols.ipmi.fakesession), 48 attribute), 36
fields_desc (conpot.protocols.IEC104.frames.asdu_head fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_37
attribute), 32 attribute), 36
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_1 fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_38
attribute), 32 attribute), 36
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_10fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_39
attribute), 32 attribute), 36
fields_desc
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_100 (conpot.protocols.IEC104.frames.asdu_infobj_4
attribute), 33 attribute), 36
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_40
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_101
attribute), 33 attribute), 37
fields_desc
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_102 (conpot.protocols.IEC104.frames.asdu_infobj_45
attribute), 33 attribute), 37
fields_desc
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_103 (conpot.protocols.IEC104.frames.asdu_infobj_46
attribute), 33 attribute), 37
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_11fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_47
attribute), 33 attribute), 37
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_12fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_48
attribute), 33 attribute), 37
Index 85
Conpot Documentation, Release 0.6.0
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_49
fields_desc (conpot.protocols.IEC104.frames.QOS
attribute), 37 attribute), 31
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_5
fields_desc (conpot.protocols.IEC104.frames.s_frame
attribute), 37 attribute), 40
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_50
fields_desc (conpot.protocols.IEC104.frames.SCD
attribute), 38 attribute), 31
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_51
fields_desc (conpot.protocols.IEC104.frames.SEP
attribute), 38 attribute), 31
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_58
fields_desc (conpot.protocols.IEC104.frames.SIQ
attribute), 38 attribute), 31
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_59
fields_desc (conpot.protocols.IEC104.frames.SPE
attribute), 38 attribute), 32
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_6
fields_desc (conpot.protocols.IEC104.frames.SVA
attribute), 38 attribute), 32
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_60
fields_desc (conpot.protocols.IEC104.frames.u_frame
attribute), 38 attribute), 40
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_61
fields_desc (conpot.protocols.IEC104.frames.VTI
attribute), 38 attribute), 32
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_62
file_path (conpot.protocols.tftp.tftp_handler.TFTPContextServer
attribute), 39 attribute), 59
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_63
FilesystemError, 23
attribute), 39 find_mibs() (in module con-
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_64 pot.protocols.snmp.build_pysnmp_mib_wrapper),
attribute), 39 57
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_7
finish() (conpot.protocols.ftp.ftp_base_handler.FTPHandlerBase
attribute), 39 method), 42
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_8
fix_sslwrap() (in module conpot.helpers), 74
attribute), 39 FloatField (class in con-
fields_desc (conpot.protocols.IEC104.frames.asdu_infobj_9 pot.protocols.IEC104.frames), 30
attribute), 39 format_list() (conpot.core.filesystem.AbstractFS
fields_desc (conpot.protocols.IEC104.frames.BCR method), 19
attribute), 29 format_list() (conpot.core.fs_utils.SubAbstractFS
fields_desc (conpot.protocols.IEC104.frames.BSI method), 23
attribute), 29 frame_object_with_timer (class in con-
fields_desc (conpot.protocols.IEC104.frames.CP16Time pot.protocols.IEC104.IEC104), 28
attribute), 29 FrameError, 28
fields_desc (conpot.protocols.IEC104.frames.CP24TimeFSOperationNotPermitted, 23
attribute), 30 ftp_path() (conpot.protocols.ftp.ftp_base_handler.FTPHandlerBase
fields_desc (conpot.protocols.IEC104.frames.CP56Time method), 42
attribute), 30 FTPCommandChannel (class in con-
fields_desc (conpot.protocols.IEC104.frames.DIQ pot.protocols.ftp.ftp_handler), 43
attribute), 30 FTPConfig (class in conpot.protocols.ftp.ftp_server),
fields_desc (conpot.protocols.IEC104.frames.i_frame 45
attribute), 39 FTPException, 46
fields_desc (conpot.protocols.IEC104.frames.IOA FTPHandlerBase (class in con-
attribute), 30 pot.protocols.ftp.ftp_base_handler), 42
fields_desc (conpot.protocols.IEC104.frames.NVA FTPHandlerBase.false_request (class in con-
attribute), 30 pot.protocols.ftp.ftp_base_handler), 42
fields_desc (conpot.protocols.IEC104.frames.OCI FTPMaxLoginAttemptsExceeded, 46
attribute), 30 FTPMetrics (class in con-
fields_desc (conpot.protocols.IEC104.frames.QDP pot.protocols.ftp.ftp_base_handler), 43
attribute), 31 FTPPrivilegeException, 46
fields_desc (conpot.protocols.IEC104.frames.QDS full_path (conpot.protocols.tftp.tftp_handler.TFTPServerState
attribute), 31 attribute), 60
86 Index
Conpot Documentation, Release 0.6.0
Index 87
Conpot Documentation, Release 0.6.0
88 Index
Conpot Documentation, Release 0.6.0
attribute), 43
pot.protocols.kamstrup.management_protocol.commands.BaseCommand
attribute), 50 HPFriendsLogger (class in con-
HELP_MESSAGE (con- pot.core.loggers.hpfriends), 15
pot.protocols.kamstrup.management_protocol.commands.GetConfigCommand
HTTPServer (class in con-
attribute), 50 pot.protocols.http.command_responder),
HELP_MESSAGE (con- 46
pot.protocols.kamstrup.management_protocol.commands.RequestConnectCommand
attribute), 50 I
HELP_MESSAGE (con- i2repr() (conpot.protocols.IEC104.frames.NormValueField
pot.protocols.kamstrup.management_protocol.commands.RequestRestartCommand
method), 30
attribute), 50 i_frame (class in conpot.protocols.IEC104.frames), 39
HELP_MESSAGE (con- iAm() (conpot.protocols.bacnet.bacnet_app.BACnetApp
pot.protocols.kamstrup.management_protocol.commands.SetConfigCommand
method), 41
attribute), 50 IEC104 (class in conpot.protocols.IEC104.IEC104), 28
HELP_MESSAGE (con- IEC104Register (class in con-
pot.protocols.kamstrup.management_protocol.commands.SetDeviceNameCommand
pot.protocols.IEC104.register), 41
attribute), 50 iHave() (conpot.protocols.bacnet.bacnet_app.BACnetApp
HELP_MESSAGE (con- method), 41
pot.protocols.kamstrup.management_protocol.commands.SetIPCommand
increment_sendseq() (con-
attribute), 51 pot.protocols.IEC104.IEC104.IEC104
HELP_MESSAGE (con- method), 28
pot.protocols.kamstrup.management_protocol.commands.SetKap1Command
indication() (con-
attribute), 51 pot.protocols.bacnet.bacnet_app.BACnetApp
HELP_MESSAGE (con- method), 41
pot.protocols.kamstrup.management_protocol.commands.SetKap2Command
initialize() (conpot.core.databus.Databus
attribute), 51 method), 17
HELP_MESSAGE (con- initialize() (con-
pot.protocols.kamstrup.management_protocol.commands.SetLookupCommand
pot.protocols.kamstrup.usage_simulator.UsageSimulator
attribute), 51 method), 54
HELP_MESSAGE (con- initialize_databus() (con-
pot.protocols.kamstrup.management_protocol.commands.SetNameserverCommand
pot.core.session_manager.SessionManager
attribute), 51 method), 25
HELP_MESSAGE (con- initialize_vfs() (con-
pot.protocols.kamstrup.management_protocol.commands.SetPortsCommand
pot.core.virtual_fs.VirtualFS method), 26
attribute), 51 initialize_vfs() (in module conpot.core), 26
HELP_MESSAGE (con- initiate_session() (con-
pot.protocols.kamstrup.management_protocol.commands.SetSerialCommand
pot.protocols.ipmi.ipmi_server.IpmiServer
attribute), 51 method), 49
HELP_MESSAGE (con- inro_response() (in module con-
pot.protocols.kamstrup.management_protocol.commands.SetWatchdogCommand
pot.protocols.IEC104.DeviceDataController),
attribute), 51 28
HELP_MESSAGE (con- Interface (class in conpot.core.internal_interface),
pot.protocols.kamstrup.management_protocol.commands.SoftwareVersionCommand
24
attribute), 52 INVALID_PARAMETER (con-
HELP_MESSAGE (con- pot.protocols.kamstrup.management_protocol.commands.BaseCo
pot.protocols.kamstrup.management_protocol.commands.WinkModuleCommand
attribute), 50
attribute), 52 InvalidFieldValueException, 28
HelpCommand (class in con- IOA (class in conpot.protocols.IEC104.frames), 30
pot.protocols.kamstrup.management_protocol.commands),
IpmiServer (class in con-
50 pot.protocols.ipmi.ipmi_server), 49
hex_in_addr() (in module con- is_in() (conpot.protocols.modbus.modbus_block_databus_mediator.Mod
pot.protocols.IEC104.DeviceDataController), method), 55
28
host (conpot.protocols.ftp.ftp_base_handler.FTPHandlerBase
Index 89
Conpot Documentation, Release 0.6.0
J log() (conpot.core.loggers.sqlite_log.SQLiteLogger
json_default() (in module con- method), 16
pot.core.loggers.helpers), 15 log() (conpot.core.loggers.syslog.SysLogger method),
JsonLogger (class in conpot.core.loggers.json_log), 16
16 log() (conpot.core.loggers.taxii_log.TaxiiLogger
method), 16
K log() (conpot.protocols.http.command_responder.HTTPServer
method), 47
K162M (conpot.protocols.kamstrup.meter_protocol.kamstrup_constants.MeterTypes
attribute), 53 log() (conpot.protocols.snmp.conpot_cmdrsp.conpot_extension
method), 59
K351C (conpot.protocols.kamstrup.meter_protocol.kamstrup_constants.MeterTypes
attribute), 53 log_session() (con-
pot.core.loggers.json_log.JsonLogger
K382M (conpot.protocols.kamstrup.meter_protocol.kamstrup_constants.MeterTypes method),
attribute), 53 16
KamstrupProtocolBase (class in con- log_session() (con-
pot.protocols.kamstrup.meter_protocol.messages), pot.core.loggers.sqlite_log.SQLiteLogger
53 method), 16
KamstrupRegister (class in con- LogWorker (class in conpot.core.loggers.log_worker),
pot.protocols.kamstrup.meter_protocol.register), 16
54
KamstrupRequestBase (class in con-
M
pot.protocols.kamstrup.meter_protocol.messages),make_subdirs() (con-
53 pot.protocols.tftp.tftp_handler.TFTPStateServerRecvWRQ
KamstrupRequestGetRegisters (class in con- method), 60
pot.protocols.kamstrup.meter_protocol.messages),makedir() (conpot.core.filesystem.AbstractFS
53 method), 20
KamstrupRequestParser (class in con- MBSlave (class in conpot.protocols.modbus.slave), 55
MeterTypes
pot.protocols.kamstrup.meter_protocol.request_parser), (class in con-
54 pot.protocols.kamstrup.meter_protocol.kamstrup_constants),
KamstrupRequestUnknown (class in con- 52
pot.protocols.kamstrup.meter_protocol.messages),mib2pysnmp() (in module con-
53 pot.protocols.snmp.build_pysnmp_mib_wrapper),
KamstrupResponseBase (class in con- 57
pot.protocols.kamstrup.meter_protocol.messages),mock_callback() (con-
53 pot.tests.test_snmp_server.TestSNMPServer
KamstrupResponseRegister (class in con- method), 71
pot.protocols.kamstrup.meter_protocol.messages),ModbusBlockDatabusMediator (class in con-
53 pot.protocols.modbus.modbus_block_databus_mediator),
55
L mount_fs() (conpot.core.filesystem.AbstractFS
LESignedShortField (class in con- method), 20
pot.protocols.IEC104.frames), 30 move() (conpot.core.filesystem.AbstractFS method), 21
listdir() (conpot.core.filesystem.AbstractFS move() (conpot.core.fs_utils.SubAbstractFS method),
method), 20 24
load_entity() (con-
N
pot.protocols.http.command_responder.HTTPServer
method), 47 NegotiatePDU() (con-
load_status() (con- pot.tests.helpers.s7comm_client.s7 method),
pot.protocols.http.command_responder.HTTPServer 62
method), 47 Network (class in conpot.core.internal_interface), 24
log() (conpot.core.loggers.hpfriends.HPFriendsLogger norm_path() (conpot.core.filesystem.AbstractFS
method), 15 method), 21
log() (conpot.core.loggers.json_log.JsonLogger NormValueField (class in con-
method), 16 pot.protocols.IEC104.frames), 30
90 Index
Conpot Documentation, Release 0.6.0
Index 91
Conpot Documentation, Release 0.6.0
92 Index
Conpot Documentation, Release 0.6.0
run() (conpot.protocols.kamstrup.management_protocol.commands.RequestRestartCommand
send_error() (con-
method), 50 pot.protocols.http.command_responder.HTTPServer
run() (conpot.protocols.kamstrup.management_protocol.commands.SetConfigCommand
method), 47
method), 50 send_file() (conpot.protocols.ftp.ftp_base_handler.FTPHandlerBase
run() (conpot.protocols.kamstrup.management_protocol.commands.SetDeviceNameCommand
method), 43
method), 50 send_frame_imm() (con-
run() (conpot.protocols.kamstrup.management_protocol.commands.SetIPCommand
pot.protocols.IEC104.IEC104.IEC104
method), 51 method), 28
run() (conpot.protocols.kamstrup.management_protocol.commands.SetKap1Command
send_ipmi_response() (con-
method), 51 pot.protocols.ipmi.fakesession.FakeSession
run() (conpot.protocols.kamstrup.management_protocol.commands.SetKap2Command
method), 48
method), 51 send_payload() (con-
run() (conpot.protocols.kamstrup.management_protocol.commands.SetLookupCommand
pot.protocols.ipmi.fakesession.FakeSession
method), 51 method), 48
run() (conpot.protocols.kamstrup.management_protocol.commands.SetNameserverCommand
send_response() (con-
method), 51 pot.protocols.http.command_responder.HTTPServer
run() (conpot.protocols.kamstrup.management_protocol.commands.SetPortsCommand
method), 47
method), 51 sendMessage() (con-
run() (conpot.protocols.kamstrup.management_protocol.commands.SetSerialCommand
pot.protocols.snmp.command_responder.SNMPDispatcher
method), 51 method), 58
run() (conpot.protocols.kamstrup.management_protocol.commands.SetWatchdogCommand
SEP (class in conpot.protocols.IEC104.frames), 31
method), 51 serialize() (conpot.protocols.kamstrup.meter_protocol.messages.Kam
run() (conpot.protocols.kamstrup.management_protocol.commands.SoftwareVersionCommand
method), 53
method), 52 serialize() (conpot.protocols.kamstrup.meter_protocol.messages.Kam
run_cmd() (in module conpot.tests.test_ipmi_server), method), 53
67 serve_forever() (con-
pot.protocols.http.command_responder.CommandResponder
S method), 46
S7 (class in conpot.protocols.s7comm.s7), 56 serve_forever() (con-
s7 (class in conpot.tests.helpers.s7comm_client), 62 pot.protocols.snmp.command_responder.CommandResponder
S7Error, 61 method), 58
S7Packet (class in con- serverInitial() (con-
pot.tests.helpers.s7comm_client), 61 pot.protocols.tftp.tftp_handler.TFTPServerState
S7ProtocolError, 61 method), 60
s_frame (class in conpot.protocols.IEC104.frames), 40 SessionManager (class in con-
sanitize_file_name() (in module con- pot.core.session_manager), 25
pot.helpers), 74 set_access_ip() (con-
Scan() (in module con- pot.protocols.kamstrup.management_protocol.commands.AccessC
pot.tests.helpers.s7comm_client), 61 method), 49
SCD (class in conpot.protocols.IEC104.frames), 31 set_boot_device() (con-
select_data() (con- pot.protocols.ipmi.fakebmc.FakeBmc method),
pot.core.loggers.sqlite_log.SQLiteLogger 48
method), 16 set_command() (con-
send_104frame() (con- pot.tests.helpers.snmp_client.SNMPClient
pot.protocols.IEC104.IEC104.IEC104 method), 62
method), 28 set_ended() (conpot.core.attack_session.AttackSession
send_auth_cap() (con- method), 17
pot.protocols.ipmi.ipmi_server.IpmiServer set_object_val() (con-
method), 49 pot.protocols.IEC104.DeviceDataController.DeviceDataControlle
send_chunked() (con- method), 27
pot.protocols.http.command_responder.HTTPServer set_val() (conpot.protocols.IEC104.register.IEC104Register
method), 47 method), 41
send_data() (conpot.protocols.ipmi.fakesession.FakeSessionset_value() (conpot.core.databus.Databus method),
method), 48 17
Index 93
Conpot Documentation, Release 0.6.0
set_value() (conpot.protocols.snmp.databus_mediator.DatabusMediator
setUp() (conpot.tests.test_ipmi_server.TestIPMI
method), 59 method), 67
setbinfile() (conpot.core.filesystem.AbstractFS setUp() (conpot.tests.test_kamstrup_management_protocol.TestKamstrup
method), 22 method), 68
SetConfigCommand (class in con- setUp() (conpot.tests.test_kamstrup_meter_protocol.TestKamstrup
pot.protocols.kamstrup.management_protocol.commands), method), 69
50 setUp() (conpot.tests.test_logger_json.TestJsonLogger
SetDeviceNameCommand (class in con- method), 69
setUp() (conpot.tests.test_mac_addr.TestMacAddrUtil
pot.protocols.kamstrup.management_protocol.commands),
50 method), 69
setinfo() (conpot.core.filesystem.AbstractFS setUp() (conpot.tests.test_modbus_server.TestModbusServer
method), 22 method), 69
SetIPCommand (class in con- setUp() (conpot.tests.test_pysnmp_wrapper.TestPySNMPWrapper
pot.protocols.kamstrup.management_protocol.commands), method), 70
50 setUp() (conpot.tests.test_s7_server.TestS7Server
SetKap1Command (class in con- method), 71
setUp() (conpot.tests.test_snmp_server.TestSNMPServer
pot.protocols.kamstrup.management_protocol.commands),
51 method), 71
SetKap2Command (class in con- setUp() (conpot.tests.test_tftp.TestTFTPServer
pot.protocols.kamstrup.management_protocol.commands), method), 71
51 setUp() (conpot.tests.test_vfs.TestFileSystem method),
SetLookupCommand (class in con- 72
pot.protocols.kamstrup.management_protocol.commands),
setUp() (conpot.tests.test_vfs.TestSubFileSystem
51 method), 73
SetNameserverCommand (class in con- SetWatchdogCommand (class in con-
pot.protocols.kamstrup.management_protocol.commands), pot.protocols.kamstrup.management_protocol.commands),
51 51
SetPortsCommand (class in con- show_send_list() (con-
pot.protocols.kamstrup.management_protocol.commands), pot.protocols.IEC104.IEC104.IEC104
51 method), 28
SetSerialCommand (class in con- SIQ (class in conpot.protocols.IEC104.frames), 31
pot.protocols.kamstrup.management_protocol.commands),
SlaveBase (class in con-
51 pot.protocols.modbus.slave_db), 55
settimes() (conpot.core.filesystem.AbstractFS SNMPClient (class in con-
method), 22 pot.tests.helpers.snmp_client), 62
setup() (conpot.protocols.ftp.ftp_base_handler.FTPHandlerBase
SNMPDispatcher (class in con-
method), 43 pot.protocols.snmp.command_responder),
setUp() (conpot.tests.test_bacnet_server.TestBACnetServer 58
method), 62 SoftwareVersionCommand (class in con-
setUp() (conpot.tests.test_base.TestBase method), 63 pot.protocols.kamstrup.management_protocol.commands),
setUp() (conpot.tests.test_docs.TestMakeDocs 51
method), 63 SPE (class in conpot.protocols.IEC104.frames), 31
setUp() (conpot.tests.test_enip_server.TestENIPServer Split() (in module con-
method), 63 pot.tests.helpers.s7comm_client), 61
setUp() (conpot.tests.test_ext_ip_util.TestExtIPUtil SQLiteLogger (class in con-
method), 64 pot.core.loggers.sqlite_log), 16
setUp() (conpot.tests.test_ftp.TestFTPServer method), ssl_lists (conpot.protocols.s7comm.s7.S7 attribute),
64 57
setUp() (conpot.tests.test_guardian_ast.TestGuardianASTstart() (conpot.core.loggers.log_worker.LogWorker
method), 65 method), 16
setUp() (conpot.tests.test_http_server.TestHTTPServer start() (conpot.protocols.ipmi.ipmi_server.IpmiServer
method), 66 method), 49
setUp() (conpot.tests.test_iec104_server.TestIEC104Serverstart() (conpot.protocols.tftp.tftp_handler.TFTPContextServer
method), 67 method), 59
94 Index
Conpot Documentation, Release 0.6.0
Index 95
Conpot Documentation, Release 0.6.0
method), 66 method), 64
test_auth() (conpot.tests.test_ftp.TestFTPServer test_file_rename() (con-
method), 64 pot.tests.test_ftp.TestFTPServer method),
test_base() (conpot.tests.test_base.TestBase 64
method), 63 test_find() (conpot.tests.test_pysnmp_wrapper.TestPySNMPWrapper
test_boot_device() (con- method), 70
pot.tests.test_ipmi_server.TestIPMI method), test_format_list() (con-
67 pot.tests.test_vfs.TestFileSystem method),
test_channel_get_access() (con- 72
pot.tests.test_ipmi_server.TestIPMI method), test_format_list() (con-
67 pot.tests.test_vfs.TestSubFileSystem method),
test_chassis_status() (con- 73
pot.tests.test_ipmi_server.TestIPMI method), test_get_config_command() (con-
67 pot.tests.test_kamstrup_management_protocol.TestKamstrupMana
test_chmod() (conpot.tests.test_vfs.TestFileSystem method), 68
method), 72 test_get_cwd() (con-
test_chmod() (con- pot.tests.test_vfs.TestFileSystem method),
pot.tests.test_vfs.TestSubFileSystem method), 72
73 test_get_cwd() (con-
test_chown() (conpot.tests.test_vfs.TestFileSystem pot.tests.test_vfs.TestSubFileSystem method),
method), 72 73
test_chown() (con- test_get_permissions() (con-
pot.tests.test_vfs.TestSubFileSystem method), pot.tests.test_vfs.TestFileSystem method),
73 72
test_compile() (con- test_get_permissions() (con-
pot.tests.test_pysnmp_wrapper.TestPySNMPWrapper pot.tests.test_vfs.TestSubFileSystem method),
method), 70 73
test_copydir() (con- test_get_software_version_command()
pot.tests.test_vfs.TestFileSystem method), (conpot.tests.test_kamstrup_management_protocol.TestKamstrupM
72 method), 68
test_copyfile() (con- test_getmtime() (con-
pot.tests.test_vfs.TestFileSystem method), pot.tests.test_vfs.TestFileSystem method),
72 72
test_cwd() (conpot.tests.test_ftp.TestFTPServer test_help() (conpot.tests.test_ftp.TestFTPServer
method), 64 method), 64
test_dele() (conpot.tests.test_ftp.TestFTPServer test_help_command() (con-
method), 64 pot.tests.test_kamstrup_management_protocol.TestKamstrupMana
test_do_HEAD() (con- method), 68
pot.tests.test_http_server.TestHTTPServer Test_HPFriends (class in con-
method), 66 pot.tests.test_hpfriends), 66
test_do_OPTIONS() (con- test_hpfriends() (con-
pot.tests.test_http_server.TestHTTPServer pot.tests.test_hpfriends.Test_HPFriends
method), 66 method), 66
test_do_POST() (con- test_http_backend_databus() (con-
pot.tests.test_http_server.TestHTTPServer pot.tests.test_http_server.TestHTTPServer
method), 66 method), 66
test_do_TRACE() (con- test_http_backend_tarpit() (con-
pot.tests.test_http_server.TestHTTPServer pot.tests.test_http_server.TestHTTPServer
method), 66 method), 66
test_ext_util() (con- test_http_request_base() (con-
pot.tests.test_ext_ip_util.TestExtIPUtil pot.tests.test_http_server.TestHTTPServer
method), 64 method), 66
test_fetch_ext_ip() (con- test_http_subselect_trigger() (con-
pot.tests.test_ext_ip_util.TestExtIPUtil pot.tests.test_http_server.TestHTTPServer
96 Index
Conpot Documentation, Release 0.6.0
method), 66 method), 69
test_I20100() (con- test_make_docs() (con-
pot.tests.test_guardian_ast.TestGuardianAST pot.tests.test_docs.TestMakeDocs method),
method), 65 63
test_I20200() (con- test_malformend_request_tcp() (con-
pot.tests.test_guardian_ast.TestGuardianAST pot.tests.test_enip_server.TestENIPServer
method), 65 method), 63
test_I20300() (con- test_malformend_request_udp() (con-
pot.tests.test_guardian_ast.TestGuardianAST pot.tests.test_enip_server.TestENIPServer
method), 65 method), 64
test_I20400() (con- test_max_retries() (con-
pot.tests.test_guardian_ast.TestGuardianAST pot.tests.test_ftp.TestFTPServer method),
method), 65 64
test_I20500() (con- test_mdtm() (conpot.tests.test_ftp.TestFTPServer
pot.tests.test_guardian_ast.TestGuardianAST method), 65
method), 65 test_misc() (conpot.tests.test_ipmi_server.TestIPMI
test_invalid_crc() (con- method), 67
pot.tests.test_kamstrup_decoder.TestKamstrupDecodertest_mkd() (conpot.tests.test_ftp.TestFTPServer
method), 68 method), 65
test_ip_verify() (con- test_mkdir() (conpot.tests.test_vfs.TestFileSystem
pot.tests.test_ext_ip_util.TestExtIPUtil method), 72
method), 64 test_mkdir() (con-
test_jail() (conpot.tests.test_vfs.TestFileSystem pot.tests.test_vfs.TestSubFileSystem method),
method), 72 73
test_list() (conpot.tests.test_ftp.TestFTPServer test_mkdir_upload() (con-
method), 64 pot.tests.test_tftp.TestTFTPServer method),
test_list_identity_tcp() (con- 72
pot.tests.test_enip_server.TestENIPServer test_mkdirs() (conpot.tests.test_vfs.TestFileSystem
method), 63 method), 72
test_list_identity_udp() (con- test_mkdirs() (con-
pot.tests.test_enip_server.TestENIPServer pot.tests.test_vfs.TestSubFileSystem method),
method), 63 73
test_list_interfaces_tcp() (con- test_modbus_logging() (con-
pot.tests.test_enip_server.TestENIPServer pot.tests.test_modbus_server.TestModbusServer
method), 63 method), 70
test_list_interfaces_udp() (con- test_mode() (conpot.tests.test_ftp.TestFTPServer
pot.tests.test_enip_server.TestENIPServer method), 65
method), 63 test_movedir() (con-
test_list_services_tcp() (con- pot.tests.test_vfs.TestFileSystem method),
pot.tests.test_enip_server.TestENIPServer 72
method), 63 test_movefile() (con-
test_list_services_udp() (con- pot.tests.test_vfs.TestFileSystem method),
pot.tests.test_enip_server.TestENIPServer 72
method), 63 Test_MySQLlogger (class in con-
test_listdir() (con- pot.tests.test_logger_mysql), 69
pot.tests.test_vfs.TestFileSystem method), test_mysqllogger() (con-
72 pot.tests.test_logger_mysql.Test_MySQLlogger
test_listdir() (con- method), 69
pot.tests.test_vfs.TestSubFileSystem method), test_nlist() (conpot.tests.test_ftp.TestFTPServer
73 method), 65
test_log_event() (con- test_no_response_requests() (con-
pot.tests.test_logger_json.TestJsonLogger pot.tests.test_bacnet_server.TestBACnetServer
method), 69 method), 62
test_mac() (conpot.tests.test_mac_addr.TestMacAddrUtil test_noop() (conpot.tests.test_ftp.TestFTPServer
Index 97
Conpot Documentation, Release 0.6.0
98 Index
Conpot Documentation, Release 0.6.0
Index 99
Conpot Documentation, Release 0.6.0
100 Index
Conpot Documentation, Release 0.6.0
valid_crc() (conpot.protocols.kamstrup.meter_protocol.request_parser.KamstrupRequestParser
class method), 54
vfs (conpot.protocols.tftp.tftp_handler.TFTPServerState
attribute), 60
VirtualFS (class in conpot.core.virtual_fs), 25
VTI (class in conpot.protocols.IEC104.frames), 32
W
walk_command() (con-
pot.tests.helpers.snmp_client.SNMPClient
method), 62
whoHas() (conpot.protocols.bacnet.bacnet_app.BACnetApp
method), 41
whoIs() (conpot.protocols.bacnet.bacnet_app.BACnetApp
method), 41
WinkModuleCommand (class in con-
pot.protocols.kamstrup.management_protocol.commands),
52
Index 101