MCPcopy Create free account

hub / github.com/cowrie/cowrie / functions

Functions2,302 in github.com/cowrie/cowrie

↓ 1 callersMethodhelp
(self)
src/cowrie/commands/cat.py:108
↓ 1 callersMethodhelp
(self)
src/cowrie/commands/fs.py:309
↓ 1 callersMethodhelp
(self)
src/cowrie/commands/scp.py:34
↓ 1 callersMethodhelp
(self)
src/cowrie/commands/cut.py:139
↓ 1 callersMethodhelp
(self)
src/cowrie/commands/tee.py:128
↓ 1 callersMethodhelp
Print help info, and exit
src/cowrie/commands/gcc.py:238
↓ 1 callersMethodhelp
(self)
src/cowrie/commands/perl.py:40
↓ 1 callersMethodhelp
(self)
src/cowrie/commands/busybox.py:70
↓ 1 callersMethodhelp
(self)
src/cowrie/commands/crontab.py:23
↓ 1 callersMethodhttpDownload
Download `url`
src/cowrie/commands/wget.py:287
↓ 1 callersMethodinit_honeyfs
Explore the honeyfs at 'honeyfs_path' and set all A_REALFILE attributes on the virtual filesystem.
src/cowrie/shell/fs.py:138
↓ 1 callersMethodinitialisation_response
When the pool's initialisation is successful, signal to the plugin that SSH and Telnet can be started.
src/cowrie/pool_interface/handler.py:56
↓ 1 callersMethodinteractive_shell
(self)
src/cowrie/commands/bash.py:76
↓ 1 callersMethodinteractive_shell_as_user
Start an interactive shell as the target user.
src/cowrie/commands/su.py:173
↓ 1 callersMethodintolerant_observer
(self, ip, t, uname)
src/cowrie/output/abuseipdb.py:131
↓ 1 callersMethodinvalid_arg
(self, domain)
src/cowrie/commands/dig.py:86
↓ 1 callersFunctionis_ip_address
Returns an IPv4 or IPv6 address if the string is a valid IP, otherwise returns None.
src/cowrie/core/network.py:38
↓ 1 callersMethodis_valid_table
(self, table: str)
src/cowrie/commands/iptables.py:245
↓ 1 callersFunctioniso8601_to_timestamp
(value)
src/cowrie/output/rethinkdblog.py:17
↓ 1 callersMethodlineReceived
IMPORTANT Before this, all data is 'bytes'. Here it converts to 'string' and commands work with string rather than bytes.
src/cowrie/shell/protocol.py:234
↓ 1 callersMethodlist_chains
List current rules
src/cowrie/commands/iptables.py:380
↓ 1 callersMethodlist_rules
List current rules as commands
src/cowrie/commands/iptables.py:353
↓ 1 callersMethodload
Load /etc/passwd
src/cowrie/shell/pwd.py:31
↓ 1 callersMethodloadvars
Load user vars from json file
src/cowrie/core/auth.py:169
↓ 1 callersMethodlong_help
(self)
src/cowrie/commands/sudo.py:78
↓ 1 callersMethodlseek
(self, fd: int, offset: int, whence: int)
src/cowrie/shell/fs.py:512
↓ 1 callersFunctionlspci_out
()
src/cowrie/commands/lspci.py:12
↓ 1 callersFunctionmakeMask
return a mask of n bits as a long integer
src/cowrie/commands/nc.py:33
↓ 1 callersMethodmessage_help
(self)
src/cowrie/commands/du.py:17
↓ 1 callersMethodmkdir2
FIXME mkdir() name conflicts with existing mkdir
src/cowrie/shell/fs.py:517
↓ 1 callersMethodmkfullpath
(self, path: str)
src/cowrie/commands/unzip.py:20
↓ 1 callersMethodmkfullpath
(self, path: str, f: tarfile.TarInfo)
src/cowrie/commands/tar.py:20
↓ 1 callersMethodno_command
Print no command message and exit
src/cowrie/commands/iptables.py:452
↓ 1 callersMethodopenDirectory
(self, path)
src/cowrie/shell/filetransfer.py:241
↓ 1 callersMethodoutConnectionLost
EOF should only be sent when both STDOUT and STDERR have been closed.
src/cowrie/llm/telnet.py:98
↓ 1 callersMethodoutConnectionLost
EOF should only be sent when both STDOUT and STDERR have been closed.
src/cowrie/telnet/session.py:122
↓ 1 callersMethodpacket_buffer
We have to wait until we have a connection to the backend is ready. Meanwhile, we hold packets from client to server in here.
src/cowrie/ssh_proxy/server_transport.py:448
↓ 1 callersMethodpacket_buffer
We can only proceed if authentication has been performed between client and proxy. Meanwhile we hold packets from the backend to the
src/cowrie/ssh_proxy/client_transport.py:166
↓ 1 callersMethodparse_scp_data
(self, data: bytes)
src/cowrie/commands/scp.py:130
↓ 1 callersFunctionparse_size
Parse dd arguments that indicate block sizes Return 0 in case of illegal input
src/cowrie/commands/dd.py:112
↓ 1 callersFunctionplaylog
(fd, settings)
src/cowrie/scripts/playlog.py:18
↓ 1 callersFunctionplaylog
(fd, settings)
src/cowrie/scripts/asciinema.py:21
↓ 1 callersMethodpostcomment
Send a comment to VirusTotal for a file
src/cowrie/output/virustotal.py:711
↓ 1 callersMethodpostcomment_url
Send a comment to VirusTotal for a URL
src/cowrie/output/virustotal.py:715
↓ 1 callersMethodpostentry
Send a JSON log entry to Splunk with Twisted
src/cowrie/output/splunk.py:72
↓ 1 callersMethodpostentry
(self, entry)
src/cowrie/output/graylog.py:51
↓ 1 callersMethodpostentry
(self, entry)
src/cowrie/output/datadog.py:64
↓ 1 callersMethodpostfile
Send a file to VirusTotal. ``sha256`` is the file's hash. The upload response only carries an *analysis* id, but the comment
src/cowrie/output/virustotal.py:306
↓ 1 callersMethodprint_help_message
(self)
src/cowrie/commands/sleep.py:35
↓ 1 callersMethodprint_help_message
Print GNU-style wget help message. Lists both implemented options (that actually work) and recognized options (that are sile
src/cowrie/commands/wget.py:121
↓ 1 callersMethodprint_help_message
(self)
src/cowrie/commands/nc.py:82
↓ 1 callersMethodprint_version
(self)
src/cowrie/commands/sleep.py:51
↓ 1 callersMethodprocessPasswordInput
(self)
src/cowrie/telnet_proxy/handler.py:263
↓ 1 callersMethodprocessUsernameInput
(self)
src/cowrie/telnet_proxy/handler.py:230
↓ 1 callersFunctionpython_version_warning
Display Python version warnings if needed.
src/cowrie/scripts/cowrie.py:109
↓ 1 callersMethodrate_limit_handler
(self, params, response)
src/cowrie/output/abuseipdb.py:426
↓ 1 callersFunctionread_file
Extract the embedded bytes for a regular file at virtual_path. Raises FileNotFoundError if the path doesn't exist in the tree, isn't a regula
src/cowrie/shell/honeyfs.py:108
↓ 1 callersMethodreadlink
(self, path: str)
src/cowrie/shell/fs.py:571
↓ 1 callersMethodreceived_pool_data
(self, operation, status, *data)
src/cowrie/ssh_proxy/server_transport.py:129
↓ 1 callersFunctionrecurse
(localroot, root, tree, maxdepth=100)
src/cowrie/scripts/createfs.py:95
↓ 1 callersMethodrecv_data
(self)
src/cowrie/commands/nc.py:264
↓ 1 callersMethodreport_ip_multiple
(self, ip)
src/cowrie/output/abuseipdb.py:349
↓ 1 callersMethodrequest_binding
( self, guest_id: int, dst_ip: str, ssh_port: int, telnet_port: int )
src/backend_pool/nat.py:102
↓ 1 callersMethodrequest_vm
(self, src_ip: str)
src/backend_pool/pool_service.py:435
↓ 1 callersMethodresume
(self)
src/cowrie/shell/command.py:169
↓ 1 callersMethodreuse_vm
(self, guest_id: int)
src/backend_pool/pool_service.py:473
↓ 1 callersFunctionrun
()
src/cowrie/scripts/dumpfs.py:48
↓ 1 callersFunctionrun
()
src/cowrie/scripts/createdynamicprocess.py:14
↓ 1 callersFunctionrun
()
src/cowrie/scripts/createfs.py:193
↓ 1 callersFunctionrun
()
src/cowrie/scripts/playlog.py:104
↓ 1 callersFunctionrun
()
src/cowrie/scripts/asciinema.py:109
↓ 1 callersMethodsave_file
(self, data: bytes, fname: str)
src/cowrie/commands/scp.py:96
↓ 1 callersMethodscanip
Scan IP against GreyNoise API
src/cowrie/output/greynoise.py:48
↓ 1 callersMethodscriptcmd
Return a command class that executes a shell script from the virtual filesystem.
src/cowrie/shell/protocol.py:162
↓ 1 callersMethodsendBanner
This is the pre-login banner. The post-login banner is the MOTD file Display contents of <honeyfs>/etc/issue.net
src/cowrie/ssh/userauth.py:53
↓ 1 callersMethodsendData
(self)
src/backend_pool/nat.py:56
↓ 1 callersMethodsendDisconnect
http://kbyte.snowpenguin.org/portal/2013/04/30/kippo-protocol-mismatch-workaround/ Workaround for the "bad packet length" error messa
src/cowrie/ssh/transport.py:270
↓ 1 callersMethodsendFile
Send file in 512-byte blocks
src/cowrie/test/test_tftp.py:71
↓ 1 callersMethodsendKexInit
Don't send key exchange prematurely
src/cowrie/ssh/transport.py:93
↓ 1 callersMethodsendKexInit
Don't send key exchange prematurely
src/cowrie/ssh_proxy/server_transport.py:199
↓ 1 callersMethodsendLogs
(self, event)
src/cowrie/output/oraclecloud.py:30
↓ 1 callersMethodsendNextBlock
Send next block after receiving ACK
src/cowrie/test/test_tftp.py:76
↓ 1 callersMethodsend_command
Sends a command via Telnet using line mode
src/backend_pool/telnet_exec.py:88
↓ 1 callersMethodsend_initialisation
Used only by the PoolHandler on the first connection, to set the pool up.
src/cowrie/pool_interface/client.py:32
↓ 1 callersMethodsetAttrs
(self, attrs)
src/cowrie/shell/filetransfer.py:130
↓ 1 callersMethodsetClient
(self, client)
src/cowrie/telnet_proxy/handler.py:108
↓ 1 callersMethodsetPrivateModes
Enable the given modes. Track which modes have been enabled so that the implementations of other L{insults.ITerminalTransport} method
src/cowrie/test/fake_transport.py:120
↓ 1 callersMethodsetProcessingStateBackend
This function analyses a data packet and sets the processing state of the handler accordingly. It looks for authentication phases (pa
src/cowrie/telnet_proxy/handler.py:308
↓ 1 callersMethodsetProcessingStateFrontend
Same for the frontend.
src/cowrie/telnet_proxy/handler.py:330
↓ 1 callersMethodset_client
(self, client)
src/cowrie/ssh_proxy/protocols/ssh.py:88
↓ 1 callersMethodset_configs
Custom configurations sent from the client are set on the pool here.
src/backend_pool/pool_service.py:208
↓ 1 callersMethodset_input_data
(self, data: bytes)
src/cowrie/shell/command.py:113
↓ 1 callersMethodsetpwentry
If the user is not in /etc/passwd, creates a new user entry for the session
src/cowrie/shell/pwd.py:108
↓ 1 callersMethodsetup_table
Called during startup to make sure the current environment has some fake rules in memory.
src/cowrie/commands/iptables.py:194
↓ 1 callersMethodshow_help
Show help and exit
src/cowrie/commands/iptables.py:281
↓ 1 callersMethodshow_version
Show version and exit
src/cowrie/commands/iptables.py:274
↓ 1 callersMethodshutdown_backend
(self)
src/backend_pool/libvirt/backend_service.py:95
↓ 1 callersMethodshutdown_pool
(self)
src/backend_pool/pool_service.py:188
↓ 1 callersFunctionsizeof_fmt
(num: float)
src/cowrie/commands/wget.py:57
↓ 1 callersMethodssh_KEXINIT
(self, packet: bytes)
src/cowrie/ssh/transport.py:192
← previousnext →601–700 of 2,302, ranked by callers