MCPcopy Create free account

hub / github.com/cowrie/cowrie / functions

Functions2,302 in github.com/cowrie/cowrie

↓ 2 callersMethodchpasswd_application
(self, contents: bytes)
src/cowrie/commands/chpasswd.py:40
↓ 2 callersMethodclean_expired_timestamps
(self, ip_key, current_time)
src/cowrie/output/abuseipdb.py:212
↓ 2 callersMethodcleanup
(result: Any)
src/cowrie/commands/tftp.py:306
↓ 2 callersMethodclose
(self, fd: int)
src/cowrie/shell/fs.py:487
↓ 2 callersMethodclosed
(self)
src/cowrie/ssh/channel.py:69
↓ 2 callersMethodcollect
partial collect
src/cowrie/commands/curl.py:399
↓ 2 callersMethodcollect
partial collect
src/cowrie/commands/wget.py:485
↓ 2 callersMethodconnect_to_backend
(self, ip, port)
src/cowrie/telnet_proxy/server_transport.py:161
↓ 2 callersMethodconnect_to_backend
(self, ip, port)
src/cowrie/ssh_proxy/server_transport.py:185
↓ 2 callersMethodconnectionLost
Called when the connection is shut down. Clear any circular references here, and any external references to this Protocol. Th
src/cowrie/llm/protocol.py:118
↓ 2 callersFunctioncowrie_start
Start the Cowrie service.
src/cowrie/scripts/cowrie.py:126
↓ 2 callersFunctioncowrie_stop
Stop the Cowrie service.
src/cowrie/scripts/cowrie.py:181
↓ 2 callersMethodcreate_channel
(self, parent, channel_id, channel_type, session=None)
src/cowrie/ssh_proxy/protocols/ssh.py:396
↓ 2 callersMethodcreate_session_event
Creates a comprehensive MISP event for an entire session using custom objects
src/cowrie/output/misp.py:296
↓ 2 callersFunctioncreate_ssh_factory
(backend)
src/cowrie/test/test_proxy.py:26
↓ 2 callersMethoddataReceived
(self, data: bytes)
src/cowrie/test/test_telnet_transport.py:134
↓ 2 callersMethoddataReceived
(self, data: bytes)
src/cowrie/ssh/forwarding.py:126
↓ 2 callersMethoddataReceived
Input received from user
src/cowrie/insults/insults.py:105
↓ 2 callersMethoddelete_entries
(self, delete_me)
src/cowrie/output/abuseipdb.py:233
↓ 2 callersMethoddestroy_guest
(self, domain: Any, snapshot: str)
src/backend_pool/libvirt/backend_service.py:144
↓ 2 callersMethoddisplay_usage
(self)
src/cowrie/commands/git.py:120
↓ 2 callersMethoddns_text
(self, domain, query_id, record_type, answer, status)
src/cowrie/commands/dig.py:96
↓ 2 callersMethoddo_cd
Changes the current directory.\nUsage: cd <target directory>
src/cowrie/scripts/fsctl.py:397
↓ 2 callersMethoddu_show
(self, path: str, showall: bool = False)
src/cowrie/commands/du.py:96
↓ 2 callersMethodemit
Note we override emit() here, unlike other plugins.
src/cowrie/output/crashreporter.py:42
↓ 2 callersMethodeofReceived
EOF on stdin, from a terminal CTRL-D or a closed SSH channel. Deliver it to the command currently reading stdin; with no command runn
src/cowrie/shell/protocol.py:290
↓ 2 callersMethodeofReceived
Receive channel close and pass on to terminal
src/cowrie/insults/insults.py:133
↓ 2 callersMethodexecute_commands
(self, cmds: str)
src/cowrie/commands/bash.py:61
↓ 2 callersMethodexisting_pool_size
(self)
src/backend_pool/pool_service.py:221
↓ 2 callersMethodfind_attribute
Returns a matching attribute or None if nothing was found.
src/cowrie/output/misp.py:259
↓ 2 callersMethodfree_binding
(self, guest_id: int)
src/backend_pool/nat.py:151
↓ 2 callersMethodgetPeer
(self)
src/cowrie/llm/telnet.py:121
↓ 2 callersMethodget_dir_files
(self, path)
src/cowrie/commands/ls.py:76
↓ 2 callersMethodget_response
Get a response from the LLM for the given prompt. Args: prompt: List of messages. First is system prompt, rest are
src/cowrie/llm/llm.py:204
↓ 2 callersMethodgid2name
(self, gid: int)
src/cowrie/commands/ls.py:29
↓ 2 callersMethodgrep_application
(self, contents: bytes, match: str)
src/cowrie/commands/fs.py:42
↓ 2 callersMethodgrep_input
(self, line: bytes)
src/cowrie/commands/uniq.py:83
↓ 2 callersFunctionhardware_platform
()
src/cowrie/commands/uname.py:18
↓ 2 callersMethodhas_connectivity
This method checks if a guest has either SSH or Telnet connectivity, to know whether it is ready for connections and healthy.
src/backend_pool/pool_service.py:230
↓ 2 callersMethodhead_application
(self, contents: bytes)
src/cowrie/commands/fs.py:204
↓ 2 callersMethodhelp
(self)
src/cowrie/commands/ftpget.py:66
↓ 2 callersMethodhelp
(self)
src/cowrie/commands/awk.py:165
↓ 2 callersMethodhelp
(self)
src/cowrie/commands/python.py:26
↓ 2 callersMethodinsert_command
Insert the next command into the list.
src/cowrie/shell/pipe.py:286
↓ 2 callersFunctionis_valid_port
Check if port string is a valid TCP/UDP port number (1-65535)
src/cowrie/core/network.py:33
↓ 2 callersFunctionkernel_build_string
()
src/cowrie/commands/uname.py:30
↓ 2 callersFunctionkernel_version
()
src/cowrie/commands/uname.py:26
↓ 2 callersMethodkeystrokeReceived
(self, keyID, modifier)
src/cowrie/llm/protocol.py:333
↓ 2 callersMethodload
load the user db
src/cowrie/core/auth.py:48
↓ 2 callersMethodlog_response_failed
(ip, response, reason)
src/cowrie/output/abuseipdb.py:372
↓ 2 callersFunctionmain
Main entry point for the cowrie management script.
src/cowrie/scripts/cowrie.py:285
↓ 2 callersMethodmatch_rule
(self, rule: bytes | Pattern[bytes], data: bytes)
src/cowrie/core/auth.py:97
↓ 2 callersMethodmkfile
( self, path: str, uid: int, gid: int, size: int, mode: int,
src/cowrie/shell/fs.py:341
↓ 2 callersMethodno_files
Notify user there are no input files
src/cowrie/commands/gcc.py:155
↓ 2 callersMethodopenFile
(self, filename, flags, attrs)
src/cowrie/shell/filetransfer.py:214
↓ 2 callersFunctionopen_data_binary
Open bundled cowrie.data/<parts> as a binary stream. Use for pickle.load, json.load, or anything that wants a file object. Raises FileNotFoun
src/cowrie/core/resources.py:43
↓ 2 callersFunctionoperating_system
()
src/cowrie/commands/uname.py:36
↓ 2 callersMethodoutConnectionLost
Called from HoneyPotBaseProtocol.call_command() to run a next command in the chain
src/cowrie/shell/pipe.py:299
↓ 2 callersMethodoutput
(self, file_content, username)
src/cowrie/commands/groups.py:63
↓ 2 callersMethodoutput
This is the tee output, if no file supplied
src/cowrie/commands/tee.py:87
↓ 2 callersMethodparamError
(self)
src/cowrie/commands/fs.py:350
↓ 2 callersMethodparse_packet
(self, parent: str, data: bytes)
src/cowrie/ssh_proxy/protocols/term.py:70
↓ 2 callersMethodpool_ready
(self)
src/twisted/plugins/cowrie_plugin.py:195
↓ 2 callersMethodpostfile
Send a file to MalShare
src/cowrie/output/malshare.py:62
↓ 2 callersFunctionprinthelp
(brief=False)
src/cowrie/scripts/createfs.py:175
↓ 2 callersMethodprintstatistics
(self)
src/cowrie/commands/ping.py:110
↓ 2 callersFunctionprocess_backspaces
Takes a user-input string that might have backspaces in it (represented as 0x7F), and actually performs the 'backspace operation' to return a
src/cowrie/telnet_proxy/handler.py:19
↓ 2 callersMethodre_or_bytes
Convert a /.../ type rule to a regex, otherwise return the string as-is @param login: rule @type login: bytes
src/cowrie/core/auth.py:102
↓ 2 callersFunctionreadBody
Read response body with proper handling to avoid deprecation warnings. This is a wrapper around client.readBody that ensures compatibility.
src/cowrie/output/virustotal.py:37
↓ 2 callersMethodrealpath
(self, path: str)
src/cowrie/shell/fs.py:624
↓ 2 callersFunctionremove_all
Removes all substrings in the list remove_list from string original_string.
src/cowrie/telnet_proxy/handler.py:34
↓ 2 callersMethodreport_ip_single
(self, ip, t, uname)
src/cowrie/output/abuseipdb.py:335
↓ 2 callersMethodreset
Clear all tracked requests.
src/cowrie/core/rate_limiter.py:122
↓ 2 callersFunctionresolve_cname
Resolve a CNAME record recursively and return the final resolved IP address (either IPv4 or IPv6) or None if not resolvable. `visited` is a s
src/cowrie/core/network.py:52
↓ 2 callersMethodreversedns
Perform a reverse DNS lookup on an IP Arguments: addr -- IPv4 Address
src/cowrie/output/reversedns.py:107
↓ 2 callersMethodrunCommand
(self)
src/cowrie/shell/honeypot.py:460
↓ 2 callersFunctionrun_line
Run a single line on a fresh connected protocol. Returns (cmdstack_before, cmdstack_after, terminal_output).
src/cowrie/test/test_pipe_eof.py:29
↓ 2 callersFunctionrun_script_file
Read ``path`` from the emulated filesystem and run it as a shell script. ``not_found_message`` / ``binary_message`` are the errors to write (with
src/cowrie/shell/script.py:82
↓ 2 callersMethodscheduleTimeout
Schedule timeout for retransmission
src/cowrie/commands/tftp.py:183
↓ 2 callersMethodsendBackend
(self, data: bytes)
src/cowrie/telnet_proxy/handler.py:141
↓ 2 callersMethodsendBlock
Send a DATA packet
src/cowrie/test/test_tftp.py:85
↓ 2 callersMethodsendEOF
Utility function to request to send EOF for this session
src/cowrie/ssh/session.py:70
↓ 2 callersMethodsendFrontend
(self, data: bytes)
src/cowrie/telnet_proxy/handler.py:168
↓ 2 callersMethodsendRRQ
Send Read ReQuest packet
src/cowrie/commands/tftp.py:83
↓ 2 callersMethodsend_vm_free
(self, backend_dirty)
src/cowrie/pool_interface/client.py:53
↓ 2 callersMethodsend_vm_request
(self, src_ip)
src/cowrie/pool_interface/client.py:47
↓ 2 callersMethodshort_usage
(self)
src/cowrie/commands/git.py:102
↓ 2 callersFunctionsplitthousands
(s: str, sep: str = ",")
src/cowrie/commands/wget.py:66
↓ 2 callersMethodstart
(self)
src/cowrie/output/s3.py:29
↓ 2 callersMethodstart_pool
(self)
src/backend_pool/pool_service.py:135
↓ 2 callersMethodstopFactory
Stop output plugins
src/cowrie/telnet/factory.py:81
↓ 2 callersFunctionstrip_markdown
Remove markdown code block formatting from LLM responses.
src/cowrie/llm/protocol.py:22
↓ 2 callersMethodsubmiturl
Submit a URL for scanning in VirusTotal v3 API
src/cowrie/output/virustotal.py:463
↓ 2 callersMethodtail_application
(self, contents: bytes)
src/cowrie/commands/fs.py:141
↓ 2 callersMethodtelnet_Password
(self, line)
src/cowrie/telnet/userauth.py:93
↓ 2 callersFunctionto_byte
(n: int)
src/backend_pool/util.py:64
↓ 2 callersFunctionto_environ_key
(key: str)
src/cowrie/core/config.py:21
↓ 2 callersMethodtxtcmd
(self, txt: bytes)
src/cowrie/shell/protocol.py:155
↓ 2 callersMethoduid2name
(self, uid: int)
src/cowrie/commands/ls.py:21
↓ 2 callersFunctionuname_fail_extra
(arg: str)
src/cowrie/commands/uname.py:75
← previousnext →301–400 of 2,302, ranked by callers