Lucene search

K

Information about the scan

🗓️ 26 Mar 2006 00:00:00Reported by Copyright (C) 2004 Tenable Network SecurityType 
openvas
 openvas
🔗 plugins.openvas.org👁 14 Views

This script displays, for each tested host, information about the scan itself: The version of the VT feed, The type of VT feed, The version of the Scanner Engine, The port scanner(s) used, The port range scanned, The date of the scan, The duration of the scan, The number of hosts scanned in parallel, The number of checks done in parallel

Show more

AI Insights are available for you today

Leverage the power of AI to quickly understand vulnerabilities, impacts, and exploitability

Code
# SPDX-FileCopyrightText: 2004 Tenable Network Security
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

# TODO: This VT is actually not relevant anymore because it is returning
# data that are available in the scanner client anyway. In the early days
# such meta information were sent via VT results because there was lack of
# a management unit. Now there is GVMd and Host Details.
# The VT is now disabled by default. Eventually it needs to be decided
# whether to entirely remove it.

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.19506");
  script_version("2023-06-22T10:34:15+0000");
  script_tag(name:"last_modification", value:"2023-06-22 10:34:15 +0000 (Thu, 22 Jun 2023)");
  script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
  script_tag(name:"cvss_base", value:"0.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:N/I:N/A:N");
  script_name("Information about the scan");
  # nb: Needs to run at the end of the scan because of the required info only available in this phase...
  script_category(ACT_END);
  script_copyright("Copyright (C) 2004 Tenable Network Security");
  script_family("General");

  script_add_preference(name:"Be silent", type:"checkbox", value:"yes", id:1);

  script_tag(name:"summary", value:"This script displays, for each tested host, information about the scan itself:

  - The version of the VT feed

  - The type of VT feed (Direct, Registered or GPL)

  - The version of the Scanner Engine

  - The port scanner(s) used

  - The port range scanned

  - The date of the scan

  - The duration of the scan

  - The number of hosts scanned in parallel

  - The number of checks done in parallel");

  script_tag(name:"qod_type", value:"remote_banner_unreliable");

  exit(0);
}

include('plugin_feed_info.inc');
include('global_settings.inc');

be_silent = script_get_preference("Be silent", id:1);
if("yes" >< be_silent)
  exit(0);

version = OPENVAS_VERSION;

if(isnull(version)) {
  version = "Unknown";
}

report = 'Information about this scan : \n\n';
report += 'Scanner version : ' + version + '\n';

if(PLUGIN_SET) {
  report += 'VT feed version : ' + PLUGIN_SET + '\n';
  report += 'Type of VT feed : ' + PLUGIN_FEED + '\n';
}

report += 'Scanner IP : ' + this_host() + '\n';

list = get_kb_list("Host/scanners/*");
if(!isnull(list)) {
  foreach item(keys(list)) {
    item -= "Host/scanners/";
    scanners += item + ' ';
 }
 report += 'Port scanner(s) : ' + scanners + '\n';
}

range = get_preference("port_range");
if(!range)
  range = "(?)";

report += 'Port range : ' + range + '\n';

report += 'Report Verbosity : ';
report += report_verbosity + '\n';

report += 'Safe checks : ';
if(safe_checks())
  report += 'yes\n';
else
  report += 'no\n';

report += 'Max hosts : ' + get_preference("max_hosts") + '\n';
report += 'Max checks : ' + get_preference("max_checks") + '\n';


start = get_kb_item("/tmp/start_time");
if(start) {
  time = localtime(start);
  if(time["min"] < 10)
    zero = "0";
  else
    zero = NULL;

  report += 'Scan Start Date : ' + time["year"] + '/' + time["mon"] + '/' + time["mday"] + ' ' + time["hour"] + ':' + zero + time["min"] + '\n';
}

if(!start)
  scan_duration = 'unknown (host_alive_detection.nasl not launched?)';
else
  scan_duration = string(unixtime() - start, " sec");

report += 'Scan duration : ' + scan_duration;

log_message(port:0, data:report);
exit(0);

Transform Your Security Services

Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.

Book a live demo