#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(18418);
script_version("1.11");
script_cvs_date("Date: 2019/11/22");
script_name(english:"PeerCast Detection");
script_summary(english:"Detects PeerCast");
script_set_attribute(attribute:"synopsis", value:
"The remote host contains a peer-to-peer filesharing application." );
script_set_attribute(attribute:"description", value:
"The remote host is running PeerCast, a peer-to-peer software package
that lets users broadcast streaming media." );
script_set_attribute(attribute:"solution", value:
"Make sure use of this program is in accordance with your corporate
security policy." );
script_set_attribute(attribute:"risk_factor", value:"None" );
script_set_attribute(attribute:"plugin_publication_date", value: "2005/06/06");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:peercast:peercast");
script_set_attribute(attribute:"asset_inventory", value:"True");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Peer-To-Peer File Sharing");
script_copyright(english:"This script is Copyright (C) 2005-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("http_version.nasl");
script_require_ports("Services/www", 7144, 7145);
exit(0);
}
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
port = get_http_port(default:7144);
# Identify whether PeerCast is installed.
#
# nb: at least as of 0.1212, PeerCast doesn't provide a server response
# header if the initial page is requested so we can't use
# get_http_banner() to identify it.
r = http_send_recv3(port:port, item:"/html/en/index.htm", method:"GET");
if (isnull(r)) exit(0, "The web server did not answer");
h = parse_http_headers(status_line: r[0], headers: r[1]);
if ("PeerCast/" >< r[1])
{
# Extract the Server response header.
server = "";
foreach line (split(r[1], keep:FALSE))
{
line = chomp(line);
if (strlen(line) == 0) break;
else if (line =~ "^Server:") server = line;
}
# If the server response header is indeed from PeerCast...
if (server && "Server: PeerCast/")
{
set_kb_item(name:"PeerCast/installed", value:TRUE);
ver = server - "Server: PeerCast/";
if (!ver) ver = "unknown";
set_kb_item(name:"PeerCast/"+port+"/version", value:ver);
report = string(
"The remote PeerCast software uses the following Server response\n",
"header :\n",
"\n",
" ", server, "\n"
);
security_note(port:port, extra:report);
}
}
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