Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cowrie/cowrie
/ functions
Functions
2,302 in github.com/cowrie/cowrie
⨍
Functions
2,302
◇
Types & classes
393
↳
Endpoints
20
Method
connectionLost
(self, reason: Failure | None = None)
src/cowrie/commands/ftpget.py:44
Method
connectionLost
(self, reason=None)
src/cowrie/commands/wget.py:83
Method
connectionLost
(self, reason=connectionDone)
src/cowrie/output/virustotal.py:53
Method
connectionLost
(self, reason)
src/cowrie/output/xmpp.py:51
Method
connectionLost
(self, reason: failure.Failure = connectionDone)
src/cowrie/telnet/session.py:90
Method
connectionLost
(self, reason=None)
src/cowrie/telnet/session.py:137
Method
connectionLost
Fires on pre-authentication disconnects
src/cowrie/telnet/userauth.py:75
Method
connectionLost
This seems to be the only reliable place of catching lost connection
src/cowrie/ssh_proxy/server_transport.py:366
Method
connectionLost
(self, reason=None)
src/cowrie/ssh_proxy/client_transport.py:114
Method
connectionMade
Set rawMode since we do not receive the login and password prompt in line mode. We return to default line mode when we detect the pro
src/backend_pool/telnet_exec.py:41
Method
connectionMade
(self)
src/backend_pool/nat.py:49
Method
connectionMade
(self)
src/cowrie/telnet_proxy/server_transport.py:58
Method
connectionMade
(self)
src/cowrie/telnet_proxy/client_transport.py:21
Method
connectionMade
(self)
src/cowrie/shell/pipe.py:276
Method
connectionMade
(self)
src/cowrie/shell/protocol.py:320
Method
connectionMade
(self)
src/cowrie/shell/protocol.py:337
Method
connectionMade
(self)
src/cowrie/llm/protocol.py:281
Method
connectionMade
(self)
src/cowrie/llm/protocol.py:342
Method
connectionMade
(self)
src/cowrie/llm/telnet.py:53
Method
connectionMade
(self)
src/cowrie/output/xmpp.py:45
Method
connectionMade
Called when the connection is made from the other side. We send our version, but wait with sending KEXINIT
src/cowrie/ssh/transport.py:58
Method
connectionMade
(self)
src/cowrie/pool_interface/client.py:26
Method
connectionMade
(self)
src/cowrie/telnet/transport.py:54
Method
connectionMade
(self)
src/cowrie/telnet/session.py:71
Method
connectionMade
(self)
src/cowrie/telnet/userauth.py:57
Method
connectionMade
(self)
src/cowrie/insults/insults.py:61
Method
connectionMade
Called when the connection is made to the other side. We sent our version and the MSG_KEXINIT packet.
src/cowrie/ssh_proxy/server_transport.py:68
Method
connectionMade
(self)
src/cowrie/ssh_proxy/client_transport.py:56
Method
connectionSecure
(self)
src/backend_pool/ssh_exec.py:80
Method
connectionSecure
(self)
src/cowrie/ssh_proxy/client_transport.py:65
Function
cowrieOpenConnectForwardingClient
This function will redirect an SSH forward request to another address or will log the request and do nothing
src/cowrie/ssh/forwarding.py:23
Function
create_disk_snapshot
(source_img: str, destination_img: str)
src/backend_pool/libvirt/snapshot_handler.py:13
Function
create_filter
(connection: Any)
src/backend_pool/libvirt/network_handler.py:16
Function
create_guest
(connection: Any, mac_address: str, guest_unique_id: str)
src/backend_pool/libvirt/guest_handler.py:23
Function
create_network
(connection: Any, network_table: dict[str, str])
src/backend_pool/libvirt/network_handler.py:37
Method
creatorForNetloc
(self, hostname, port)
src/cowrie/output/cuckoo.py:40
Method
creatorForNetloc
(self, hostname, port)
src/cowrie/output/splunk.py:120
Method
creatorForNetloc
(self, hostname, port)
src/cowrie/output/graylog.py:64
Method
current_user
Get the current effective user info. Returns effective_user from the nearest shell in cmdstack (set by su) if present, otherw
src/cowrie/shell/command.py:39
Method
dataReceived
(self, data: bytes)
src/backend_pool/ssh_exec.py:41
Method
dataReceived
(self, data: bytes)
src/backend_pool/pool_server.py:54
Method
dataReceived
(self, data: bytes)
src/backend_pool/nat.py:22
Method
dataReceived
(self, data: bytes)
src/backend_pool/nat.py:52
Method
dataReceived
(self, data: bytes)
src/cowrie/telnet_proxy/server_transport.py:175
Method
dataReceived
(self, data)
src/cowrie/telnet_proxy/client_transport.py:57
Method
dataReceived
(self, data: bytes)
src/cowrie/llm/llm.py:70
Method
dataReceived
(self, data: bytes)
src/cowrie/commands/ftpget.py:40
Method
dataReceived
(self, data: bytes)
src/cowrie/commands/wget.py:80
Method
dataReceived
(self, data)
src/cowrie/output/virustotal.py:50
Method
dataReceived
First, check for the version string (SSH-2.0-*). After that has been received, this method adds data to the buffer, and pulls out an
src/cowrie/ssh/transport.py:115
Method
dataReceived
(self, data: bytes)
src/cowrie/ssh/forwarding.py:210
Method
dataReceived
Called when we receive data from the user @type data: L{bytes} @param data: Data sent to the server from the client
src/cowrie/ssh/channel.py:80
Method
dataReceived
(self, data)
src/cowrie/pool_interface/client.py:60
Method
dataReceived
First, check for the version string (SSH-2.0-*). After that has been received, this method adds data to the buffer, and pulls out an
src/cowrie/ssh_proxy/server_transport.py:214
Method
datagramReceived
Handle received TFTP packet
src/cowrie/commands/tftp.py:107
Method
datagramReceived
Handle TFTP packets
src/cowrie/test/test_tftp.py:55
Method
decide
()
src/cowrie/shell/honeypot.py:365
Method
default
(self, o)
src/cowrie/output/rmq.py:26
Method
disableLocal
(self, option: bytes)
src/cowrie/test/test_telnet_transport.py:122
Method
disableRemote
(self, option: bytes)
src/cowrie/test/test_telnet_transport.py:125
Method
dispatchMessage
(self, messageNum, payload)
src/cowrie/ssh_proxy/client_transport.py:147
Method
do_EOF
The escape character ctrl+d exits the session
src/cowrie/scripts/fsctl.py:285
Method
do_cat
Cat file, one file only for now
src/cowrie/scripts/fsctl.py:260
Method
do_chgrp
Change file ownership
src/cowrie/scripts/fsctl.py:735
Method
do_chmod
Change file permissions only modes between 000 and 777 are implemented
src/cowrie/scripts/fsctl.py:758
Method
do_chown
Change file ownership
src/cowrie/scripts/fsctl.py:712
Method
do_clear
Clears the screen
src/cowrie/scripts/fsctl.py:836
Method
do_cp
Copies a file/directory from one directory to another.\n Usage: cp <source file> <destination file>
src/cowrie/scripts/fsctl.py:656
Method
do_embed
Bulk-load file contents from a local directory tree into matching pickle entries. Walks <local-dir> recursively and, for every regula
src/cowrie/scripts/fsctl.py:204
Method
do_ethtool_eth0
(self)
src/cowrie/commands/ethtool.py:40
Method
do_ethtool_eth1
(self)
src/cowrie/commands/ethtool.py:72
Method
do_ethtool_help
No real help output.
src/cowrie/commands/ethtool.py:25
Method
do_ethtool_lo
(self)
src/cowrie/commands/ethtool.py:34
Method
do_exit
Exits the file system editor
src/cowrie/scripts/fsctl.py:198
Method
do_file
Identifies file types.\nUsage: file <file name>
src/cowrie/scripts/fsctl.py:797
Method
do_load
Update A_CONTENTS on normal files Two arguments, first the file in the pickle file system, and second the name of the file of which t
src/cowrie/scripts/fsctl.py:231
Method
do_ls
Prints the contents of a directory, use ls -l to list in long format Prints the current directory if no arguments are specified
src/cowrie/scripts/fsctl.py:294
Method
do_ls_l
Display detailed information about files Mimics the output of GNU ls -l and supports the following options: -a, -h :
src/cowrie/commands/ls.py:126
Method
do_ls_normal
(self, path: str)
src/cowrie/commands/ls.py:101
Method
do_mkdir
Add a new directory in the target directory. Handles relative or absolute file paths. \n Usage: mkdir <destination>...
src/cowrie/scripts/fsctl.py:430
Method
do_mv
Moves a file/directory from one directory to another.\n Usage: mv <source file> <destination file>
src/cowrie/scripts/fsctl.py:594
Method
do_netstat_normal
(self)
src/cowrie/commands/netstat.py:129
Method
do_netstat_route
(self)
src/cowrie/commands/netstat.py:72
Method
do_pwd
Prints the current working directory :param args: :return:
src/cowrie/scripts/fsctl.py:421
Method
do_rm
Remove an object from the file system. Will not remove a directory unless the -r switch is invoked.\n Usage: rm [-r] <target>
src/cowrie/scripts/fsctl.py:506
Method
do_rmdir
Remove a file object. Like the unix command, this can only delete empty directories. Use rm -r to recursively delete full dir
src/cowrie/scripts/fsctl.py:551
Method
do_test
()
src/cowrie/test/test_ftpget.py:76
Method
do_test
()
src/cowrie/test/test_tftp.py:124
Method
do_touch
Add a new file in the target directory. Handles relative or absolute file paths. \n Usage: touch <destination> [<size in byte
src/cowrie/scripts/fsctl.py:444
Method
done
(self)
src/cowrie/commands/sleep.py:62
Method
dontChain
(self, option)
src/cowrie/telnet/transport.py:148
Method
emptyline
By default the cmd object will repeat the last command if a blank line is entered. Since this is different than bash behavior
src/cowrie/scripts/fsctl.py:842
Method
enableLocal
(self, option: bytes)
src/cowrie/test/test_telnet_transport.py:116
Method
enableLocal
(self, option: bytes)
src/cowrie/telnet/userauth.py:312
Method
enableRemote
(self, option: bytes)
src/cowrie/test/test_telnet_transport.py:119
Method
enableRemote
(self, option: bytes)
src/cowrie/telnet/userauth.py:321
Method
eofReceived
EOF on stdin. Commands that read stdin override this to terminate; the default ignores it (the command does not read stdin).
src/cowrie/shell/command.py:175
Method
eofReceived
(self)
src/cowrie/shell/session.py:117
Method
eofReceived
EOF with the shell as the active reader (no command running) logs out.
src/cowrie/shell/honeypot.py:758
Method
eofReceived
TODO: this should probably not go through transport, but use processprotocol to close stdin
src/cowrie/llm/protocol.py:255
← previous
next →
1,001–1,100 of 2,302, ranked by callers