MCPcopy Create free account

hub / github.com/cowrie/cowrie / functions

Functions2,302 in github.com/cowrie/cowrie

MethodconnectionLost
(self, reason: Failure | None = None)
src/cowrie/commands/ftpget.py:44
MethodconnectionLost
(self, reason=None)
src/cowrie/commands/wget.py:83
MethodconnectionLost
(self, reason=connectionDone)
src/cowrie/output/virustotal.py:53
MethodconnectionLost
(self, reason)
src/cowrie/output/xmpp.py:51
MethodconnectionLost
(self, reason: failure.Failure = connectionDone)
src/cowrie/telnet/session.py:90
MethodconnectionLost
(self, reason=None)
src/cowrie/telnet/session.py:137
MethodconnectionLost
Fires on pre-authentication disconnects
src/cowrie/telnet/userauth.py:75
MethodconnectionLost
This seems to be the only reliable place of catching lost connection
src/cowrie/ssh_proxy/server_transport.py:366
MethodconnectionLost
(self, reason=None)
src/cowrie/ssh_proxy/client_transport.py:114
MethodconnectionMade
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
MethodconnectionMade
(self)
src/backend_pool/nat.py:49
MethodconnectionMade
(self)
src/cowrie/telnet_proxy/server_transport.py:58
MethodconnectionMade
(self)
src/cowrie/telnet_proxy/client_transport.py:21
MethodconnectionMade
(self)
src/cowrie/shell/pipe.py:276
MethodconnectionMade
(self)
src/cowrie/shell/protocol.py:320
MethodconnectionMade
(self)
src/cowrie/shell/protocol.py:337
MethodconnectionMade
(self)
src/cowrie/llm/protocol.py:281
MethodconnectionMade
(self)
src/cowrie/llm/protocol.py:342
MethodconnectionMade
(self)
src/cowrie/llm/telnet.py:53
MethodconnectionMade
(self)
src/cowrie/output/xmpp.py:45
MethodconnectionMade
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
MethodconnectionMade
(self)
src/cowrie/pool_interface/client.py:26
MethodconnectionMade
(self)
src/cowrie/telnet/transport.py:54
MethodconnectionMade
(self)
src/cowrie/telnet/session.py:71
MethodconnectionMade
(self)
src/cowrie/telnet/userauth.py:57
MethodconnectionMade
(self)
src/cowrie/insults/insults.py:61
MethodconnectionMade
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
MethodconnectionMade
(self)
src/cowrie/ssh_proxy/client_transport.py:56
MethodconnectionSecure
(self)
src/backend_pool/ssh_exec.py:80
MethodconnectionSecure
(self)
src/cowrie/ssh_proxy/client_transport.py:65
FunctioncowrieOpenConnectForwardingClient
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
Functioncreate_disk_snapshot
(source_img: str, destination_img: str)
src/backend_pool/libvirt/snapshot_handler.py:13
Functioncreate_filter
(connection: Any)
src/backend_pool/libvirt/network_handler.py:16
Functioncreate_guest
(connection: Any, mac_address: str, guest_unique_id: str)
src/backend_pool/libvirt/guest_handler.py:23
Functioncreate_network
(connection: Any, network_table: dict[str, str])
src/backend_pool/libvirt/network_handler.py:37
MethodcreatorForNetloc
(self, hostname, port)
src/cowrie/output/cuckoo.py:40
MethodcreatorForNetloc
(self, hostname, port)
src/cowrie/output/splunk.py:120
MethodcreatorForNetloc
(self, hostname, port)
src/cowrie/output/graylog.py:64
Methodcurrent_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
MethoddataReceived
(self, data: bytes)
src/backend_pool/ssh_exec.py:41
MethoddataReceived
(self, data: bytes)
src/backend_pool/pool_server.py:54
MethoddataReceived
(self, data: bytes)
src/backend_pool/nat.py:22
MethoddataReceived
(self, data: bytes)
src/backend_pool/nat.py:52
MethoddataReceived
(self, data: bytes)
src/cowrie/telnet_proxy/server_transport.py:175
MethoddataReceived
(self, data)
src/cowrie/telnet_proxy/client_transport.py:57
MethoddataReceived
(self, data: bytes)
src/cowrie/llm/llm.py:70
MethoddataReceived
(self, data: bytes)
src/cowrie/commands/ftpget.py:40
MethoddataReceived
(self, data: bytes)
src/cowrie/commands/wget.py:80
MethoddataReceived
(self, data)
src/cowrie/output/virustotal.py:50
MethoddataReceived
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
MethoddataReceived
(self, data: bytes)
src/cowrie/ssh/forwarding.py:210
MethoddataReceived
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
MethoddataReceived
(self, data)
src/cowrie/pool_interface/client.py:60
MethoddataReceived
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
MethoddatagramReceived
Handle received TFTP packet
src/cowrie/commands/tftp.py:107
MethoddatagramReceived
Handle TFTP packets
src/cowrie/test/test_tftp.py:55
Methoddecide
()
src/cowrie/shell/honeypot.py:365
Methoddefault
(self, o)
src/cowrie/output/rmq.py:26
MethoddisableLocal
(self, option: bytes)
src/cowrie/test/test_telnet_transport.py:122
MethoddisableRemote
(self, option: bytes)
src/cowrie/test/test_telnet_transport.py:125
MethoddispatchMessage
(self, messageNum, payload)
src/cowrie/ssh_proxy/client_transport.py:147
Methoddo_EOF
The escape character ctrl+d exits the session
src/cowrie/scripts/fsctl.py:285
Methoddo_cat
Cat file, one file only for now
src/cowrie/scripts/fsctl.py:260
Methoddo_chgrp
Change file ownership
src/cowrie/scripts/fsctl.py:735
Methoddo_chmod
Change file permissions only modes between 000 and 777 are implemented
src/cowrie/scripts/fsctl.py:758
Methoddo_chown
Change file ownership
src/cowrie/scripts/fsctl.py:712
Methoddo_clear
Clears the screen
src/cowrie/scripts/fsctl.py:836
Methoddo_cp
Copies a file/directory from one directory to another.\n Usage: cp <source file> <destination file>
src/cowrie/scripts/fsctl.py:656
Methoddo_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
Methoddo_ethtool_eth0
(self)
src/cowrie/commands/ethtool.py:40
Methoddo_ethtool_eth1
(self)
src/cowrie/commands/ethtool.py:72
Methoddo_ethtool_help
No real help output.
src/cowrie/commands/ethtool.py:25
Methoddo_ethtool_lo
(self)
src/cowrie/commands/ethtool.py:34
Methoddo_exit
Exits the file system editor
src/cowrie/scripts/fsctl.py:198
Methoddo_file
Identifies file types.\nUsage: file <file name>
src/cowrie/scripts/fsctl.py:797
Methoddo_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
Methoddo_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
Methoddo_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
Methoddo_ls_normal
(self, path: str)
src/cowrie/commands/ls.py:101
Methoddo_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
Methoddo_mv
Moves a file/directory from one directory to another.\n Usage: mv <source file> <destination file>
src/cowrie/scripts/fsctl.py:594
Methoddo_netstat_normal
(self)
src/cowrie/commands/netstat.py:129
Methoddo_netstat_route
(self)
src/cowrie/commands/netstat.py:72
Methoddo_pwd
Prints the current working directory :param args: :return:
src/cowrie/scripts/fsctl.py:421
Methoddo_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
Methoddo_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
Methoddo_test
()
src/cowrie/test/test_ftpget.py:76
Methoddo_test
()
src/cowrie/test/test_tftp.py:124
Methoddo_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
Methoddone
(self)
src/cowrie/commands/sleep.py:62
MethoddontChain
(self, option)
src/cowrie/telnet/transport.py:148
Methodemptyline
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
MethodenableLocal
(self, option: bytes)
src/cowrie/test/test_telnet_transport.py:116
MethodenableLocal
(self, option: bytes)
src/cowrie/telnet/userauth.py:312
MethodenableRemote
(self, option: bytes)
src/cowrie/test/test_telnet_transport.py:119
MethodenableRemote
(self, option: bytes)
src/cowrie/telnet/userauth.py:321
MethodeofReceived
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
MethodeofReceived
(self)
src/cowrie/shell/session.py:117
MethodeofReceived
EOF with the shell as the active reader (no command running) logs out.
src/cowrie/shell/honeypot.py:758
MethodeofReceived
TODO: this should probably not go through transport, but use processprotocol to close stdin
src/cowrie/llm/protocol.py:255
← previousnext →1,001–1,100 of 2,302, ranked by callers