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
help
(self)
src/cowrie/commands/cat.py:108
↓ 1 callers
Method
help
(self)
src/cowrie/commands/fs.py:309
↓ 1 callers
Method
help
(self)
src/cowrie/commands/scp.py:34
↓ 1 callers
Method
help
(self)
src/cowrie/commands/cut.py:139
↓ 1 callers
Method
help
(self)
src/cowrie/commands/tee.py:128
↓ 1 callers
Method
help
Print help info, and exit
src/cowrie/commands/gcc.py:238
↓ 1 callers
Method
help
(self)
src/cowrie/commands/perl.py:40
↓ 1 callers
Method
help
(self)
src/cowrie/commands/busybox.py:70
↓ 1 callers
Method
help
(self)
src/cowrie/commands/crontab.py:23
↓ 1 callers
Method
httpDownload
Download `url`
src/cowrie/commands/wget.py:287
↓ 1 callers
Method
init_honeyfs
Explore the honeyfs at 'honeyfs_path' and set all A_REALFILE attributes on the virtual filesystem.
src/cowrie/shell/fs.py:138
↓ 1 callers
Method
initialisation_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 callers
Method
interactive_shell
(self)
src/cowrie/commands/bash.py:76
↓ 1 callers
Method
interactive_shell_as_user
Start an interactive shell as the target user.
src/cowrie/commands/su.py:173
↓ 1 callers
Method
intolerant_observer
(self, ip, t, uname)
src/cowrie/output/abuseipdb.py:131
↓ 1 callers
Method
invalid_arg
(self, domain)
src/cowrie/commands/dig.py:86
↓ 1 callers
Function
is_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 callers
Method
is_valid_table
(self, table: str)
src/cowrie/commands/iptables.py:245
↓ 1 callers
Function
iso8601_to_timestamp
(value)
src/cowrie/output/rethinkdblog.py:17
↓ 1 callers
Method
lineReceived
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 callers
Method
list_chains
List current rules
src/cowrie/commands/iptables.py:380
↓ 1 callers
Method
list_rules
List current rules as commands
src/cowrie/commands/iptables.py:353
↓ 1 callers
Method
load
Load /etc/passwd
src/cowrie/shell/pwd.py:31
↓ 1 callers
Method
loadvars
Load user vars from json file
src/cowrie/core/auth.py:169
↓ 1 callers
Method
long_help
(self)
src/cowrie/commands/sudo.py:78
↓ 1 callers
Method
lseek
(self, fd: int, offset: int, whence: int)
src/cowrie/shell/fs.py:512
↓ 1 callers
Function
lspci_out
()
src/cowrie/commands/lspci.py:12
↓ 1 callers
Function
makeMask
return a mask of n bits as a long integer
src/cowrie/commands/nc.py:33
↓ 1 callers
Method
message_help
(self)
src/cowrie/commands/du.py:17
↓ 1 callers
Method
mkdir2
FIXME mkdir() name conflicts with existing mkdir
src/cowrie/shell/fs.py:517
↓ 1 callers
Method
mkfullpath
(self, path: str)
src/cowrie/commands/unzip.py:20
↓ 1 callers
Method
mkfullpath
(self, path: str, f: tarfile.TarInfo)
src/cowrie/commands/tar.py:20
↓ 1 callers
Method
no_command
Print no command message and exit
src/cowrie/commands/iptables.py:452
↓ 1 callers
Method
openDirectory
(self, path)
src/cowrie/shell/filetransfer.py:241
↓ 1 callers
Method
outConnectionLost
EOF should only be sent when both STDOUT and STDERR have been closed.
src/cowrie/llm/telnet.py:98
↓ 1 callers
Method
outConnectionLost
EOF should only be sent when both STDOUT and STDERR have been closed.
src/cowrie/telnet/session.py:122
↓ 1 callers
Method
packet_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 callers
Method
packet_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 callers
Method
parse_scp_data
(self, data: bytes)
src/cowrie/commands/scp.py:130
↓ 1 callers
Function
parse_size
Parse dd arguments that indicate block sizes Return 0 in case of illegal input
src/cowrie/commands/dd.py:112
↓ 1 callers
Function
playlog
(fd, settings)
src/cowrie/scripts/playlog.py:18
↓ 1 callers
Function
playlog
(fd, settings)
src/cowrie/scripts/asciinema.py:21
↓ 1 callers
Method
postcomment
Send a comment to VirusTotal for a file
src/cowrie/output/virustotal.py:711
↓ 1 callers
Method
postcomment_url
Send a comment to VirusTotal for a URL
src/cowrie/output/virustotal.py:715
↓ 1 callers
Method
postentry
Send a JSON log entry to Splunk with Twisted
src/cowrie/output/splunk.py:72
↓ 1 callers
Method
postentry
(self, entry)
src/cowrie/output/graylog.py:51
↓ 1 callers
Method
postentry
(self, entry)
src/cowrie/output/datadog.py:64
↓ 1 callers
Method
postfile
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 callers
Method
print_help_message
(self)
src/cowrie/commands/sleep.py:35
↓ 1 callers
Method
print_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 callers
Method
print_help_message
(self)
src/cowrie/commands/nc.py:82
↓ 1 callers
Method
print_version
(self)
src/cowrie/commands/sleep.py:51
↓ 1 callers
Method
processPasswordInput
(self)
src/cowrie/telnet_proxy/handler.py:263
↓ 1 callers
Method
processUsernameInput
(self)
src/cowrie/telnet_proxy/handler.py:230
↓ 1 callers
Function
python_version_warning
Display Python version warnings if needed.
src/cowrie/scripts/cowrie.py:109
↓ 1 callers
Method
rate_limit_handler
(self, params, response)
src/cowrie/output/abuseipdb.py:426
↓ 1 callers
Function
read_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 callers
Method
readlink
(self, path: str)
src/cowrie/shell/fs.py:571
↓ 1 callers
Method
received_pool_data
(self, operation, status, *data)
src/cowrie/ssh_proxy/server_transport.py:129
↓ 1 callers
Function
recurse
(localroot, root, tree, maxdepth=100)
src/cowrie/scripts/createfs.py:95
↓ 1 callers
Method
recv_data
(self)
src/cowrie/commands/nc.py:264
↓ 1 callers
Method
report_ip_multiple
(self, ip)
src/cowrie/output/abuseipdb.py:349
↓ 1 callers
Method
request_binding
( self, guest_id: int, dst_ip: str, ssh_port: int, telnet_port: int )
src/backend_pool/nat.py:102
↓ 1 callers
Method
request_vm
(self, src_ip: str)
src/backend_pool/pool_service.py:435
↓ 1 callers
Method
resume
(self)
src/cowrie/shell/command.py:169
↓ 1 callers
Method
reuse_vm
(self, guest_id: int)
src/backend_pool/pool_service.py:473
↓ 1 callers
Function
run
()
src/cowrie/scripts/dumpfs.py:48
↓ 1 callers
Function
run
()
src/cowrie/scripts/createdynamicprocess.py:14
↓ 1 callers
Function
run
()
src/cowrie/scripts/createfs.py:193
↓ 1 callers
Function
run
()
src/cowrie/scripts/playlog.py:104
↓ 1 callers
Function
run
()
src/cowrie/scripts/asciinema.py:109
↓ 1 callers
Method
save_file
(self, data: bytes, fname: str)
src/cowrie/commands/scp.py:96
↓ 1 callers
Method
scanip
Scan IP against GreyNoise API
src/cowrie/output/greynoise.py:48
↓ 1 callers
Method
scriptcmd
Return a command class that executes a shell script from the virtual filesystem.
src/cowrie/shell/protocol.py:162
↓ 1 callers
Method
sendBanner
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 callers
Method
sendData
(self)
src/backend_pool/nat.py:56
↓ 1 callers
Method
sendDisconnect
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 callers
Method
sendFile
Send file in 512-byte blocks
src/cowrie/test/test_tftp.py:71
↓ 1 callers
Method
sendKexInit
Don't send key exchange prematurely
src/cowrie/ssh/transport.py:93
↓ 1 callers
Method
sendKexInit
Don't send key exchange prematurely
src/cowrie/ssh_proxy/server_transport.py:199
↓ 1 callers
Method
sendLogs
(self, event)
src/cowrie/output/oraclecloud.py:30
↓ 1 callers
Method
sendNextBlock
Send next block after receiving ACK
src/cowrie/test/test_tftp.py:76
↓ 1 callers
Method
send_command
Sends a command via Telnet using line mode
src/backend_pool/telnet_exec.py:88
↓ 1 callers
Method
send_initialisation
Used only by the PoolHandler on the first connection, to set the pool up.
src/cowrie/pool_interface/client.py:32
↓ 1 callers
Method
setAttrs
(self, attrs)
src/cowrie/shell/filetransfer.py:130
↓ 1 callers
Method
setClient
(self, client)
src/cowrie/telnet_proxy/handler.py:108
↓ 1 callers
Method
setPrivateModes
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 callers
Method
setProcessingStateBackend
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 callers
Method
setProcessingStateFrontend
Same for the frontend.
src/cowrie/telnet_proxy/handler.py:330
↓ 1 callers
Method
set_client
(self, client)
src/cowrie/ssh_proxy/protocols/ssh.py:88
↓ 1 callers
Method
set_configs
Custom configurations sent from the client are set on the pool here.
src/backend_pool/pool_service.py:208
↓ 1 callers
Method
set_input_data
(self, data: bytes)
src/cowrie/shell/command.py:113
↓ 1 callers
Method
setpwentry
If the user is not in /etc/passwd, creates a new user entry for the session
src/cowrie/shell/pwd.py:108
↓ 1 callers
Method
setup_table
Called during startup to make sure the current environment has some fake rules in memory.
src/cowrie/commands/iptables.py:194
↓ 1 callers
Method
show_help
Show help and exit
src/cowrie/commands/iptables.py:281
↓ 1 callers
Method
show_version
Show version and exit
src/cowrie/commands/iptables.py:274
↓ 1 callers
Method
shutdown_backend
(self)
src/backend_pool/libvirt/backend_service.py:95
↓ 1 callers
Method
shutdown_pool
(self)
src/backend_pool/pool_service.py:188
↓ 1 callers
Function
sizeof_fmt
(num: float)
src/cowrie/commands/wget.py:57
↓ 1 callers
Method
ssh_KEXINIT
(self, packet: bytes)
src/cowrie/ssh/transport.py:192
← previous
next →
601–700 of 2,302, ranked by callers