OpenVAS Scanner  22.7.9
nasl_ssh.h
Go to the documentation of this file.
1 /* SPDX-FileCopyrightText: 2023 Greenbone AG
2  *
3  * SPDX-License-Identifier: GPL-2.0-or-later
4  */
5 
13 #ifndef NASL_NASL_SSH_H
14 #define NASL_NASL_SSH_H
15 
16 #include "nasl_lex_ctxt.h"
17 
18 #include <libssh/libssh.h>
19 
20 tree_cell *
21 nasl_ssh_connect (lex_ctxt *lexic);
22 tree_cell *
24 tree_cell *
26 tree_cell *
28 tree_cell *
30 tree_cell *
32 tree_cell *
34 tree_cell *
36 tree_cell *
38 tree_cell *
40 tree_cell *
42 tree_cell *
44 tree_cell *
46 
47 tree_cell *
49 
50 tree_cell *
52 tree_cell *
54 tree_cell *
56 tree_cell *
58 
59 /*
60  * NASL SFTP
61  */
62 
63 tree_cell *
65 
66 #endif /*NASL_NASL_SSH_H*/
nasl_ssh_get_server_banner
tree_cell * nasl_ssh_get_server_banner(lex_ctxt *lexic)
Get the server banner.
Definition: nasl_ssh.c:1520
nasl_ssh_shell_write
tree_cell * nasl_ssh_shell_write(lex_ctxt *lexic)
Write string to ssh shell.
Definition: nasl_ssh.c:1902
nasl_ssh_login_interactive_pass
tree_cell * nasl_ssh_login_interactive_pass(lex_ctxt *lexic)
Authenticate a user on an ssh connection.
Definition: nasl_ssh.c:1128
nasl_ssh_get_sock
tree_cell * nasl_ssh_get_sock(lex_ctxt *lexic)
Given a session id, return the corresponding socket.
Definition: nasl_ssh.c:621
nasl_ssh_set_login
tree_cell * nasl_ssh_set_login(lex_ctxt *lexic)
Set the login name for the authentication.
Definition: nasl_ssh.c:728
nasl_ssh_login_interactive
tree_cell * nasl_ssh_login_interactive(lex_ctxt *lexic)
Authenticate a user on an ssh connection.
Definition: nasl_ssh.c:1016
nasl_ssh_shell_read
tree_cell * nasl_ssh_shell_read(lex_ctxt *lexic)
Read the output of an ssh shell.
Definition: nasl_ssh.c:1850
nasl_lex_ctxt.h
nasl_ssh_session_id_from_sock
tree_cell * nasl_ssh_session_id_from_sock(lex_ctxt *lexic)
Given a socket, return the corresponding session id.
Definition: nasl_ssh.c:578
nasl_ssh_shell_close
tree_cell * nasl_ssh_shell_close(lex_ctxt *lexic)
Close an ssh shell.
Definition: nasl_ssh.c:1958
nasl_ssh_userauth
tree_cell * nasl_ssh_userauth(lex_ctxt *lexic)
Authenticate a user on an ssh connection.
Definition: nasl_ssh.c:825
nasl_sftp_enabled_check
tree_cell * nasl_sftp_enabled_check(lex_ctxt *)
Check if the SFTP subsystem is enabled on the remote SSH server.
Definition: nasl_ssh.c:1993
TC
Definition: nasl_tree.h:94
nasl_ssh_exec
tree_cell * nasl_ssh_exec(lex_ctxt *)
struct_lex_ctxt
Definition: nasl_lex_ctxt.h:23
nasl_ssh_connect
tree_cell * nasl_ssh_connect(lex_ctxt *lexic)
Connect to the target host via TCP and setup an ssh connection.
Definition: nasl_ssh.c:225
nasl_ssh_get_issue_banner
tree_cell * nasl_ssh_get_issue_banner(lex_ctxt *lexic)
Get the issue banner.
Definition: nasl_ssh.c:1471
nasl_ssh_disconnect
tree_cell * nasl_ssh_disconnect(lex_ctxt *lexic)
Disconnect an ssh connection.
Definition: nasl_ssh.c:513
nasl_ssh_request_exec
tree_cell * nasl_ssh_request_exec(lex_ctxt *lexic)
Run a command via ssh.
Definition: nasl_ssh.c:1345
nasl_ssh_get_auth_methods
tree_cell * nasl_ssh_get_auth_methods(lex_ctxt *lexic)
Get the list of authmethods.
Definition: nasl_ssh.c:1605
nasl_ssh_shell_open
tree_cell * nasl_ssh_shell_open(lex_ctxt *lexic)
Request an ssh shell.
Definition: nasl_ssh.c:1705
nasl_ssh_get_host_key
tree_cell * nasl_ssh_get_host_key(lex_ctxt *lexic)
Get the host key.
Definition: nasl_ssh.c:1561