Lucene search
K

Microsoft Dynamics GP Distributed Process Manager Detection

🗓️ 02 Jul 2008 00:00:00Reported by TenableType 
nessus
 nessus
🔗 www.tenable.com👁 34 Views

Microsoft Dynamics GP Distributed Process Manager Detectio

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



include('deprecated_nasl_level.inc');
include("compat.inc");

if (description) 
{
  script_id(33392);
  script_version("1.8");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/07");

  script_name(english:"Microsoft Dynamics GP Distributed Process Manager Detection");

  script_set_attribute(attribute:"synopsis", value:
"There is a business accounting software installed on the remote host.");
  script_set_attribute(attribute:"description", value:
"The remote host is running Microsoft Dynamics GP Distributed Process
Manager. Dynamics GP is a business accounting and management software
solution from Microsoft.");
  script_set_attribute(attribute:"see_also", value:"http://www.microsoft.com/dynamics/gp/default.mspx");
  script_set_attribute(attribute:"solution", value:
"n/a");
  script_set_attribute(attribute:"risk_factor", value:"None");

  script_set_attribute(attribute:"plugin_publication_date", value:"2008/07/02");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"asset_inventory", value:"True");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:dynamics_gp");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

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

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

  script_dependencies("find_service1.nasl");
  script_require_ports("Services/unknown", 1351);

  exit(0);
}


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

function mkstring(s, msize)
{
 local_var len;

 len = strlen(s);
 return mkbyte(len) + s + crap(data:mkbyte(0), length:msize-(len+1));
}

port = 1351;
if (!get_port_state(port)) exit(0);

soc = open_sock_tcp(port);
if (!soc) exit(0);

set_byte_order(BYTE_ORDER_LITTLE_ENDIAN);

type = 4;

data = 
     mkdword(1) +
     mkdword(0) +
     mkdword(53);

req =
    mkdword(1) +  # Magic
    mkstring(s:"nessus", msize:0x52) +
    mkdword(rand()) + # Unknown 
    mkdword(1) ;  # DPS code ?

len = strlen(req) + strlen(data) + 12;

req = req +
    mkdword(len) +
    mkdword(type) +
    data;

req = 
    mkdword(1) +
    mkdword(strlen(req)) +
    mkdword(0x1234) +
    req;

send(socket:soc, data:req);

buf = recv(socket:soc, length:1024);
if (strlen(buf) != 130) exit(0);

magic = getdword(blob:buf, pos:0);
len = getdword(blob:buf, pos:4);

if (magic != 1 || (len + 12) != strlen(buf)) exit(0);

len = ord(buf[16]);

register_service(port:port, ipproto:"tcp", proto:"microsoft-dpm");

if (len > 0)
{
 name = substr(buf, 17, 17+len-1);

 report = string ("Host Name : ", name, "\n");
 security_note(port:port, extra:report);
}
else
 security_note(port:port);

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