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
↓ 1 callers
Method
_strip_quotes
Drop a single pair of surrounding quotes from a case pattern so a quoted literal like ``'x86_64'`` matches; glob metacharacters in an
src/cowrie/shell/honeypot.py:423
↓ 1 callers
Method
_unary
(self, op: str, operand: str)
src/cowrie/commands/base.py:1310
↓ 1 callers
Method
_unescape_dq
(self, text: str)
src/cowrie/shell/bashparse.py:862
↓ 1 callers
Method
_unsupportedVersionReceived
Change message to be like OpenSSH
src/cowrie/ssh/transport.py:108
↓ 1 callers
Method
_unsupportedVersionReceived
Change message to be like OpenSSH
src/cowrie/ssh_proxy/server_transport.py:207
↓ 1 callers
Method
_warn_if_legacy_auth_key
The pre-2026 DShield API took a base64-encoded auth_key and decoded it before computing the HMAC. The current submitapi uses the key
src/cowrie/output/dshield.py:57
↓ 1 callers
Method
_wire
Replicate the wiring SSHSessionForCowrieUser.openShell sets up.
src/cowrie/test/test_ssh_teardown.py:45
↓ 1 callers
Method
_write_to_file
( self, file_info: dict[str, Any], data: bytes, is_stdout: bool )
src/cowrie/shell/pipe.py:365
↓ 1 callers
Method
add_standard_tags
Add standard tags to all events
src/cowrie/output/misp.py:271
↓ 1 callers
Method
adduser
All arguments are bytes @param login: user id @type login: bytes @param passwd: password @type passwd: bytes
src/cowrie/core/auth.py:115
↓ 1 callers
Method
awk_parser
search for awk execution patterns, either direct {} code or only executed for a certain regex { } /regex/ { }
src/cowrie/commands/awk.py:87
↓ 1 callers
Method
awk_print
This is the awk `print` command that operates on a single line only
src/cowrie/commands/awk.py:100
↓ 1 callers
Method
bad_argument
Print bad argument and exit
src/cowrie/commands/iptables.py:472
↓ 1 callers
Method
calculate_lo
(self)
src/cowrie/commands/ifconfig.py:54
↓ 1 callers
Method
calculate_rx
(self)
src/cowrie/commands/ifconfig.py:40
↓ 1 callers
Method
calculate_tx
(self)
src/cowrie/commands/ifconfig.py:47
↓ 1 callers
Method
call
(self)
src/cowrie/shell/command.py:120
↓ 1 callers
Method
channelOpen
(self, specificData: bytes)
src/cowrie/ssh/forwarding.py:123
↓ 1 callers
Method
channel_closed
(self)
src/cowrie/ssh_proxy/protocols/term.py:44
↓ 1 callers
Method
check
()
src/cowrie/test/test_tftp.py:192
↓ 1 callers
Method
checkPamUser
(self, username, pamConversion, ip)
src/cowrie/core/checkers.py:109
↓ 1 callers
Method
check_geoip_mapping
This function ensures that the right mapping is set up to convert source ip (src_ip) into geo data.
src/cowrie/output/elasticsearch.py:75
↓ 1 callers
Method
check_geoip_pipeline
This function aims to set at least a geoip pipeline to map IP to geo locations
src/cowrie/output/elasticsearch.py:94
↓ 1 callers
Method
check_index
This function check whether the index exists.
src/cowrie/output/elasticsearch.py:67
↓ 1 callers
Function
check_root
Check if running as root and exit if so.
src/cowrie/scripts/cowrie.py:119
↓ 1 callers
Method
check_valid_user
(self, username)
src/cowrie/commands/groups.py:88
↓ 1 callers
Function
checkblacklist
(ftxt)
src/cowrie/scripts/createfs.py:88
↓ 1 callers
Method
checklogin
( self, thelogin: bytes, thepasswd: bytes, src_ip: str = "0.0.0.0" )
src/cowrie/core/auth.py:83
↓ 1 callers
Method
close
Sends exit to the Telnet server and closes connection. Fires the deferred with the command's output.
src/backend_pool/telnet_exec.py:95
↓ 1 callers
Method
collectioncomplete
this gets called once collection is complete
src/cowrie/commands/wget.py:525
↓ 1 callers
Method
command_not_found_message
Build the error a real shell prints when a command cannot be run. For a path-like command (one starting with "." or "/") match bash's
src/cowrie/shell/honeypot.py:698
↓ 1 callers
Method
connectionLost
( self, reason: tw_failure.Failure = protocol.connectionDone )
src/cowrie/llm/llm.py:73
↓ 1 callers
Method
connectionLost
(self, reason: failure.Failure)
src/cowrie/test/test_telnet_transport.py:137
↓ 1 callers
Method
connectionLost
This seems to be the only reliable place of catching lost connection
src/cowrie/ssh/transport.py:255
↓ 1 callers
Method
connectionLost
Fires on pre-authentication disconnects
src/cowrie/telnet/transport.py:125
↓ 1 callers
Method
connectionLost
Finalize the session: hash and store any captured stdin, redirected files, and the TTY log, then drop references to the terminal.
src/cowrie/insults/insults.py:146
↓ 1 callers
Function
convert
This converts a nested dictionary with bytes in it to string
src/cowrie/core/output.py:44
↓ 1 callers
Function
cowrie_force_stop
Force stop the Cowrie service.
src/cowrie/scripts/cowrie.py:202
↓ 1 callers
Function
cowrie_init
Set up the current directory as a cowrie state directory. Writes ./etc/cowrie.cfg from the bundled template and creates the var/ skeleton (lo
src/cowrie/scripts/cowrie.py:248
↓ 1 callers
Function
cowrie_restart
Restart the Cowrie service.
src/cowrie/scripts/cowrie.py:235
↓ 1 callers
Function
cowrie_shell
Launch a shell (mainly for Docker use).
src/cowrie/scripts/cowrie.py:242
↓ 1 callers
Function
cowrie_status
Print the current status of Cowrie.
src/cowrie/scripts/cowrie.py:86
↓ 1 callers
Method
crashreport
Crash report
src/cowrie/output/crashreporter.py:62
↓ 1 callers
Method
create_guest
Returns an unready domain and its snapshot information. Guarantee that the IP is free with the ip_tester function.
src/backend_pool/libvirt/backend_service.py:119
↓ 1 callers
Function
create_uuid
Generates a UUID Version 1 (time-based). Returns: A uuid.UUID object.
src/cowrie/core/uuid.py:16
↓ 1 callers
Method
cuckoo_check_if_dup
Check if file already was analyzed by cuckoo
src/cowrie/output/cuckoo.py:97
↓ 1 callers
Method
dataReceived
(self, data: bytes)
src/cowrie/shell/session.py:30
↓ 1 callers
Method
dataReceived
(self, data)
src/cowrie/test/test_ssh_teardown.py:27
↓ 1 callers
Method
dataReceived
Twisted's Telnet.dataReceived() raises ValueError on an unrecognised byte following IAC (e.g. a scanner sending IAC 0x01 outside a WI
src/cowrie/telnet/transport.py:89
↓ 1 callers
Method
dispatchMessage
(self, messageNum: int, payload: bytes)
src/cowrie/ssh/transport.py:156
↓ 1 callers
Method
dispatchMessage
(self, messageNum, payload)
src/cowrie/ssh_proxy/server_transport.py:258
↓ 1 callers
Method
displayMOTD
(self)
src/cowrie/shell/protocol.py:368
↓ 1 callers
Method
display_help
(self)
src/cowrie/commands/dig.py:120
↓ 1 callers
Method
display_version
(self)
src/cowrie/commands/dig.py:83
↓ 1 callers
Method
doChain
(self, option)
src/cowrie/telnet/transport.py:145
↓ 1 callers
Method
do_help
(self)
src/cowrie/commands/yum.py:86
↓ 1 callers
Method
do_help
(self)
src/cowrie/commands/apt.py:81
↓ 1 callers
Method
do_install
(self, *args)
src/cowrie/commands/yum.py:194
↓ 1 callers
Method
do_install
(self, *args)
src/cowrie/commands/apt.py:130
↓ 1 callers
Method
do_locked
(self)
src/cowrie/commands/yum.py:294
↓ 1 callers
Method
do_locked
(self)
src/cowrie/commands/apt.py:204
↓ 1 callers
Method
do_moo
(self)
src/cowrie/commands/apt.py:194
↓ 1 callers
Method
do_output
(self)
src/cowrie/commands/adduser.py:68
↓ 1 callers
Method
do_version
(self)
src/cowrie/commands/yum.py:71
↓ 1 callers
Method
do_version
(self)
src/cowrie/commands/apt.py:64
↓ 1 callers
Function
dottedQuadToNum
convert decimal dotted quad string to long integer this will throw builtins.OSError on failure
src/cowrie/commands/nc.py:40
↓ 1 callers
Method
drop_tmp_file
(self, data: bytes, name: str)
src/cowrie/commands/scp.py:83
↓ 1 callers
Method
dump_state
(self)
src/cowrie/output/abuseipdb.py:289
↓ 1 callers
Function
embed_directory
Walk local_root and embed each regular file's bytes into the matching pickle entry's A_CONTENTS. A file maps to the pickle entry at "/"
src/cowrie/scripts/fsctl.py:112
↓ 1 callers
Method
emit
This is the main emit() hook that gets called by the the Twisted logging To make this work with Cowrie, the event dictionary needs t
src/cowrie/core/output.py:127
↓ 1 callers
Function
encode_multipart_formdata
fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to b
src/cowrie/output/virustotal.py:740
↓ 1 callers
Method
eofReceived
(self)
src/cowrie/commands/wc.py:135
↓ 1 callers
Method
eofReceived
Redirect EOF to emulated shell. If shell is gone, then disconnect
src/cowrie/ssh/session.py:61
↓ 1 callers
Method
errReceived
(self, data: bytes)
src/cowrie/shell/pipe.py:293
↓ 1 callers
Method
execute_command_as_user
Execute a single command as the target user.
src/cowrie/commands/su.py:151
↓ 1 callers
Method
execute_script_file
(self, filename: str)
src/cowrie/commands/bash.py:48
↓ 1 callers
Method
extract_attrs
(self)
src/cowrie/ssh_proxy/protocols/sftp.py:279
↓ 1 callers
Method
extract_data
(self)
src/cowrie/ssh_proxy/protocols/base_protocol.py:58
↓ 1 callers
Method
find_and_delete_empty_entries
(self)
src/cowrie/output/abuseipdb.py:224
↓ 1 callers
Method
find_path
(self, args, paths_list, curdir)
src/cowrie/commands/locate.py:89
↓ 1 callers
Method
find_recursive
(self, path: str, depth: int)
src/cowrie/commands/find.py:84
↓ 1 callers
Function
first_time_use
Display first-time use message (cwd-relative log path).
src/cowrie/scripts/cowrie.py:101
↓ 1 callers
Method
free_all
(self)
src/backend_pool/nat.py:161
↓ 1 callers
Method
free_vm
(self, guest_id: int)
src/backend_pool/pool_service.py:462
↓ 1 callers
Method
ftpDownload
Download `url` via FTP
src/cowrie/commands/wget.py:301
↓ 1 callers
Method
ftp_download_async
Async FTP download using Twisted FTPClient
src/cowrie/commands/ftpget.py:164
↓ 1 callers
Method
generate_random_log_id
(self)
src/cowrie/output/oraclecloud.py:25
↓ 1 callers
Method
getAttrs
(self)
src/cowrie/shell/filetransfer.py:126
↓ 1 callers
Method
getCommand
(self, cmd, paths)
src/cowrie/shell/protocol.py:189
↓ 1 callers
Method
getCommand
(name: str)
src/cowrie/commands/apt.py:26
↓ 1 callers
Method
getSessionId
(self)
src/cowrie/insults/insults.py:56
↓ 1 callers
Method
get_free_stats
Get the free stats from /proc
src/cowrie/commands/free.py:91
↓ 1 callers
Method
get_mac_ip
Get a MAC and IP that are not being used by any guest.
src/backend_pool/libvirt/backend_service.py:103
↓ 1 callers
Method
get_status
Return ``$?`` -- the last command's exit status, as a string.
src/cowrie/shell/bashparse.py:185
↓ 1 callers
Function
get_string
(data: bytes)
src/cowrie/ssh_proxy/client_transport.py:27
↓ 1 callers
Method
grep_get_contents
(self, filename: str, match: str)
src/cowrie/commands/fs.py:35
↓ 1 callers
Method
handleDATA
Handle DATA packet
src/cowrie/commands/tftp.py:132
↓ 1 callers
Method
handleERROR
Handle ERROR packet
src/cowrie/commands/tftp.py:167
↓ 1 callers
Method
handle_packet
(self, parent: str)
src/cowrie/ssh_proxy/protocols/sftp.py:112
↓ 1 callers
Method
head_get_file_contents
(self, filename: str)
src/cowrie/commands/fs.py:212
← previous
next →
501–600 of 2,302, ranked by callers