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
↓ 2 callers
Method
chpasswd_application
(self, contents: bytes)
src/cowrie/commands/chpasswd.py:40
↓ 2 callers
Method
clean_expired_timestamps
(self, ip_key, current_time)
src/cowrie/output/abuseipdb.py:212
↓ 2 callers
Method
cleanup
(result: Any)
src/cowrie/commands/tftp.py:306
↓ 2 callers
Method
close
(self, fd: int)
src/cowrie/shell/fs.py:487
↓ 2 callers
Method
closed
(self)
src/cowrie/ssh/channel.py:69
↓ 2 callers
Method
collect
partial collect
src/cowrie/commands/curl.py:399
↓ 2 callers
Method
collect
partial collect
src/cowrie/commands/wget.py:485
↓ 2 callers
Method
connect_to_backend
(self, ip, port)
src/cowrie/telnet_proxy/server_transport.py:161
↓ 2 callers
Method
connect_to_backend
(self, ip, port)
src/cowrie/ssh_proxy/server_transport.py:185
↓ 2 callers
Method
connectionLost
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 callers
Function
cowrie_start
Start the Cowrie service.
src/cowrie/scripts/cowrie.py:126
↓ 2 callers
Function
cowrie_stop
Stop the Cowrie service.
src/cowrie/scripts/cowrie.py:181
↓ 2 callers
Method
create_channel
(self, parent, channel_id, channel_type, session=None)
src/cowrie/ssh_proxy/protocols/ssh.py:396
↓ 2 callers
Method
create_session_event
Creates a comprehensive MISP event for an entire session using custom objects
src/cowrie/output/misp.py:296
↓ 2 callers
Function
create_ssh_factory
(backend)
src/cowrie/test/test_proxy.py:26
↓ 2 callers
Method
dataReceived
(self, data: bytes)
src/cowrie/test/test_telnet_transport.py:134
↓ 2 callers
Method
dataReceived
(self, data: bytes)
src/cowrie/ssh/forwarding.py:126
↓ 2 callers
Method
dataReceived
Input received from user
src/cowrie/insults/insults.py:105
↓ 2 callers
Method
delete_entries
(self, delete_me)
src/cowrie/output/abuseipdb.py:233
↓ 2 callers
Method
destroy_guest
(self, domain: Any, snapshot: str)
src/backend_pool/libvirt/backend_service.py:144
↓ 2 callers
Method
display_usage
(self)
src/cowrie/commands/git.py:120
↓ 2 callers
Method
dns_text
(self, domain, query_id, record_type, answer, status)
src/cowrie/commands/dig.py:96
↓ 2 callers
Method
do_cd
Changes the current directory.\nUsage: cd <target directory>
src/cowrie/scripts/fsctl.py:397
↓ 2 callers
Method
du_show
(self, path: str, showall: bool = False)
src/cowrie/commands/du.py:96
↓ 2 callers
Method
emit
Note we override emit() here, unlike other plugins.
src/cowrie/output/crashreporter.py:42
↓ 2 callers
Method
eofReceived
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 callers
Method
eofReceived
Receive channel close and pass on to terminal
src/cowrie/insults/insults.py:133
↓ 2 callers
Method
execute_commands
(self, cmds: str)
src/cowrie/commands/bash.py:61
↓ 2 callers
Method
existing_pool_size
(self)
src/backend_pool/pool_service.py:221
↓ 2 callers
Method
find_attribute
Returns a matching attribute or None if nothing was found.
src/cowrie/output/misp.py:259
↓ 2 callers
Method
free_binding
(self, guest_id: int)
src/backend_pool/nat.py:151
↓ 2 callers
Method
getPeer
(self)
src/cowrie/llm/telnet.py:121
↓ 2 callers
Method
get_dir_files
(self, path)
src/cowrie/commands/ls.py:76
↓ 2 callers
Method
get_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 callers
Method
gid2name
(self, gid: int)
src/cowrie/commands/ls.py:29
↓ 2 callers
Method
grep_application
(self, contents: bytes, match: str)
src/cowrie/commands/fs.py:42
↓ 2 callers
Method
grep_input
(self, line: bytes)
src/cowrie/commands/uniq.py:83
↓ 2 callers
Function
hardware_platform
()
src/cowrie/commands/uname.py:18
↓ 2 callers
Method
has_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 callers
Method
head_application
(self, contents: bytes)
src/cowrie/commands/fs.py:204
↓ 2 callers
Method
help
(self)
src/cowrie/commands/ftpget.py:66
↓ 2 callers
Method
help
(self)
src/cowrie/commands/awk.py:165
↓ 2 callers
Method
help
(self)
src/cowrie/commands/python.py:26
↓ 2 callers
Method
insert_command
Insert the next command into the list.
src/cowrie/shell/pipe.py:286
↓ 2 callers
Function
is_valid_port
Check if port string is a valid TCP/UDP port number (1-65535)
src/cowrie/core/network.py:33
↓ 2 callers
Function
kernel_build_string
()
src/cowrie/commands/uname.py:30
↓ 2 callers
Function
kernel_version
()
src/cowrie/commands/uname.py:26
↓ 2 callers
Method
keystrokeReceived
(self, keyID, modifier)
src/cowrie/llm/protocol.py:333
↓ 2 callers
Method
load
load the user db
src/cowrie/core/auth.py:48
↓ 2 callers
Method
log_response_failed
(ip, response, reason)
src/cowrie/output/abuseipdb.py:372
↓ 2 callers
Function
main
Main entry point for the cowrie management script.
src/cowrie/scripts/cowrie.py:285
↓ 2 callers
Method
match_rule
(self, rule: bytes | Pattern[bytes], data: bytes)
src/cowrie/core/auth.py:97
↓ 2 callers
Method
mkfile
( self, path: str, uid: int, gid: int, size: int, mode: int,
src/cowrie/shell/fs.py:341
↓ 2 callers
Method
no_files
Notify user there are no input files
src/cowrie/commands/gcc.py:155
↓ 2 callers
Method
openFile
(self, filename, flags, attrs)
src/cowrie/shell/filetransfer.py:214
↓ 2 callers
Function
open_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 callers
Function
operating_system
()
src/cowrie/commands/uname.py:36
↓ 2 callers
Method
outConnectionLost
Called from HoneyPotBaseProtocol.call_command() to run a next command in the chain
src/cowrie/shell/pipe.py:299
↓ 2 callers
Method
output
(self, file_content, username)
src/cowrie/commands/groups.py:63
↓ 2 callers
Method
output
This is the tee output, if no file supplied
src/cowrie/commands/tee.py:87
↓ 2 callers
Method
paramError
(self)
src/cowrie/commands/fs.py:350
↓ 2 callers
Method
parse_packet
(self, parent: str, data: bytes)
src/cowrie/ssh_proxy/protocols/term.py:70
↓ 2 callers
Method
pool_ready
(self)
src/twisted/plugins/cowrie_plugin.py:195
↓ 2 callers
Method
postfile
Send a file to MalShare
src/cowrie/output/malshare.py:62
↓ 2 callers
Function
printhelp
(brief=False)
src/cowrie/scripts/createfs.py:175
↓ 2 callers
Method
printstatistics
(self)
src/cowrie/commands/ping.py:110
↓ 2 callers
Function
process_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 callers
Method
re_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 callers
Function
readBody
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 callers
Method
realpath
(self, path: str)
src/cowrie/shell/fs.py:624
↓ 2 callers
Function
remove_all
Removes all substrings in the list remove_list from string original_string.
src/cowrie/telnet_proxy/handler.py:34
↓ 2 callers
Method
report_ip_single
(self, ip, t, uname)
src/cowrie/output/abuseipdb.py:335
↓ 2 callers
Method
reset
Clear all tracked requests.
src/cowrie/core/rate_limiter.py:122
↓ 2 callers
Function
resolve_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 callers
Method
reversedns
Perform a reverse DNS lookup on an IP Arguments: addr -- IPv4 Address
src/cowrie/output/reversedns.py:107
↓ 2 callers
Method
runCommand
(self)
src/cowrie/shell/honeypot.py:460
↓ 2 callers
Function
run_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 callers
Function
run_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 callers
Method
scheduleTimeout
Schedule timeout for retransmission
src/cowrie/commands/tftp.py:183
↓ 2 callers
Method
sendBackend
(self, data: bytes)
src/cowrie/telnet_proxy/handler.py:141
↓ 2 callers
Method
sendBlock
Send a DATA packet
src/cowrie/test/test_tftp.py:85
↓ 2 callers
Method
sendEOF
Utility function to request to send EOF for this session
src/cowrie/ssh/session.py:70
↓ 2 callers
Method
sendFrontend
(self, data: bytes)
src/cowrie/telnet_proxy/handler.py:168
↓ 2 callers
Method
sendRRQ
Send Read ReQuest packet
src/cowrie/commands/tftp.py:83
↓ 2 callers
Method
send_vm_free
(self, backend_dirty)
src/cowrie/pool_interface/client.py:53
↓ 2 callers
Method
send_vm_request
(self, src_ip)
src/cowrie/pool_interface/client.py:47
↓ 2 callers
Method
short_usage
(self)
src/cowrie/commands/git.py:102
↓ 2 callers
Function
splitthousands
(s: str, sep: str = ",")
src/cowrie/commands/wget.py:66
↓ 2 callers
Method
start
(self)
src/cowrie/output/s3.py:29
↓ 2 callers
Method
start_pool
(self)
src/backend_pool/pool_service.py:135
↓ 2 callers
Method
stopFactory
Stop output plugins
src/cowrie/telnet/factory.py:81
↓ 2 callers
Function
strip_markdown
Remove markdown code block formatting from LLM responses.
src/cowrie/llm/protocol.py:22
↓ 2 callers
Method
submiturl
Submit a URL for scanning in VirusTotal v3 API
src/cowrie/output/virustotal.py:463
↓ 2 callers
Method
tail_application
(self, contents: bytes)
src/cowrie/commands/fs.py:141
↓ 2 callers
Method
telnet_Password
(self, line)
src/cowrie/telnet/userauth.py:93
↓ 2 callers
Function
to_byte
(n: int)
src/backend_pool/util.py:64
↓ 2 callers
Function
to_environ_key
(key: str)
src/cowrie/core/config.py:21
↓ 2 callers
Method
txtcmd
(self, txt: bytes)
src/cowrie/shell/protocol.py:155
↓ 2 callers
Method
uid2name
(self, uid: int)
src/cowrie/commands/ls.py:21
↓ 2 callers
Function
uname_fail_extra
(arg: str)
src/cowrie/commands/uname.py:75
← previous
next →
301–400 of 2,302, ranked by callers