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,500 | conpot_cmdrsp.py | mushorg_conpot/conpot/protocols/snmp/conpot_cmdrsp.py | import sys
import logging
import random
from pysnmp.entity.rfc3413 import cmdrsp
from pysnmp.proto import error
from pysnmp.proto.api import v2c
import pysnmp.smi.error
from pysnmp import debug
import gevent
import conpot.core as conpot_core
from conpot.utils.networking import get_interface_ip
logger = logging.getLog... | 12,612 | Python | .py | 272 | 34.959559 | 109 | 0.606325 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,501 | databus.py | mushorg_conpot/conpot/core/databus.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,440 | Python | .py | 102 | 34.696078 | 93 | 0.611381 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,502 | virtual_fs.py | mushorg_conpot/conpot/core/virtual_fs.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,179 | Python | .py | 155 | 34.341935 | 120 | 0.582264 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,503 | filesystem.py | mushorg_conpot/conpot/core/filesystem.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... | 40,960 | Python | .py | 895 | 32.606704 | 120 | 0.526286 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,504 | protocol_wrapper.py | mushorg_conpot/conpot/core/protocol_wrapper.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 prog... | 2,018 | Python | .py | 43 | 39.093023 | 114 | 0.644784 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,505 | attack_session.py | mushorg_conpot/conpot/core/attack_session.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,606 | Python | .py | 69 | 30.811594 | 80 | 0.645289 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,506 | session_manager.py | mushorg_conpot/conpot/core/session_manager.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,019 | Python | .py | 53 | 30.773585 | 75 | 0.661052 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,507 | __init__.py | mushorg_conpot/conpot/core/__init__.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,410 | Python | .py | 70 | 30.628571 | 77 | 0.722366 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,508 | internal_interface.py | mushorg_conpot/conpot/core/internal_interface.py | # Copyright (C) 2015 Lukas Rist <glaslos@gmail.com>
#
# Rewritten by 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 (... | 2,491 | Python | .py | 58 | 36.689655 | 87 | 0.626964 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,509 | fs_utils.py | mushorg_conpot/conpot/core/fs_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... | 8,783 | Python | .py | 235 | 28.804255 | 109 | 0.602517 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,510 | log_worker.py | mushorg_conpot/conpot/core/log_worker.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 i... | 4,942 | Python | .py | 112 | 34.044643 | 86 | 0.620295 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,511 | json_log.py | mushorg_conpot/conpot/core/loggers/json_log.py | # Copyright (C) 2015 Danilo Massa
#
# 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 ... | 1,827 | Python | .py | 45 | 33.777778 | 67 | 0.635135 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,512 | taxii_log.py | mushorg_conpot/conpot/core/loggers/taxii_log.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... | 2,546 | Python | .py | 56 | 39.053571 | 87 | 0.697862 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,513 | hpfriends.py | mushorg_conpot/conpot/core/loggers/hpfriends.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,504 | Python | .py | 61 | 32.180328 | 105 | 0.632444 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,514 | stix_transform.py | mushorg_conpot/conpot/core/loggers/stix_transform.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,022 | Python | .py | 159 | 35.289308 | 117 | 0.651761 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,515 | helpers.py | mushorg_conpot/conpot/core/loggers/helpers.py | from datetime import datetime
import uuid
def json_default(obj):
if isinstance(obj, datetime):
return obj.isoformat()
elif isinstance(obj, uuid.UUID):
return str(obj)
elif isinstance(obj, bytes):
return str(obj)
else:
return None
| 280 | Python | .py | 11 | 19.909091 | 36 | 0.670412 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,516 | syslog.py | mushorg_conpot/conpot/core/loggers/syslog.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.... | 1,539 | Python | .py | 35 | 37.8 | 97 | 0.691127 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,517 | sqlite_log.py | mushorg_conpot/conpot/core/loggers/sqlite_log.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,471 | Python | .py | 66 | 29.242424 | 102 | 0.609675 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,518 | kamstrup_prober.py | mushorg_conpot/bin/kamstrup_prober.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,896 | Python | .py | 194 | 31.701031 | 142 | 0.612588 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,519 | start_protocol.py | mushorg_conpot/bin/start_protocol.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,526 | Python | .py | 43 | 31.093023 | 80 | 0.68907 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,520 | conf.py | mushorg_conpot/docs/source/conf.py | # -*- coding: utf-8 -*-
#
# Conpot documentation build configuration file, created by
# sphinx-quickstart on Sat Apr 20 14:00:03 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | 8,370 | Python | .py | 189 | 42.444444 | 85 | 0.713828 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,521 | 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 | .tac | 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,522 | attack_session.py | mushorg_conpot/conpot/core/attack_session.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,606 | Python | .tac | 69 | 30.811594 | 80 | 0.645289 | mushorg/conpot | 1,224 | 413 | 115 | GPL-2.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,523 | dnscan.py | rbsec_dnscan/dnscan.py | #!/usr/bin/env python3
#
# dnscan copyright (C) 2013-2014 rbsec
# Licensed under GPLv3, see LICENSE for details
#
from __future__ import print_function
import packaging.version
import os
import platform
import re
import sys
import threading
import time
try: # Ugly hack because Python3 decided to rename Queue to qu... | 20,966 | Python | .py | 486 | 31.950617 | 159 | 0.56094 | rbsec/dnscan | 1,114 | 411 | 6 | GPL-3.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,524 | setup.py | florianfesti_boxes/setup.py | #!/usr/bin/env python3
import glob
import os
import subprocess
import sys
from pathlib import Path
from subprocess import CalledProcessError, check_output
from setuptools import find_packages, setup
from setuptools.command.build_py import build_py
class CustomBuildExtCommand(build_py):
"""Customized setuptools ... | 3,732 | Python | .py | 72 | 41.486111 | 191 | 0.619792 | florianfesti/boxes | 970 | 351 | 40 | GPL-3.0 | 9/5/2024, 5:13:34 PM (Europe/Amsterdam) |
25,525 | boxes.py.mo | florianfesti_boxes/locale/de/LC_MESSAGES/boxes.py.mo | fiï - Ñ ? Ï2 ËC π ÈC N £E Ï ÚE flF ÛF G G 7G B <G . G 3 ÆG D ‚G X 'H ÄH ÑH B °H ‰H ÌH 1 ˇH 1I & |