Lucene search
K

MDAP Service Detection

🗓️ 22 May 2008 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 64 Views

MDAP Service Detection remote service supports the Multi Directory Access Protocol (MDAP

Refs
Code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(32399);
  script_version("1.7");
  script_cvs_date("Date: 2019/11/22");

  script_name(english:"MDAP Service Detection");
  script_summary(english:"Sends an MDAP ANT-SEARCH request");

 script_set_attribute(attribute:"synopsis", value:
"A network service is listening on the remote host." );
 script_set_attribute(attribute:"description", value:
"The remote service supports the Multi Directory Access Protocol
(MDAP), which is used to multicast commands to certain types of
network devices, such as Thompson ADSL modems." );
 script_set_attribute(attribute:"see_also", value:"http://use.perl.org/~dpavlin/journal/34918" );
 script_set_attribute(attribute:"solution", value:
"Limit incoming traffic to this port if desired." );
 script_set_attribute(attribute:"risk_factor", value:"None" );
 script_set_attribute(attribute:"plugin_publication_date", value: "2008/05/22");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"asset_inventory", value:"True");
script_end_attributes();


  script_category(ACT_GATHER_INFO);
  script_family(english:"Service detection");

  script_copyright(english:"This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");


port = 3235;
if (known_service(port:port, ipproto:"udp")) exit(0);

soc = open_sock_udp(port);
if (!soc) exit(0);
if (! get_udp_port_state(port)) exit(0, "UDP port "+port+" is not open.");

# Send a search request.
req = string(
  "ANT-SEARCH MDAP/1.1\r\n",
  "46"
);
send(socket:soc, data:req);
res = recv(socket:soc, length:1024);
close(soc);


# If it looks like a reply...
if (
  strlen(res) > 0 &&
  stridx(res, "REPLY-ANT-SEARCH MDAP/") == 0 &&
  "ANT-ID" >< res
)
{
  # Register and report the service.
  register_service(port:port, ipproto:"udp", proto:"mdap");

  if (report_verbosity)
  {
    report = string(
      "\n",
      "The remote server sent the following in response to an 'ANT-SEARCH'\n",
      "request :\n",
      "\n",
      res
    );
    security_note(port:port, proto:"udp", extra:report);
  }
  else security_note(port:port, proto:"udp");
}

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