OpenVAS Scanner 23.23.1
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
12
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
46
49
58
59/*
60 * NASL SFTP
61 */
62
65
66/*
67 * NASL NETCONF
68 */
71
72#endif /*NASL_NASL_SSH_H*/
struct struct_lex_ctxt lex_ctxt
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
tree_cell * nasl_ssh_execute_netconf_subsystem(lex_ctxt *)
Excecute the NETCONF subsystem on the the ssh channel.
Definition nasl_ssh.c:2060
tree_cell * nasl_ssh_shell_close(lex_ctxt *lexic)
Close an ssh shell.
Definition nasl_ssh.c:1958
tree_cell * nasl_ssh_shell_read(lex_ctxt *lexic)
Read the output of an ssh shell.
Definition nasl_ssh.c:1850
tree_cell * nasl_ssh_set_login(lex_ctxt *lexic)
Set the login name for the authentication.
Definition nasl_ssh.c:728
tree_cell * nasl_ssh_userauth(lex_ctxt *lexic)
Authenticate a user on an ssh connection.
Definition nasl_ssh.c:825
tree_cell * nasl_ssh_shell_open(lex_ctxt *lexic)
Request an ssh shell.
Definition nasl_ssh.c:1705
tree_cell * nasl_ssh_login_interactive(lex_ctxt *lexic)
Authenticate a user on an ssh connection.
Definition nasl_ssh.c:1016
tree_cell * nasl_ssh_get_issue_banner(lex_ctxt *lexic)
Get the issue banner.
Definition nasl_ssh.c:1471
tree_cell * nasl_ssh_request_exec(lex_ctxt *lexic)
Run a command via ssh.
Definition nasl_ssh.c:1345
tree_cell * nasl_ssh_get_host_key(lex_ctxt *lexic)
Get the host key.
Definition nasl_ssh.c:1561
tree_cell * nasl_ssh_login_interactive_pass(lex_ctxt *lexic)
Authenticate a user on an ssh connection.
Definition nasl_ssh.c:1128
tree_cell * nasl_ssh_get_auth_methods(lex_ctxt *lexic)
Get the list of authmethods.
Definition nasl_ssh.c:1605
tree_cell * nasl_ssh_exec(lex_ctxt *)
tree_cell * nasl_ssh_disconnect(lex_ctxt *lexic)
Disconnect an ssh connection.
Definition nasl_ssh.c:513
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
tree_cell * nasl_ssh_shell_write(lex_ctxt *lexic)
Write string to ssh shell.
Definition nasl_ssh.c:1902
tree_cell * nasl_ssh_get_server_banner(lex_ctxt *lexic)
Get the server banner.
Definition nasl_ssh.c:1520
tree_cell * nasl_ssh_session_id_from_sock(lex_ctxt *lexic)
Given a socket, return the corresponding session id.
Definition nasl_ssh.c:578
tree_cell * nasl_ssh_get_sock(lex_ctxt *lexic)
Given a session id, return the corresponding socket.
Definition nasl_ssh.c:621
struct TC tree_cell