Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cowrie/cowrie
/ types & classes
Types & classes
393 in github.com/cowrie/cowrie
⨍
Functions
2,302
◇
Types & classes
393
↳
Endpoints
20
↓ 34 callers
Class
FakeServer
FakeServer class. @ivar hostname Servers Host Name @ivar fs File System for cowrie to use
src/cowrie/test/fake_server.py:11
↓ 33 callers
Class
FakeAvatar
FakeAvatar class. @var avatar itself @ivar server server configuration @var fs File System for cowrie to use @var environ for user
src/cowrie/test/fake_server.py:26
↓ 32 callers
Class
FakeTransport
Fake transport with abortConnection() method.
src/cowrie/test/fake_transport.py:49
↓ 32 callers
Class
HoneyPotInteractiveProtocol
src/cowrie/llm/protocol.py:337
↓ 14 callers
Class
SyntaxError_
A bash-style syntax error to report verbatim. TODO: the trailing underscore avoids shadowing the builtin SyntaxError. Consider renaming to Pa
src/cowrie/shell/bashparse.py:293
↓ 10 callers
Class
Artifact
src/cowrie/core/artifact.py:40
↓ 7 callers
Class
BashParser
Parse a command line into a list of statements for the shell to run.
src/cowrie/shell/bashparse.py:364
↓ 7 callers
Class
Container
This class is placeholder for creating a fake interface. @var host Client fake information @var port Fake Port for connection @var otherV
src/cowrie/test/fake_transport.py:19
↓ 7 callers
Class
CowrieTelnetTransport
CowrieTelnetTransport
src/cowrie/telnet/transport.py:43
↓ 7 callers
Class
MockResponse
Mock HTTP response for testing
src/cowrie/test/test_virustotal.py:18
↓ 6 callers
Class
FakeContext
Minimal ShellContext: fixed variables and a recording substitution.
src/cowrie/test/test_bashparse.py:26
↓ 6 callers
Class
HoneyPotShell
src/cowrie/shell/honeypot.py:75
↓ 6 callers
Class
PipeProtocol
src/cowrie/shell/pipe.py:36
↓ 6 callers
Class
StringProducer
src/cowrie/output/virustotal.py:721
↓ 4 callers
Class
HoneyPotTelnetAuthProtocol
TelnetAuthProtocol that takes care of Authentication. Once authenticated this protocol is replaced with HoneyPotTelnetSession.
src/cowrie/telnet/userauth.py:46
↓ 4 callers
Class
HoneypotPasswordChecker
Checker that accepts "keyboard-interactive" and "password"
src/cowrie/core/checkers.py:86
↓ 4 callers
Class
ProtocolTransport
Adapt a terminal protocol so the SSH session can drive it as its process transport, firing the protocol's connectionLost exactly once. The se
src/cowrie/shell/session.py:17
↓ 4 callers
Class
_Continuation
An internal queue entry that runs a Python callback when reached. Flow control schedules these between the statements it splices into ``cmdpe
src/cowrie/shell/honeypot.py:61
↓ 4 callers
Class
_TestError
A malformed test expression; ``test`` reports it and exits 2. Message templates live here so the call sites raise with a short tag, keeping t
src/cowrie/commands/base.py:1205
↓ 3 callers
Class
Command
A simple command / pipeline, structure only. ``items`` keeps the ordered word trees (still unevaluated) interleaved with the control operator
src/cowrie/shell/bashparse.py:193
↓ 3 callers
Class
LLMClient
Client for communicating with OpenAI-compatible LLM APIs.
src/cowrie/llm/llm.py:87
↓ 3 callers
Class
MockOptionState
Mock for Twisted's _OptionState.
src/cowrie/test/test_telnet_transport.py:32
↓ 3 callers
Class
RateLimiter
Rate limiter to prevent attackers from abusing Cowrie to launch DDoS attacks. Prevents abuse where malicious actors attempt to use Cowrie co
src/cowrie/core/rate_limiter.py:10
↓ 2 callers
Class
CommandParser
Handles parsing of shell commands, including tokenization, redirection, and variable expansion.
src/cowrie/shell/parser.py:17
↓ 2 callers
Class
CountingProtocol
Stand-in for LoggingServerProtocol that counts connectionLost calls.
src/cowrie/test/test_ssh_teardown.py:18
↓ 2 callers
Class
CustomParser
src/cowrie/shell/customparser.py:27
↓ 2 callers
Class
LibvirtError
src/backend_pool/libvirt/backend_service.py:29
↓ 2 callers
Class
MockTFTPServer
Mock TFTP server for testing
src/cowrie/test/test_tftp.py:48
↓ 2 callers
Class
Output
virustotal output
src/cowrie/output/virustotal.py:61
↓ 2 callers
Class
ServerFactory
src/backend_pool/nat.py:77
↓ 2 callers
Class
fseditCmd
src/cowrie/scripts/fsctl.py:143
↓ 1 callers
Class
BackendSSHTransport
This class represents the transport layer from Cowrie's proxy to the backend SSH server. It is responsible for authentication to that server,
src/cowrie/ssh_proxy/client_transport.py:40
↓ 1 callers
Class
BodyCollector
src/cowrie/output/virustotal.py:46
↓ 1 callers
Class
BraceGroup
A ``{ ...; }`` command group: its statements run in the current shell.
src/cowrie/shell/bashparse.py:224
↓ 1 callers
Class
CaseClause
``case WORD in PATTERN[|PATTERN]) BODY ;; ... esac``. ``word`` is a :class:`Command` carrying the (unevaluated) word to match; ``items`` pair
src/cowrie/shell/bashparse.py:271
↓ 1 callers
Class
ClientCommandFactory
src/backend_pool/ssh_exec.py:90
↓ 1 callers
Class
ClientCommandTransport
src/backend_pool/ssh_exec.py:69
↓ 1 callers
Class
ClientConnection
src/backend_pool/ssh_exec.py:56
↓ 1 callers
Class
ClientFactory
src/backend_pool/nat.py:31
↓ 1 callers
Class
ClientProtocol
src/backend_pool/nat.py:19
↓ 1 callers
Class
CollectingTransport
Underlying TCP transport stub that records bytes written.
src/cowrie/test/test_telnet_transport.py:147
↓ 1 callers
Class
CommandChannel
src/backend_pool/ssh_exec.py:26
↓ 1 callers
Class
CowrieDailyLogFile
Overload original Twisted with improved date formatting
src/cowrie/python/logfile.py:17
↓ 1 callers
Class
CowrieSFTPDirectory
src/cowrie/shell/filetransfer.py:134
↓ 1 callers
Class
CowrieSFTPFile
SFTPTFile
src/cowrie/shell/filetransfer.py:67
↓ 1 callers
Class
CowrieSSHFactory
This factory creates HoneyPotSSHTransport instances They listen directly to the TCP port
src/cowrie/ssh/factory.py:32
↓ 1 callers
Class
CowrieServiceMaker
src/twisted/plugins/cowrie_plugin.py:61
↓ 1 callers
Class
EchoOnlyProtocol
Minimal application protocol that only agrees to echo locally.
src/cowrie/test/test_telnet_transport.py:113
↓ 1 callers
Class
EnvironmentConfigParser
ConfigParser with additional option to read from environment variables # TODO: def sections()
src/cowrie/core/config.py:25
↓ 1 callers
Class
ExitException
src/cowrie/shell/customparser.py:19
↓ 1 callers
Class
FTPFileReceiver
Protocol to receive FTP file data
src/cowrie/commands/ftpget.py:31
↓ 1 callers
Class
FakeForwardingChannel
This channel does not forward, but just logs requests.
src/cowrie/ssh/forwarding.py:116
↓ 1 callers
Class
FakeNonRootAvatar
A non-root avatar for testing password prompts.
src/cowrie/test/test_su.py:27
↓ 1 callers
Class
FakeTransport
Minimal transport capturing bytes written to it.
src/cowrie/test/test_insults.py:20
↓ 1 callers
Class
ForClause
``for VAR in WORDS; do BODY; done``. ``items`` is a :class:`Command` whose words are the (unevaluated) ``in`` list, expanded against the live
src/cowrie/shell/bashparse.py:232
↓ 1 callers
Class
FrontendTelnetTransport
src/cowrie/telnet_proxy/server_transport.py:29
↓ 1 callers
Class
FunctionDef
``name() { BODY; }`` -- registers ``name`` for later invocation.
src/cowrie/shell/bashparse.py:284
↓ 1 callers
Class
Group
This class contains code to handle the groups and their properties in /etc/group.
src/cowrie/shell/pwd.py:129
↓ 1 callers
Class
Guest
Class for keeping track of QEMU guests.
src/backend_pool/pool_service.py:46
↓ 1 callers
Class
HoneyPotRealm
src/cowrie/llm/realm.py:18
↓ 1 callers
Class
HoneypotPublicKeyChecker
Checker that accepts, logs and denies public key authentication attempts
src/cowrie/core/checkers.py:28
↓ 1 callers
Class
IfClause
``if COND; then BODY; [elif COND; then BODY;]* [else BODY;] fi``. ``branches`` pairs each condition statement-list with its body; ``else_body``
src/cowrie/shell/bashparse.py:246
↓ 1 callers
Class
LogBook
Dictionary class with methods for cleaning and dumping its state. This class should be treated as global state. For the moment this is a
src/cowrie/output/abuseipdb.py:173
↓ 1 callers
Class
ModifiedOptionParser
src/cowrie/commands/iptables.py:29
↓ 1 callers
Class
NATService
This service provides a NAT-like service when the backend pool is located in a remote machine. Guests are bound to a local IP (e.g., 192
src/backend_pool/nat.py:86
↓ 1 callers
Class
NoAvailableVMs
no VM's available
src/backend_pool/pool_service.py:62
↓ 1 callers
Class
OptionNotFound
src/cowrie/shell/customparser.py:11
↓ 1 callers
Class
OptionParsingError
src/cowrie/commands/iptables.py:18
↓ 1 callers
Class
OptionParsingExit
src/cowrie/commands/iptables.py:23
↓ 1 callers
Class
Output
Signal messenger output plugin.
src/cowrie/output/signal.py:20
↓ 1 callers
Class
Passwd
This class contains code to handle the users and their properties in /etc/passwd. Note that contrary to the name, it does not handle any
src/cowrie/shell/pwd.py:18
↓ 1 callers
Class
PasswordAuth
src/backend_pool/ssh_exec.py:17
↓ 1 callers
Class
PoolClient
Represents the connection between a protocol instance (SSH or Telnet) and a QEMU pool
src/cowrie/pool_interface/client.py:16
↓ 1 callers
Class
PoolClientFactory
src/cowrie/pool_interface/client.py:122
↓ 1 callers
Class
PoolHandler
When the PoolHandler is started, it establishes a "master" connection to the pool server. After that connection is successful (initial_pool_c
src/cowrie/pool_interface/handler.py:21
↓ 1 callers
Class
PoolNotReadyError
src/cowrie/pool_interface/handler.py:17
↓ 1 callers
Class
PoolServer
Main PoolServer
src/backend_pool/pool_server.py:35
↓ 1 callers
Class
PoolServerFactory
Factory for PoolServer
src/backend_pool/pool_server.py:191
↓ 1 callers
Class
PoolService
VM States: created -> available -> using -> used -> unavailable -> destroyed created: initialised but not fully booted by QE
src/backend_pool/pool_service.py:72
↓ 1 callers
Class
QemuGuestError
src/backend_pool/libvirt/guest_handler.py:19
↓ 1 callers
Class
ReconnectingConnectionPool
Reconnecting adbapi connection pool for MySQL. This class improves on the solution posted at http://www.gelens.org/2008/09/12/reinitiali
src/cowrie/output/mysql.py:21
↓ 1 callers
Class
ReconnectingPostgreSQLConnectionPool
Reconnecting adbapi connection pool for PostgreSQL. This handles reconnections on known transient errors like server disconnects or deadlock
src/cowrie/output/postgresql.py:17
↓ 1 callers
Class
Reporter
HTTP client and methods for preparing report paramaters.
src/cowrie/output/abuseipdb.py:321
↓ 1 callers
Class
SSHConnectForwardingChannel
This class modifies the original to close the connection
src/cowrie/ssh/forwarding.py:105
↓ 1 callers
Class
ServerProtocol
src/backend_pool/nat.py:42
↓ 1 callers
Class
SimpleResponseReceiver
Collects the response body from an HTTP response.
src/cowrie/llm/llm.py:60
↓ 1 callers
Class
StringProducer
Feeds a request body to the HTTP client.
src/cowrie/llm/llm.py:37
↓ 1 callers
Class
Subshell
A ``(...)`` group, holding its parsed (still unevaluated) inner statements. Cowrie does not emulate a subshell's isolated environment, so the cal
src/cowrie/shell/bashparse.py:211
↓ 1 callers
Class
TCPTunnelForwardingChannel
This class modifies the original to perform TCP tunneling via the CONNECT method
src/cowrie/ssh/forwarding.py:186
↓ 1 callers
Class
TFTPClient
Async TFTP client using Twisted's DatagramProtocol Implements RFC 1350 TFTP protocol
src/cowrie/commands/tftp.py:55
↓ 1 callers
Class
TelnetClientCommand
src/backend_pool/telnet_exec.py:131
↓ 1 callers
Class
TelnetFactory
src/backend_pool/telnet_exec.py:111
↓ 1 callers
Class
TelnetHandler
src/cowrie/telnet_proxy/handler.py:44
↓ 1 callers
Class
TelnetSessionProcessProtocol
Both an IProcessProtocol and an ITransport. Transport to the remote endpoint and process protocol to the local subsystem.
src/cowrie/llm/telnet.py:82
↓ 1 callers
Class
TelnetSessionProcessProtocol
I am both an L{IProcessProtocol} and an L{ITransport}. I am a transport to the remote endpoint and a process protocol to the local subsys
src/cowrie/telnet/session.py:103
↓ 1 callers
Class
UsernamePasswordIP
This credential interface also provides an IP address
src/cowrie/core/credentials.py:65
↓ 1 callers
Class
WhileClause
``while COND; do BODY; done`` (or ``until`` when ``until`` is True).
src/cowrie/shell/bashparse.py:261
↓ 1 callers
Class
WhitelistContextFactory
src/cowrie/output/splunk.py:119
↓ 1 callers
Class
WhitelistContextFactory
src/cowrie/output/graylog.py:63
↓ 1 callers
Class
XMPPLoggerProtocol
src/cowrie/output/xmpp.py:24
next →
1–100 of 393, ranked by callers