Lucene search
K

AMANDA Client Version

🗓️ 14 Jul 2000 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 85 Views

Detects AMANDA backup client version running on remote host for multiple host backups.

Refs
Code
SourceLink
amandawww.amanda.org/
#
# This script was written by Paul Ewing <[email protected]>
#
# See the Nessus Scripts License for details
#


include("compat.inc");

if(description) {
    script_id(10462);
    script_version ("1.22");
    script_cvs_date("Date: 2019/11/22");
 
    script_name(english:"AMANDA Client Version");
    script_summary(english:"Detect AMANDA client version");

 script_set_attribute(attribute:"synopsis", value:
"The remote host is running a backup client." );
 script_set_attribute(attribute:"description", value:
"The remote host is running an AMANDA backup system client.  AMANDA is
a backup system that allows a single backup server to backup multiple
hosts." );
 script_set_attribute(attribute:"see_also", value:"http://www.amanda.org/" );
 script_set_attribute(attribute:"risk_factor", value:"None" );
 script_set_attribute(attribute:"solution", value:"n/a" );

 script_set_attribute(attribute:"plugin_publication_date", value: "2000/07/14");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:amanda:amanda");
script_set_attribute(attribute:"asset_inventory", value:"True");
script_end_attributes();

 
    script_category(ACT_GATHER_INFO);
 
    script_copyright(english:"This script is Copyright (C) 2000-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    script_family(english:"Service detection");
    exit(0);
}

#
# The script code starts here
#
include("global_settings.inc");
include("misc_func.inc");

function get_version(soc, port, timeout)
{
  local_var result, temp, version, data;

    if ( ! isnull(timeout) )
     result = recv(socket:soc, length:2048, timeout:timeout);
   else
     result = recv(socket:soc, length:2048);

    if (result) {
        if (egrep(pattern:"^[^ ]+ [0-9]+\.[0-9]+", string:result)) {
	    temp = strstr(result, " ");
            temp = temp - " ";
            temp = strstr(temp, " ");
            version = result - temp;
            data = string("\n", "AMANDA version : ", version);
            security_note(port:port, extra:data, protocol:"udp");
            register_service(port:port, ipproto: "udp", proto:"amanda");
            set_kb_item(name:"Amanda/running", value:TRUE);
	}
    }
}

req = 'Amanda 2.3 REQ HANDLE 000-65637373 SEQ 954568800\nSERVICE ' + rand_str(length:8) + '\n';
if (get_udp_port_state(10080))
{
 soc1 = open_sock_udp(10080);
 if ( soc1 ) send(socket:soc1, data:req);
}
if (get_udp_port_state(10081))
{
 soc2 = open_sock_udp(10081);
 if ( soc2 )send(socket:soc2, data:req);
}
if ( soc1 ) get_version(soc:soc1, port:10080, timeout:NULL);
if ( soc2 ) get_version(soc:soc2, port:10081, timeout:1);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

22 Nov 2019 00:00Current
5.5Medium risk
Vulners AI Score5.5
85