id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
25,400
dataset_attachments.py
truenas_middleware/src/middlewared/middlewared/plugins/pool_/dataset_attachments.py
from middlewared.schema import accepts, Ref, returns, Str from middlewared.service import item_method, private, Service from .utils import dataset_mountpoint class PoolDatasetService(Service): attachment_delegates = [] class Config: namespace = 'pool.dataset' @item_method @accepts(Str('id'...
2,388
Python
.tac
54
34.888889
102
0.64569
truenas/middleware
2,277
481
13
LGPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,401
attachment.py
truenas_middleware/src/middlewared/middlewared/plugins/kmip/attachment.py
# Copyright (c) - iXsystems Inc. # # Licensed under the terms of the TrueNAS Enterprise License Agreement # See the file LICENSE.IX for complete terms and conditions from middlewared.common.attachment.certificate import CertificateServiceAttachmentDelegate from middlewared.common.ports import ServicePortDelegate cla...
859
Python
.tac
18
44.222222
108
0.80649
truenas/middleware
2,277
481
13
LGPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,402
cert_attachments.py
truenas_middleware/src/middlewared/middlewared/plugins/ldap_/cert_attachments.py
from middlewared.common.attachment.certificate import CertificateServiceAttachmentDelegate class LdapCertificateAttachmentDelegate(CertificateServiceAttachmentDelegate): HUMAN_NAME = 'LDAP Service' SERVICE = 'ldap' SERVICE_VERB = 'start' async def setup(middleware): await middleware.call('certifica...
401
Python
.tac
7
53.285714
116
0.840617
truenas/middleware
2,277
481
13
LGPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,403
cert_attachments.py
truenas_middleware/src/middlewared/middlewared/plugins/idmap_/cert_attachments.py
from middlewared.common.attachment.certificate import CertificateCRUDServiceAttachmentDelegate class IdmapCertificateAttachmentDelegate(CertificateCRUDServiceAttachmentDelegate): CERT_FILTER_KEY = 'certificate.id' HUMAN_NAME = 'IDMAP Service' NAMESPACE = 'idmap' async def redeploy(self, cert_id): ...
480
Python
.tac
9
48.555556
117
0.819355
truenas/middleware
2,277
481
13
LGPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,404
attachments.py
truenas_middleware/src/middlewared/middlewared/plugins/crypto_/attachments.py
from middlewared.service import private, Service class CertificateService(Service): class Config: cli_namespace = 'system.certificate' def __init__(self, *args, **kwargs): super(CertificateService, self).__init__(*args, **kwargs) self.delegates = [] @private async def regist...
912
Python
.tac
20
38.8
119
0.702489
truenas/middleware
2,277
481
13
LGPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,405
attachments.py
truenas_middleware/src/middlewared/middlewared/plugins/vm/attachments.py
import collections import os.path from middlewared.common.attachment import FSAttachmentDelegate from middlewared.common.ports import PortDelegate from middlewared.plugins.zfs_.utils import zvol_path_to_name from middlewared.service import private, Service from .utils import ACTIVE_STATES async def determine_recurs...
5,702
Python
.tac
122
36.409836
122
0.59964
truenas/middleware
2,277
481
13
LGPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,406
attachments.py
truenas_middleware/src/middlewared/middlewared/plugins/virt/attachments.py
from typing import TYPE_CHECKING from middlewared.common.attachment import FSAttachmentDelegate from middlewared.common.ports import PortDelegate if TYPE_CHECKING: from middlewared.main import Middleware class VirtFSAttachmentDelegate(FSAttachmentDelegate): name = 'virt' title = 'Virtualization' as...
3,198
Python
.tac
73
31.90411
98
0.581537
truenas/middleware
2,277
481
13
LGPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,407
test_attachment_querying.py
truenas_middleware/tests/api2/test_attachment_querying.py
#!/usr/bin/env python3 import os import sys from pytest_dependency import depends sys.path.append(os.getcwd()) from middlewared.test.integration.assets.nfs import nfs_share from middlewared.test.integration.assets.pool import dataset from middlewared.test.integration.utils import call, client PARENT_DATASET = 'tes...
1,329
Python
.tac
25
44.88
90
0.68779
truenas/middleware
2,277
481
13
LGPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,408
test_boot_attach_replace_detach.py
truenas_middleware/tests/api2/test_boot_attach_replace_detach.py
import pytest from middlewared.test.integration.utils import call from auto_config import ha if not ha: # the HA VMs only have 1 extra disk at time # of writing this. QE is aware and is working # on adding more disks to them so in the meantime # we have to skip this test since it will fail # 100% ...
2,053
Python
.tac
43
38.790698
80
0.596192
truenas/middleware
2,277
481
13
LGPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,409
test_pool_attach.py
truenas_middleware/tests/api2/test_pool_attach.py
from middlewared.test.integration.assets.pool import another_pool from middlewared.test.integration.utils import call, ssh def test_attach_raidz1_vdev(): with another_pool(topology=(6, lambda disks: { "data": [ { "type": "RAIDZ1", "disks": disks[0:3] ...
766
Python
.tac
22
24.545455
65
0.5
truenas/middleware
2,277
481
13
LGPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,410
system-lock.py
fossasia_meilix-systemlock/systemlock_0.1/usr/bin/system-lock.py
#!/usr/bin/python from gi.repository import Gtk from gi.repository import Gio import sys import os import subprocess class SystemLock(Gtk.Application): lock = True command = 0 message = Gtk.Dialog() def do_activate(self): window = Gtk.Window(application=self) window.set_title("Sys...
4,852
Python
.py
125
28.248
102
0.580734
fossasia/meilix-systemlock
1,539
18
11
GPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,411
copyright
fossasia_meilix-systemlock/systemlock_0.1/debian/copyright
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: systemlock Source: Files: * Copyright: 2013 Mario Behling <mb@mariobehling.de> License: GPL-3+ Files: debian/* Copyright: 2013 Mario Behling <mb@mariobehling.de> License: GPL-2+ License: GPL-2+ On Debian systems, the full tex...
1,280
Python
.py
29
42.275862
82
0.787319
fossasia/meilix-systemlock
1,539
18
11
GPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,412
system-lock.py
fossasia_meilix-systemlock/systemlock_0.1/debian/systemlock/usr/bin/system-lock.py
#!/usr/bin/python from gi.repository import Gtk from gi.repository import Gio import sys import os import subprocess class SystemLock(Gtk.Application): lock = True command = 0 message = Gtk.Dialog() def do_activate(self): window = Gtk.Window(application=self) window.set_title("Sys...
4,852
Python
.py
125
28.248
102
0.580734
fossasia/meilix-systemlock
1,539
18
11
GPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,413
copyright
fossasia_meilix-systemlock/systemlock_0.1/debian/systemlock/usr/share/doc/systemlock/copyright
Format: http://dep.debian.net/deps/dep5 Upstream-Name: systemlock Source: <url://example.com> Files: * Copyright: <years> <put author's name and email here> <years> <likewise for another author> License: <special license> <Put the license of the package here indented by 1 space> <This follows the format o...
1,487
Python
.py
33
43.030303
77
0.777395
fossasia/meilix-systemlock
1,539
18
11
GPL-3.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,414
setup.py
mushorg_conpot/setup.py
from setuptools import setup, find_packages import conpot setup( name="conpot", version=conpot.__version__, packages=find_packages(exclude=["*.pyc"]), python_requires=">=3.6", scripts=["bin/conpot"], url="http://conpot.org", license="GPL 2", author="MushMush Foundation", author_emai...
1,305
Python
.py
34
32.529412
168
0.643307
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,415
mac_addr.py
mushorg_conpot/conpot/utils/mac_addr.py
# Copyright (C) 2015 Adarsh Dinesh <adarshdinesh@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This ...
2,696
Python
.py
72
32.027778
77
0.668199
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,416
networking.py
mushorg_conpot/conpot/utils/networking.py
import socket from datetime import datetime from slugify import slugify def 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...
2,302
Python
.py
68
27.441176
115
0.635257
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,417
greenlet.py
mushorg_conpot/conpot/utils/greenlet.py
# Copyright (C) 2020 srenfo # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the ho...
2,826
Python
.py
70
35.857143
75
0.708059
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,418
ext_ip.py
mushorg_conpot/conpot/utils/ext_ip.py
# Copyright (C) 2014 Lukas Rist <glaslos@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
2,164
Python
.py
56
32.732143
80
0.675727
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,419
usage_simulator.py
mushorg_conpot/conpot/emulators/kamstrup/usage_simulator.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
4,908
Python
.py
112
36.482143
82
0.661487
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,420
uptime.py
mushorg_conpot/conpot/emulators/misc/uptime.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This ...
1,122
Python
.py
27
38.037037
67
0.734189
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,421
sysinfo.py
mushorg_conpot/conpot/emulators/misc/sysinfo.py
import socket import psutil from datetime import datetime class CpuLoad: def get_value(self): return psutil.cpu_percent() class TotalRam: def get_value(self): return psutil.virtual_memory().total / 1024 class StorageSize: def get_value(self): return psutil.disk_usage("/").total...
1,403
Python
.py
45
24.666667
83
0.65967
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,422
random.py
mushorg_conpot/conpot/emulators/misc/random.py
# Copyright (C) 2018 Billy Ferguson <wferguson@blueprintpower.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # #...
1,173
Python
.py
28
38.642857
67
0.737258
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,423
test_modbus_server.py
mushorg_conpot/conpot/tests/test_modbus_server.py
# Copyright (C) 2013 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
7,205
Python
.py
165
34.963636
102
0.638853
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,424
test_ipmi_server.py
mushorg_conpot/conpot/tests/test_ipmi_server.py
# Copyright (C) 2015 Lukas Rist <glaslos@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program i...
5,044
Python
.py
121
32.975207
83
0.571137
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,425
test_ftp.py
mushorg_conpot/conpot/tests/test_ftp.py
# Copyright (C) 2018 Abhinav Saxena <xandfury@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This pro...
20,724
Python
.py
503
31.49503
112
0.598711
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,426
test_utils_ext_ip.py
mushorg_conpot/conpot/tests/test_utils_ext_ip.py
# Copyright (C) 2014 Lukas Rist <glaslos@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
1,876
Python
.py
47
33.93617
81
0.680594
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,427
test_docs.py
mushorg_conpot/conpot/tests/test_docs.py
# Copyright (C) 2013 Lukas Rist <glaslos@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
1,310
Python
.py
32
36.96875
82
0.717545
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,428
test_snmp_server.py
mushorg_conpot/conpot/tests/test_snmp_server.py
# Copyright (C) 2013 Lukas Rist <glaslos@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
2,946
Python
.py
75
33.08
87
0.681834
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,429
test_enip_server.py
mushorg_conpot/conpot/tests/test_enip_server.py
# Copyright (C) 2017 Yuru Shao <shaoyuru@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
7,732
Python
.py
186
31.478495
100
0.600266
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,430
test_protocols.py
mushorg_conpot/conpot/tests/test_protocols.py
# Copyright (C) 2020 srenfo # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the ho...
1,462
Python
.py
33
41.787879
74
0.77167
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,431
test_http_server.py
mushorg_conpot/conpot/tests/test_http_server.py
# Copyright (C) 2013 Lukas Rist <glaslos@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
8,044
Python
.py
197
31.299492
100
0.604396
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,432
test_attack_session.py
mushorg_conpot/conpot/tests/test_attack_session.py
from datetime import datetime, timedelta from freezegun import freeze_time from conpot.core.attack_session import AttackSession class LogQueueFake: def __init__(self): self.events = [] def put(self, event): self.events.append(event) def test_add_event_is_logged(): protocol = "testing"...
4,297
Python
.py
122
28.491803
69
0.633946
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,433
test_kamstrup_management.py
mushorg_conpot/conpot/tests/test_kamstrup_management.py
# Copyright (C) 2018 Abhinav Saxena <xandfury@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This pro...
7,466
Python
.py
192
29.052083
108
0.592276
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,434
test_logger_hpfriends.py
mushorg_conpot/conpot/tests/test_logger_hpfriends.py
# Copyright (C) 2013 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
1,581
Python
.py
39
35.512821
80
0.709174
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,435
test_tftp.py
mushorg_conpot/conpot/tests/test_tftp.py
import unittest import filecmp from freezegun import freeze_time from tftpy import TftpClient import conpot import conpot.core as conpot_core from conpot.protocols.tftp.tftp_server import TftpServer from conpot.utils.greenlet import spawn_test_server, teardown_test_server class TestTFTPServer(unittest.TestCase): ...
2,327
Python
.py
58
31.724138
100
0.608407
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,436
test_protocol_wrapper.py
mushorg_conpot/conpot/tests/test_protocol_wrapper.py
from conpot.core.protocol_wrapper import conpot_protocol @conpot_protocol class ProtocolFake: """Fake docstring""" def __init__(self, value): self.value = value def __repr__(self): return f"ProtocolFake({self.value})" def test_instances_have_separate_fields(): inst_1 = ProtocolFake...
812
Python
.py
22
32.090909
56
0.682519
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,437
test_logger_json.py
mushorg_conpot/conpot/tests/test_logger_json.py
# Copyright (C) 2016 MushMush Foundation # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distribut...
2,536
Python
.py
64
32.046875
67
0.63581
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,438
test_vfs.py
mushorg_conpot/conpot/tests/test_vfs.py
# Copyright (C) 2018 Abhinav Saxena <xandfury@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This pro...
20,119
Python
.py
461
34.171367
118
0.598807
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,439
test_proxy.py
mushorg_conpot/conpot/tests/test_proxy.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
5,237
Python
.py
126
33.777778
83
0.644344
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,440
test_snmp_command_responder.py
mushorg_conpot/conpot/tests/test_snmp_command_responder.py
# Copyright (C) 2020 srenfo # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the ho...
1,714
Python
.py
34
46.705882
82
0.745803
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,441
test_guardian_ast.py
mushorg_conpot/conpot/tests/test_guardian_ast.py
# Copyright (C) 2018 Abhinav Saxena <xandfury@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This pro...
7,959
Python
.py
152
44.710526
487
0.59489
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,442
test_bacnet_server.py
mushorg_conpot/conpot/tests/test_bacnet_server.py
# Copyright (C) 2015 Peter Sooky <xsooky00@stud.fit.vutbr.cz> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # Thi...
6,514
Python
.py
162
31.574074
118
0.64612
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,443
test_iec104_server.py
mushorg_conpot/conpot/tests/test_iec104_server.py
# Copyright (C) 2017 Patrick Reichenberger (University of Passau) <patrick.reichenberger@t-online.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at...
8,229
Python
.py
192
34.270833
110
0.628311
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,444
test_kamstrup_meter.py
mushorg_conpot/conpot/tests/test_kamstrup_meter.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
3,333
Python
.py
72
39.486111
87
0.690557
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,445
test_s7_server.py
mushorg_conpot/conpot/tests/test_s7_server.py
# Copyright (C) 2013 Lukas Rist <glaslos@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
3,005
Python
.py
78
29.205128
73
0.598012
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,446
test_logger_taxii.py
mushorg_conpot/conpot/tests/test_logger_taxii.py
# Copyright (C) 2013 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
3,910
Python
.py
92
34.684783
103
0.635408
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,447
test_utils_mac_addr.py
mushorg_conpot/conpot/tests/test_utils_mac_addr.py
# Copyright (C) 2015 Adarsh Dinesh <adarshdinesh@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This ...
2,419
Python
.py
60
33.1
83
0.647833
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,448
test_kamstrup_decoder.py
mushorg_conpot/conpot/tests/test_kamstrup_decoder.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
3,020
Python
.py
82
26.195122
93
0.55116
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,449
test_greenlet.py
mushorg_conpot/conpot/tests/test_greenlet.py
# Copyright (C) 2020 srenfo # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the ho...
4,319
Python
.py
102
37.5
84
0.719328
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,450
kamstrup_management_data.py
mushorg_conpot/conpot/tests/data/kamstrup_management_data.py
""" Data related to Kamstrup Management Protocol """ RESPONSES = { "H": { "H": b"==============================================================================\r\nService Menu\r\n==============================================================================\r\nH: Help [cmd].\r\nQ: Close connection.\r\n...
10,653
Python
.py
38
274.157895
996
0.577068
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,451
snmp_client.py
mushorg_conpot/conpot/tests/helpers/snmp_client.py
# Command Responder (GET/GETNEXT) # Based on examples from http://pysnmp.sourceforge.net/ from pysnmp.entity import engine, config from pysnmp.carrier.asynsock.dgram import udp from pysnmp.entity.rfc3413 import cmdgen class SNMPClient(object): def __init__(self, host, port): # Create SNMP engine instance...
3,172
Python
.py
91
24.494505
86
0.566634
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,452
s7comm_client.py
mushorg_conpot/conpot/tests/helpers/s7comm_client.py
# Copyright (C) 2013 Daniel creo Haslinger <creo-conpot@blackmesa.at> # Derived from plcscan by Dmitry Efanov (Positive Research) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either versio...
14,280
Python
.py
397
25.685139
88
0.534082
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,453
__init__.py
mushorg_conpot/conpot/protocols/__init__.py
# Copyright (C) 2020 srenfo # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the ho...
1,833
Python
.py
45
38.533333
84
0.788914
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,454
cotp.py
mushorg_conpot/conpot/protocols/s7comm/cotp.py
# This implementation of the S7 protocol is highly inspired # by the amazing plcscan work by the ScadaStrangeLove group. # https://code.google.com/p/plcscan/source/browse/trunk/s7.py from struct import pack, unpack import struct from conpot.protocols.s7comm.exceptions import ParseException from conpot.utils.networking...
6,401
Python
.py
160
29.5875
85
0.525266
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,455
s7.py
mushorg_conpot/conpot/protocols/s7comm/s7.py
# References: S7_300-400_full_reference_handbook_ENGLISH.pdf # http://www.bj-ig.de/147.html # https://code.google.com/p/plcscan/source/browse/trunk/s7.py from struct import pack, unpack import struct import conpot.core as conpot_core from conpot.protocols.s7comm.exceptions import AssembleExce...
15,783
Python
.py
367
30.708447
134
0.517906
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,456
s7_server.py
mushorg_conpot/conpot/protocols/s7comm/s7_server.py
# Copyright (C) 2013 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
13,426
Python
.py
276
25.963768
110
0.413097
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,457
tpkt.py
mushorg_conpot/conpot/protocols/s7comm/tpkt.py
from struct import pack, unpack import struct from conpot.protocols.s7comm.exceptions import ParseException from conpot.utils.networking import str_to_bytes class TPKT: # References: rfc2126 section-4.3, rfc1006# section-6 # Packet format: # +--------+--------+----------------+-----------....-------------...
1,422
Python
.py
33
35.727273
80
0.553145
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,458
exceptions.py
mushorg_conpot/conpot/protocols/s7comm/exceptions.py
class ParseException(Exception): def __init__(self, protocol, reason, payload=""): self.proto = protocol self.reason = reason self.payload = payload def __str__(self): return "DissectException: proto:{0} reason:{1}".format(self.proto, self.reason) class AssembleException(Excep...
584
Python
.py
14
34.714286
88
0.646643
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,459
bacnet_server.py
mushorg_conpot/conpot/protocols/bacnet/bacnet_server.py
# Copyright (C) 2015 Peter Sooky <xsooky00@stud.fit.vubtr.cz> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # Thi...
4,685
Python
.py
101
38.990099
91
0.677525
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,460
bacnet_app.py
mushorg_conpot/conpot/protocols/bacnet/bacnet_app.py
# Copyright (C) 2015 Peter Sooky <xsooky00@stud.fit.vubtr.cz> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # Thi...
16,862
Python
.py
390
29.505128
112
0.553536
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,461
enip_server.py
mushorg_conpot/conpot/protocols/enip/enip_server.py
# Copyright (C) 2017 Yuru Shao <shaoyuru@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
30,252
Python
.py
585
30.952137
113
0.454951
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,462
ipmi_server.py
mushorg_conpot/conpot/protocols/ipmi/ipmi_server.py
# Copyright 2015 Lenovo # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
21,402
Python
.py
501
30.526946
88
0.554768
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,463
fakesession.py
mushorg_conpot/conpot/protocols/ipmi/fakesession.py
# Copyright 2015 Lenovo # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
15,066
Python
.py
373
28.120643
88
0.548163
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,464
fakebmc.py
mushorg_conpot/conpot/protocols/ipmi/fakebmc.py
# Copyright 2015 Lenovo # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softw...
2,417
Python
.py
64
31.390625
74
0.670946
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,465
web_server.py
mushorg_conpot/conpot/protocols/http/web_server.py
# Copyright (C) 2013 Lukas Rist <glaslos@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
1,702
Python
.py
39
39.282051
84
0.732488
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,466
command_responder.py
mushorg_conpot/conpot/protocols/http/command_responder.py
# Copyright (C) 2013 Daniel creo Haslinger <creo-conpot@blackmesa.at> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version....
42,636
Python
.py
949
32.232877
109
0.566719
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,467
decoder_382.py
mushorg_conpot/conpot/protocols/kamstrup_meter/decoder_382.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
8,614
Python
.py
196
30.510204
88
0.529909
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,468
messages.py
mushorg_conpot/conpot/protocols/kamstrup_meter/messages.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
6,111
Python
.py
136
36.617647
102
0.664199
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,469
kamstrup_constants.py
mushorg_conpot/conpot/protocols/kamstrup_meter/kamstrup_constants.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
2,366
Python
.py
107
18.028037
70
0.562805
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,470
kamstrup_server.py
mushorg_conpot/conpot/protocols/kamstrup_meter/kamstrup_server.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
4,749
Python
.py
112
30.044643
87
0.574551
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,471
request_parser.py
mushorg_conpot/conpot/protocols/kamstrup_meter/request_parser.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
3,896
Python
.py
87
31.873563
104
0.573347
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,472
command_responder.py
mushorg_conpot/conpot/protocols/kamstrup_meter/command_responder.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
2,610
Python
.py
58
37.034483
109
0.673742
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,473
register.py
mushorg_conpot/conpot/protocols/kamstrup_meter/register.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
1,024
Python
.py
23
41.521739
67
0.744745
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,474
ascii_decoder.py
mushorg_conpot/conpot/protocols/proxy/ascii_decoder.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This ...
1,083
Python
.py
24
42.916667
67
0.757116
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,475
proxy.py
mushorg_conpot/conpot/protocols/proxy/proxy.py
# Copyright (C) 2014 Johnny Vestergaard <jkv@unixcluster.dk> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This...
7,796
Python
.py
195
27.323077
100
0.537599
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,476
ftp_base_handler.py
mushorg_conpot/conpot/protocols/ftp/ftp_base_handler.py
# Copyright (C) 2018 Abhinav Saxena <xandfury@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This pro...
30,617
Python
.py
631
33.633914
120
0.527284
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,477
ftp_handler.py
mushorg_conpot/conpot/protocols/ftp/ftp_handler.py
# This module is based on the original work done by Giampaolo Rodola and pyftpdlib authors. # This is a heavily customized version that supports Conpot's virtual file system os.* wrappers and gevent support. from conpot.protocols.ftp.ftp_base_handler import FTPHandlerBase import logging import fs import os import glob...
42,562
Python
.py
899
33.995551
118
0.54509
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,478
ftp_server.py
mushorg_conpot/conpot/protocols/ftp/ftp_server.py
# Copyright (C) 2018 Abhinav Saxena <xandfury@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This pro...
12,596
Python
.py
298
31.674497
103
0.547846
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,479
ftp_utils.py
mushorg_conpot/conpot/protocols/ftp/ftp_utils.py
# Copyright (C) 2018 Abhinav Saxena <xandfury@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This pro...
6,831
Python
.py
245
20.991837
88
0.554221
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,480
i_frames_check.py
mushorg_conpot/conpot/protocols/IEC104/i_frames_check.py
# Copyright (C) 2017 Patrick Reichenberger (University of Passau) <patrick.reichenberger@t-online.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at...
7,362
Python
.py
197
30.116751
102
0.628776
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,481
errors.py
mushorg_conpot/conpot/protocols/IEC104/errors.py
# Copyright (C) 2017 Patrick Reichenberger (University of Passau) <patrick.reichenberger@t-online.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at...
1,426
Python
.py
30
44.666667
102
0.747832
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,482
frames.py
mushorg_conpot/conpot/protocols/IEC104/frames.py
# Copyright (C) 2017 Patrick Reichenberger (University of Passau) <patrick.reichenberger@t-online.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at...
32,558
Python
.py
978
26.769939
109
0.588464
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,483
DeviceDataController.py
mushorg_conpot/conpot/protocols/IEC104/DeviceDataController.py
# Copyright (C) 2017 Patrick Reichenberger (University of Passau) <patrick.reichenberger@t-online.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at...
6,921
Python
.py
153
35.431373
102
0.591347
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,484
IEC104_server.py
mushorg_conpot/conpot/protocols/IEC104/IEC104_server.py
# Copyright (C) 2017 Patrick Reichenberger (University of Passau) <patrick.reichenberger@t-online.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at...
6,629
Python
.py
140
29.528571
112
0.492745
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,485
register.py
mushorg_conpot/conpot/protocols/IEC104/register.py
# Copyright (C) 2017 Patrick Reichenberger (University of Passau) <patrick.reichenberger@t-online.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at...
1,075
Python
.py
24
41.666667
102
0.741412
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,486
IEC104.py
mushorg_conpot/conpot/protocols/IEC104/IEC104.py
# Copyright (C) 2017 Patrick Reichenberger (University of Passau) <patrick.reichenberger@t-online.de> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at...
35,803
Python
.py
744
28.950269
116
0.458565
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,487
kamstrup_management_server.py
mushorg_conpot/conpot/protocols/kamstrup_management/kamstrup_management_server.py
# This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # bu...
3,645
Python
.py
90
30.066667
85
0.594297
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,488
command_responder.py
mushorg_conpot/conpot/protocols/kamstrup_management/command_responder.py
# Copyright (C) 2014 Andrea De Pasquale <andrea@de-pasquale.name> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # #...
2,690
Python
.py
61
36.032787
82
0.640015
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,489
commands.py
mushorg_conpot/conpot/protocols/kamstrup_management/commands.py
# Copyright (C) 2014 Andrea De Pasquale <andrea@de-pasquale.name> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # #...
31,420
Python
.py
686
35.341108
118
0.531315
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,490
slave.py
mushorg_conpot/conpot/protocols/modbus/slave.py
import struct import logging from modbus_tk.modbus import ( Slave, ModbusError, ModbusInvalidRequestError, InvalidArgumentError, DuplicatedKeyError, InvalidModbusBlockError, OverlapModbusBlockError, ) from modbus_tk import defines, utils from conpot.utils.networking import str_to_bytes from...
7,004
Python
.py
148
34.216216
89
0.568461
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,491
modbus_server.py
mushorg_conpot/conpot/protocols/modbus/modbus_server.py
# modified by Sooky Peter <xsooky00@stud.fit.vutbr.cz> # Brno University of Technology, Faculty of Information Technology import struct import socket import time import logging import sys import codecs from lxml import etree from gevent.server import StreamServer import modbus_tk.modbus_tcp as modbus_tcp from modbus_t...
7,581
Python
.py
176
28.261364
88
0.512869
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,492
slave_db.py
mushorg_conpot/conpot/protocols/modbus/slave_db.py
# modified by Sooky Peter <xsooky00@stud.fit.vutbr.cz> # Brno University of Technology, Faculty of Information Technology import struct from lxml import etree import codecs from modbus_tk.modbus import ( Databank, DuplicatedKeyError, MissingKeyError, ModbusInvalidRequestError, ) from modbus_tk import de...
4,560
Python
.py
113
26.761062
82
0.518727
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,493
modbus_block_databus_mediator.py
mushorg_conpot/conpot/protocols/modbus/modbus_block_databus_mediator.py
from modbus_tk.hooks import call_hooks import conpot.core as conpot_core class ModbusBlockDatabusMediator(object): """This class represents the values for a range of addresses""" def __init__(self, databus_key, starting_address): """ Constructor: defines the address range and creates the arra...
1,328
Python
.py
30
36.266667
83
0.638545
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,494
guardian_ast_server.py
mushorg_conpot/conpot/protocols/guardian_ast/guardian_ast_server.py
# Copyright (C) 2015 Lukas Rist <glaslos@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
20,482
Python
.py
496
24.094758
106
0.381907
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,495
tftp_server.py
mushorg_conpot/conpot/protocols/tftp/tftp_server.py
# Copyright (C) 2018 Abhinav Saxena <xandfury@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This pro...
7,169
Python
.py
170
32.464706
103
0.599971
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,496
tftp_handler.py
mushorg_conpot/conpot/protocols/tftp/tftp_handler.py
import fs import os import logging import tftpy import time from gevent import socket from tftpy import TftpException, TftpErrors from tftpy.TftpStates import TftpStateExpectACK, TftpStateExpectDAT from tftpy.TftpPacketTypes import TftpPacketRRQ, TftpPacketWRQ from conpot.utils.networking import sanitize_file_name log...
10,621
Python
.py
227
36.45815
106
0.623118
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,497
databus_mediator.py
mushorg_conpot/conpot/protocols/snmp/databus_mediator.py
# Copyright (C) 2013 Daniel creo Haslinger <creo-conpot@blackmesa.at> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version....
4,617
Python
.py
97
37.237113
82
0.619333
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,498
snmp_server.py
mushorg_conpot/conpot/protocols/snmp/snmp_server.py
# Copyright (C) 2013 Lukas Rist <glaslos@gmail.com> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program ...
7,394
Python
.py
161
32.043478
102
0.5463
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)
25,499
command_responder.py
mushorg_conpot/conpot/protocols/snmp/command_responder.py
# Command Responder (GET/GETNEXT) # Based on examples from http://pysnmp.sourceforge.net/ import logging from pysmi.reader import FileReader, FtpReader from pysnmp.entity import config from pysnmp.entity.rfc3413 import context from pysnmp.carrier.asynsock.dgram import udp from pysnmp.entity import engine from pysnmp....
7,258
Python
.py
180
30.172222
91
0.617852
mushorg/conpot
1,224
413
115
GPL-2.0
9/5/2024, 5:13:34 PM (Europe/Amsterdam)