MCPcopy Create free account

hub / github.com/cowrie/cowrie / functions

Functions2,302 in github.com/cowrie/cowrie

Methodtest_exec_scp_push_into_forbidden_path_does_not_crash
A crafted filename that traverses into a protected path (/proc) must be refused cleanly, not raise out of the EOF handler.
src/cowrie/test/test_scp_exec.py:158
Methodtest_exec_scp_push_over_fs_quota_does_not_crash
When the virtual filesystem is at its new-file quota, mkfile cannot create the honeyfs entry. The upload content must still be captured and
src/cowrie/test/test_scp_exec.py:168
Methodtest_exec_scp_push_saves_exact_body
The saved file is exactly the uploaded bytes: header and trailing ACK byte both removed, declared size honoured.
src/cowrie/test/test_scp_exec.py:125
Methodtest_exec_scp_push_strips_header
The SCP `C<mode> <size> <name>` header must not survive into the save. The exec channel delivers stdin after the command starts, so EOF must
src/cowrie/test/test_scp_exec.py:107
Methodtest_exec_status_is_last_statement
(self)
src/cowrie/test/test_exit_status.py:196
Methodtest_exec_success
(self)
src/cowrie/test/test_exit_status.py:186
Methodtest_existing_env_var_with_redirect
(self)
src/cowrie/test/test_fd_redirection.py:287
Methodtest_exists_operator
(self)
src/cowrie/test/test_test_builtin.py:74
Methodtest_exit_command
(self)
src/cowrie/test/test_base_commands.py:42
Methodtest_exit_raises_exit_exception
(self)
src/cowrie/test/test_customparser.py:28
Methodtest_exit_removes_empty_artifact
(self)
src/cowrie/test/test_curl.py:82
Methodtest_exit_removes_empty_artifact
(self)
src/cowrie/test/test_wget.py:74
Methodtest_expand_braced_embedded_in_token
(self)
src/cowrie/test/test_shell_variables.py:62
Methodtest_expand_embedded_in_token
(self)
src/cowrie/test/test_shell_variables.py:58
Methodtest_expand_unquoted_after_literal
(self)
src/cowrie/test/test_shell_variables.py:67
Methodtest_exploit_does_not_set_bypass_when_not_vulnerable
Test that exploit does NOT set bypass flag when vulnerability emulation is disabled.
src/cowrie/test/test_telnet_new_environ.py:353
Methodtest_exploit_sets_bypass_when_vulnerable
Test that exploit sets bypass flag when vulnerability emulation is enabled.
src/cowrie/test/test_telnet_new_environ.py:334
Methodtest_exploit_success_is_logged
Test that successful exploit authentication is logged.
src/cowrie/test/test_telnet_new_environ.py:414
Methodtest_export_assignment_in_env
(self)
src/cowrie/test/test_shell_variables.py:104
Methodtest_export_command
(self)
src/cowrie/test/test_base_commands.py:171
Methodtest_export_promotes_existing
(self)
src/cowrie/test/test_shell_variables.py:109
Methodtest_extract_returns_none_for_normal_value
Test that normal USER values return None.
src/cowrie/test/test_telnet_new_environ.py:322
Methodtest_extract_returns_none_for_other_flags
Test that other flags don't trigger extraction.
src/cowrie/test/test_telnet_new_environ.py:327
Methodtest_extract_username_from_f_admin
Test extracting username from '-f admin' format.
src/cowrie/test/test_telnet_new_environ.py:317
Methodtest_extract_username_from_f_space_root
Test extracting username from '-f root' format.
src/cowrie/test/test_telnet_new_environ.py:307
Methodtest_extract_username_from_froot
Test extracting username from '-froot' format (no space).
src/cowrie/test/test_telnet_new_environ.py:312
Methodtest_failed_download_removes_temp_artifact
(self)
src/cowrie/test/test_curl.py:51
Methodtest_failed_download_removes_temp_artifact
(self)
src/cowrie/test/test_wget.py:51
Methodtest_failed_lookup_logged_without_unhandled_error
(self)
src/cowrie/test/test_network.py:93
Methodtest_failing_command_sets_nonzero_status
(self)
src/cowrie/test/test_exit_status.py:85
Methodtest_failure_saving_existing_stdin_log_is_logged
A genuine I/O failure on an existing stdin log must not be silent. The missing-file case is now skipped, so any OSError that reaches the
src/cowrie/test/test_insults.py:105
Methodtest_falls_through_to_pickle_when_contents_path_unset
(self)
src/cowrie/test/test_honeyfs.py:230
Methodtest_falls_through_to_pickle_when_operator_file_missing
(self)
src/cowrie/test/test_honeyfs.py:222
Methodtest_false_exit_one
(self)
src/cowrie/test/test_test_builtin.py:47
Methodtest_false_short_circuit
(self)
src/cowrie/test/test_test_builtin.py:55
Methodtest_fd_at_limit_is_bad
(self)
src/cowrie/test/test_fd_redirection.py:343
Methodtest_fd_close_syntax
(self)
src/cowrie/test/test_parser.py:107
Methodtest_fd_dup
(self)
src/cowrie/test/test_bashparse.py:160
Methodtest_fd_dup_chain
(self)
src/cowrie/test/test_fd_redirection.py:130
Methodtest_fd_duplication
(self)
src/cowrie/test/test_parser.py:65
Methodtest_file_download
(self)
src/cowrie/test/test_ocsf.py:389
Methodtest_file_download_failed
(self)
src/cowrie/test/test_ocsf.py:419
Methodtest_file_download_lookup_uses_md5
(self)
src/cowrie/test/test_misp.py:52
Methodtest_file_download_sends_notification
(self, mock_post: MagicMock)
src/cowrie/test/test_signal.py:78
Methodtest_file_download_without_url_sends_notification
( self, mock_post: MagicMock )
src/cowrie/test/test_signal.py:90
Methodtest_file_exists
(self)
src/cowrie/test/test_test_builtin.py:68
Methodtest_file_md5
(self)
src/cowrie/test/test_misp.py:28
Methodtest_file_missing
(self)
src/cowrie/test/test_test_builtin.py:71
Methodtest_file_not_found
Test FTP download of non-existent file
src/cowrie/test/test_ftpget.py:238
Methodtest_file_upload
(self)
src/cowrie/test/test_ocsf.py:407
Methodtest_filename_with_spaces
(self)
src/cowrie/test/test_fd_redirection.py:201
Methodtest_finds_cwd_etc_cowrie_cfg
(self)
src/cowrie/test/test_config.py:60
Methodtest_finds_cwd_flat_cowrie_cfg
(self)
src/cowrie/test/test_config.py:66
Methodtest_follows_intermediate_directory_symlink
(self)
src/cowrie/test/test_honeyfs.py:111
Methodtest_follows_terminal_symlink_to_file
(self)
src/cowrie/test/test_honeyfs.py:99
Methodtest_for_clause
(self)
src/cowrie/test/test_bashparse.py:323
Methodtest_for_literal_list
(self)
src/cowrie/test/test_flow_control.py:46
Methodtest_for_multiline
(self)
src/cowrie/test/test_flow_control.py:55
Methodtest_for_multiline
(self)
src/cowrie/test/test_bashparse.py:330
Methodtest_for_over_variable_value
(self)
src/cowrie/test/test_flow_control.py:49
Methodtest_function_arg_count
(self)
src/cowrie/test/test_flow_control.py:190
Methodtest_function_definition_and_call
(self)
src/cowrie/test/test_flow_control.py:184
Methodtest_function_keyword_form
(self)
src/cowrie/test/test_flow_control.py:196
Methodtest_function_keyword_form
(self)
src/cowrie/test/test_bashparse.py:366
Methodtest_function_paren_form
(self)
src/cowrie/test/test_bashparse.py:361
Methodtest_get_attrs_missing_raises_enoent
(self)
src/cowrie/test/test_filetransfer.py:54
Methodtest_get_endpoints_from_section
(self)
src/cowrie/test/test_utils.py:42
Methodtest_get_endpoints_from_section_ipv6
(self)
src/cowrie/test/test_utils.py:74
Methodtest_get_option_name_known
Test _get_option_name for known options.
src/cowrie/test/test_telnet_new_environ.py:270
Methodtest_get_option_name_unknown
Test _get_option_name for unknown options.
src/cowrie/test/test_telnet_new_environ.py:276
Methodtest_grep_output
(self)
src/cowrie/test/test_base_commands.py:254
Methodtest_group_has_root_entry
(self)
src/cowrie/test/test_honeyfs.py:178
Methodtest_handles_none_him_onResult
Test that _handleNegotiationError handles None onResult for do/dont. When AlreadyNegotiating is raised but the negotiation completes before
src/cowrie/test/test_telnet_transport.py:73
Methodtest_handles_none_us_onResult
Test that _handleNegotiationError handles None onResult for will/wont. When AlreadyNegotiating is raised but the negotiation completes before
src/cowrie/test/test_telnet_transport.py:53
Methodtest_hash_in_quotes_not_a_comment
(self)
src/cowrie/test/test_bashparse.py:303
Methodtest_hash_inside_word_kept
(self)
src/cowrie/test/test_bashparse.py:297
Methodtest_head_output
(self)
src/cowrie/test/test_base_commands.py:266
Methodtest_help_command
(self)
src/cowrie/test/test_ftpget.py:60
Methodtest_heredoc_style_not_supported
(self)
src/cowrie/test/test_fd_redirection.py:296
Methodtest_hostname_command
(self)
src/cowrie/test/test_base_commands.py:66
Methodtest_id_command
(self)
src/cowrie/test/test_base_commands.py:74
Methodtest_if_clause
(self)
src/cowrie/test/test_bashparse.py:335
Methodtest_if_elif
(self)
src/cowrie/test/test_flow_control.py:79
Methodtest_if_else_branch
(self)
src/cowrie/test/test_flow_control.py:73
Methodtest_if_true_branch
(self)
src/cowrie/test/test_flow_control.py:67
Methodtest_if_uses_command_status
(self)
src/cowrie/test/test_flow_control.py:85
Methodtest_ignored_events_do_not_send
(self, mock_post: MagicMock)
src/cowrie/test/test_signal.py:99
Methodtest_ignores_send_command
Test that SEND command (server requesting values) is ignored.
src/cowrie/test/test_telnet_new_environ.py:241
Methodtest_in_range_fd_has_no_error
(self)
src/cowrie/test/test_fd_redirection.py:338
Methodtest_inherited_variable_expands
(self)
src/cowrie/test/test_shell_variables.py:90
Methodtest_init_collection_creates_when_absent
When no collection matches the name, one is created.
src/cowrie/test/test_virustotal.py:491
Methodtest_init_collection_reuses_existing
An existing collection found by name is reused without creating.
src/cowrie/test/test_virustotal.py:465
Methodtest_inline_stderr_redirect
(self)
src/cowrie/test/test_bashparse.py:151
Methodtest_inline_target
(self)
src/cowrie/test/test_parser.py:100
Methodtest_input_from_missing_file
(self)
src/cowrie/test/test_fd_redirection.py:180
Methodtest_input_output_same_file
(self)
src/cowrie/test/test_fd_redirection.py:211
Methodtest_insufficient_args
Test ftpget with only one argument shows help
src/cowrie/test/test_ftpget.py:88
Methodtest_int_eq
(self)
src/cowrie/test/test_test_builtin.py:102
Methodtest_int_ge_false
(self)
src/cowrie/test/test_test_builtin.py:108
Methodtest_int_lt
(self)
src/cowrie/test/test_test_builtin.py:105
← previousnext →1,801–1,900 of 2,302, ranked by callers