MCPcopy Create free account

hub / github.com/ajxchapman/sshreverseshell / endpoints

Endpoints18 in github.com/ajxchapman/sshreverseshell

Routetest_add_flag
patch("sshshell.add_key")
server/test_sshshell.py:None
Routetest_authorized_keys_permissions
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None
Routetest_connection_flag
patch("sshshell.handle_connection")
server/test_sshshell.py:None
Routetest_creates_ssh_dir_with_correct_permissions
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None
Routetest_disconnect_via_ssh_original_command
patch("sshshell.handle_disconnect")
server/test_sshshell.py:None
Routetest_duplicate_key_rejected
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None
Routetest_key_from_file
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None
Routetest_key_id_comment_line
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None
Routetest_missing_authorized_keys_no_error
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None
Routetest_multiple_different_keys
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None
Routetest_nonexistent_key_no_error
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None
Routetest_nonexistent_user_exits_gracefully
patch("sshshell.pwd.getpwnam", side_effect=KeyError("nosuchuser"))
server/test_sshshell.py:None
Routetest_preserves_other_keys
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None
Routetest_remove_flag
patch("sshshell.remove_key")
server/test_sshshell.py:None
Routetest_removes_key_and_comment
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None
Routetest_transfer_via_ssh_original_command
patch("sshshell.handle_transfer")
server/test_sshshell.py:None
Routetest_user_flag_before_add
patch("sshshell.add_key")
server/test_sshshell.py:None
Routetest_writes_key_with_forced_command_and_restrictions
patch("sshshell.pwd.getpwnam")
server/test_sshshell.py:None